-
Notifications
You must be signed in to change notification settings - Fork 232
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
ProblemSpec.sample() causes permanent message #555
Comments
Hi, thanks for reporting this, it is certainly strange! Could I ask: Which python distribution (Anaconda?) and version? Is this in a Jupyter Notebook, the terminal/REPL or something else? Which IDE/editor? OS (Windows?) Thank you |
I wonder also, does the issue disappear if you use the below instead? prob.sample_sobol(1024) |
$ python --version
Python 3.10.5
|
Okay, I think that gives me enough leads to look into, thanks again for reporting! |
No problem - can I ask as well: what is the status of |
Hmm, Did you install the additional required packages for parallel evaluation to work? (I guess so because an error message should display if you didn't, but want to confirm) Are you specifying the number of cores to use with the Also note that you'll typically only see an improvement with parallel analysis in cases where you have multiple outputs. |
Yeah, it isn't working on my work machine. Are there additional requirements to is Yes, I plan to use this on a large model with multiple outputs. I expect to need parallelization/distribution. So, if I can get the native version working, it'll save me from having to write my own. |
Yes, please do open a separate issue. Not at my computer at the moment but there should be instructions on how to install the additional set of packages somewhere. And yes, it is an alias to Thanks again for reporting these, I'll look into it as soon as I can |
Hi @morrowcj Could you try the version with potential fix installable with the command below? pip install git+https://github.com/SALib/SALib.git@problem_spec-output-fix-555 I updated Regarding the parallel evaluation, are you trying it out using the example you gave above? I can confirm it's working for me. If so, it's likely that it's finishing so fast that you never see the second Python process spin up in the task manager. I would also advise trying Resource Monitor instead of the Task Manager to track CPU/Memory usage for performance investigations (it has a higher polling rate than task manager if I remember correctly and more information). |
FYI @morrowcj I just added some further documentation on writing wrappers for use with SALib which might be helpful getting things to work with the parallel evaluator. Appreciate any feedback if you have any. https://salib.readthedocs.io/en/latest/user_guide/wrappers.html |
This worked to remove the messages (I had to manually uninstall the old version, though). I also confirmed that calling |
@ConnectedSystems, resource monitor confirmed that the parallel evaluator works as expected when run in a terminal. However, I have been unsuccessful getting it to run in pycharm. I'll start a new issue for that. Edit: never mind, this is a Pycharm issue. I can't run any code using the |
@ConnectedSystems, this is great, and exactly what I was planning for my work. Thank you for writing this up - it is very helpful and practical. |
Thanks again for reporting @morrowcj . I'll create a separate issue re PyCharm and multiprocessing. |
I'm just starting to get into
SALib
and I'm drawn to theProblemSpec
class, which provides easy access to all the main features of the library. However, thesample()
method causes a message to appear forever.I'm using the stable version (via
pip install SALib
), so this may not be an issue with the github version.Here's some reproducible code (interactive session), with output in comment blocks:
Is this normal? I don't get the same issue if I run
sobol.sample(prob, 1024)
instead.Looking through the source code, it appears that this caused by the
__str__
method, which prints instead of returning a string.The text was updated successfully, but these errors were encountered: