PHAREHUB / PHARE

💫 Parallel Hybrid Particle In Cell code with Adaptive mesh REfinement
https://phare.readthedocs.io
GNU General Public License v3.0
69 stars 25 forks source link

python API update (multiple instances, renaming) #247

Open nicolasaunai opened 4 years ago

nicolasaunai commented 4 years ago

For now the Simulation is a global singleton. This makes writing inputs for PHARE easy when using PHARE in "batch mode" since the user does not have to deal with objects, just writes constructors.

However if the user wants to manipulate several simulations/runs in one script or one notebook, it's inconvenient. Thus we should :

nicolasaunai commented 10 months ago

maybe done it somewhere? otherwise an idea is having a dict instead of a single instance, with default or user based simulation name