evanberkowitz / two-dimensional-gasses

Let's crush it
0 stars 0 forks source link

Provide a way to save intermediates? #85

Open evanberkowitz opened 1 year ago

evanberkowitz commented 1 year ago

Now that some quantities are @intermediate, it seems like it makes sense to give the user an option to mark intermediates for storage. In particular the propagator G may be costly to compute, and may make sense to store. But by default it should be intermediate and it should only be treated as @observable if the user explicitly says to.

But this is not a critical feature for production.

evanberkowitz commented 1 year ago

In some sense this is possible by invoking tdg.h5.ObservableStrategy.{write,extend} explicitly, but the hope was to hide all the strategy stuff from high-level use.

Still, it's a current workaround.