-
Notifications
You must be signed in to change notification settings - Fork 57
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
Json export step1 #281
Json export step1 #281
Conversation
add read-only option for properties; improve print output; implement from_dictionary(); implement to_json_string() and to_json_file(); iimplement create_gateobject_from_dict()
…r and PhysicsManager
…on_export_step1
…o_dictionary() and VolumeManager.to_dictionary()
… archive if requested
… in Simulation.to_json_file()
…, not nested into dictionaries.
…and from_json_string()
JSON export works for those parts of the simulation which already make use of the GateObject base class. Those are: VolumeManager and volumes, PhysicsManager, PhysicsListManager, Region, and now also Simulation. The Simulation class has been refactored into a GateObject. User infos are now defined via the Using the json archiving option is simple, see test065_sim_as_dict.py. |
First steps of implementing a mechanism to dump/load a simulation as a JSON file.