Skip to content
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

possibility to extract sugbraphs from complex models #131

Open
dberardo-com opened this issue Feb 25, 2024 · 2 comments
Open

possibility to extract sugbraphs from complex models #131

dberardo-com opened this issue Feb 25, 2024 · 2 comments

Comments

@dberardo-com
Copy link

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
Copy link
Author

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:

  • if i call sub_disp.dispatch() is that in any way more efficient than model.compute() ? or is it going to be the same ?
  • i have seen that loading the excel model takes up 2GB of RAM during the call to .finish() . but i have seen that if i call only loads().complete(), without .assemble() then i can still get the full subgraph displayed using .plot() function. so this makes me think that it should be possible to .assemble() only the subgraphs without having to first assemble() the whole model. this would make me save some memory i guess. is this possible ?

@dberardo-com
Copy link
Author

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant