vinci1it2000 / formulas

Excel formulas interpreter in Python.
https://formulas.readthedocs.io/
European Union Public License 1.1
342 stars 75 forks source link

possibility to extract sugbraphs from complex models #131

Open dberardo-com opened 4 months ago

dberardo-com commented 4 months ago

i have a quite complex excel model, that contains a lot of subgraphs with different roots. in order to reduce computational complexity i would like to isolate only a selection of subgraphs, ignoring all others.

is it possible to pick one subgraph starting from a root node and discard all the others ?

dberardo-com commented 4 months ago

ok i have found out this as a way to get subgraphs:

model=xl_model
model.dsp.dispatch(inputs=final_inps, no_call=True)
sub_disp=model.dsp.get_sub_dsp_from_workflow(sources=outputs.values(), reverse=True)

this seems to work but my questions are now:

dberardo-com commented 4 months ago

in particular i have figured out that the memory usage is quite big when loading the VLOOKUP excel function. how so ? can that be improved ?