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

'run_compute' using a distribution fails when bundle contains a 'mesh' dataset. #710

Open
tilakpawar opened this issue Feb 28, 2023 · 1 comment
Assignees
Labels

Comments

@tilakpawar
Copy link

Trying to compute a model using distributions fails while drawing parameters from a distribution if the bundle contains a 'mesh' dataset. The error occurs even if the 'lc' dataset is specified in the run_compute command. I attach a simple jupyter notebook to reproduce the error and compare two bundles, one with and one without 'mesh' dataset.

run_compute_using_distribution_issue.ipynb.zip

@kecnry
Copy link
Member

kecnry commented Feb 28, 2023

Thanks for reporting this, definitely a bug and something we shouldn't allow. In theory, this should work if sample_mode = 'all', but could also get very expensive on memory to store a large number of copies of the mesh. For anyone coming across this before its fixed, disabling the mesh dataset (using b.disable_dataset(...) or setting the enabled parameter to False) should avoid the error.

@kecnry kecnry added the bug label Feb 28, 2023
@kecnry kecnry self-assigned this Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants