pyiron / ironflow

Prototype of a graphical user interface for pyiron (unstable)
https://mybinder.org/v2/gh/pyiron/ironflow/HEAD?labpath=example.ipynb
BSD 3-Clause "New" or "Revised" License
19 stars 2 forks source link

Have IO serialization be opt-in/-out #156

Open liamhuber opened 1 year ago

liamhuber commented 1 year ago

Joerg requested that we give node designers explicit access to a flag specifying the priority to serialize port values on session serialization. By default I imagine all input values should have a high serialization priority, while all output values should by default have a low serialization priority. Values could be on a scalar field, and the user could then specify a priority threshold for serialization.

I can imagine also exposing this priority in the node controller, so it can be tweaked for particular graphs if you really want to optimize storage -- e.g. even DataNodes don't need to bother serializing their input if it's already connected.

For that matter, maybe we can automate it so that being connected automatically drops the serialization priority for input...