ytree.frontends.ytree.arbor.YTreeArbor.reload_arbor
- YTreeArbor.reload_arbor()[source]
Reload the arbor and setup pre-existing derived fields.
This can be useful to do after performing a long series of analyses in which many Analysis Fields have been modified and the results saved in update mode (i.e., new results saved to an existing arbor). This will free analysis fields from memory as they now live on disk as conventional fields.
This will automatically add any derived or analysis fields that were present in the original arbor. This function may prove useful for keeping memory usage under control in lengthy jobs. Note, this is only available for ytree arbor types.
Examples
>>> import ytree >>> a = ytree.load("arbor/arbor.h5") >>> # do stuff >>> a = a.reload_arbor()