-
Notifications
You must be signed in to change notification settings - Fork 13
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
make FEMap a gufe tokenizable #108
Comments
I started playing with this, and one big change is that we'd have to make the The alternative would be we'd just make the to_dict/from_dict not via gufe. |
Do we need to make it gufe tokenizable or just serializable? I think we would like to make the object easy to extend for the "live networks" plan that we have for alchemiscale and getting results from it. I guess this could be done with immutable objects (creating a new one every time), but may not be necessary. |
I'm not sure enough about the use cases here. I'll argue strongly for immutable objects if they're likely to be stored as part of a larger database. If the serialization is always directly to a single file for that object, I feel like mutability causes fewer problems (it is understood that you're overwriting the old file). However, when you save into a larger database, mutability requires that the database manage updates, and you lose provenance tracking. That mainly matters if you're using objects that are then themselves used as inputs elsewhere; I'm not sure how much that would happen with an |
Immutable is a bit misleading, it just means that the pattern for updating a network behaves differently # mutable
m = FEMap()
for line in myfile:
m.add_absolute_measurement(line)
# immutable
m = FEMap()
for line in myfile:
m = m.add_absolute_measurement(line) Maybe a simple to/from dict is enough for FEMap though |
To allow serialisation between sessions
The text was updated successfully, but these errors were encountered: