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

System Base Frequency not retained in JSON deserialisation #1037

Closed
ThomasJefferyFMG opened this issue Jan 9, 2024 · 1 comment · Fixed by #1038
Closed

System Base Frequency not retained in JSON deserialisation #1037

ThomasJefferyFMG opened this issue Jan 9, 2024 · 1 comment · Fixed by #1038
Assignees
Labels

Comments

@ThomasJefferyFMG
Copy link

When de-serialising a system from JSON, it the object does not retain the base frequency setting prior to serialisation.

sys_at_50_hz = PSY.System(100.0, frequency=50.0)
PSY.to_json(sys, "config.json")

sys_now_at_60_hz = PSY.System("config.json")

@jd-lara
Copy link
Member

jd-lara commented Jan 9, 2024

@ThomasJefferyFMG thanks for reporting. We will include a fix in the next release

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

Successfully merging a pull request may close this issue.

3 participants