-
Notifications
You must be signed in to change notification settings - Fork 111
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
Simulation save/restart module #33
Comments
Comment by armantekinalp In future implementation of restart I think we should add these functionalities:
|
is this issue open? |
@Anika-Roy Thank you for your interest. Yes, this issue is still open. |
@skim0119 Hello! I'm a beginner looking to make my first contribution to PyElastica, and I'm interested in working on the Simulation save/restart module issue (#33) listed under the good first issue label. I understand that this may involve some challenges, such as handling non-serialisable data and accounting for customised forces/connections, but I'm eager to learn and contribute to the project. |
I have made changes in "restart.py" and here is the updated code: def all_equal(iterable): def save_state(simulator, directory: str = "", time=0.0, verbose: bool = False):
def load_state(simulator, directory: str = "", verbose: bool = False):
|
@skim0119 |
@kumarabhi2005 Thank you for your interest in our project. You are welcome to try. Here, we want to serialize the entire simulator, and be able to save the simulator state comprehensively with all the features. |
@skim0119 is this still available? |
Issue by skim0119
Wednesday Dec 29, 2021 at 05:00 GMT
Originally opened as https://github.com/GazzolaLab/elastica-python/issues/111
Partially provide a way to save and load
rod
. We need more robust simulator-wise callback to save the module. (restart.py
)Things to keep in mind
pickle
orjson
, but some other modules must be handled separately.finalize()
is somewhat contradicting restart/reloading data in the middle of a simulation.The text was updated successfully, but these errors were encountered: