Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass a copy of sceneDict to _makeSceneNxR. fixes #502. #503

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cdeline
Copy link
Contributor

@cdeline cdeline commented Mar 11, 2024

instead of copying some of the keys of sceneDict into a sceneDict2 and passing that to _makeSceneNxR, this updates the appropriate keys, and makes sure that _makeSceneNxR is working from a copy.deepcopy of sceneDict. Because it's a mutable type, this dict was being updated within the makeScene1axis loop. Using a copy here solves that problem.

@cdeline cdeline requested a review from shirubana March 11, 2024 21:58
@cdeline
Copy link
Contributor Author

cdeline commented Mar 11, 2024

@shirubana - I think this quick bug fix is ready to go. Tests are passing aside for the minor delta in coveralls coverage.

@shirubana
Copy link
Member

@cdeline I see you removed removed hub_height from the dictionary. Is it still being saved somewhere?

    # we no longer need sceneDict['hub_height'] - it'll be replaced by 'clearance_height' below
    sceneDict.pop('hub_height',None)

Other htan that I'm okay to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants