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

Update manager.py #34

Merged
merged 2 commits into from
Oct 26, 2023
Merged

Conversation

phermes
Copy link
Contributor

@phermes phermes commented Oct 20, 2023

fixed bug in saving to json converting numpy array to list

previous error message:
File coll_manager.lossmap(part, file='lossmap.dat')
[...]
TypeError: Object of type ndarray is not JSON serializable

fixed bug in saving to json converting numpy array to list
@freddieknets
Copy link
Collaborator

Probably better to tackle the problem at the root, and change line 856 into
json.dump(self._lossmap, fid, indent=True, cls=xo.JEncoder)

updated storing of json to evade problem with list aper_s
@phermes
Copy link
Contributor Author

phermes commented Oct 26, 2023

updated pull request

@freddieknets freddieknets merged commit 04d43f5 into xsuite:release/v0.3.0 Oct 26, 2023
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