I’d like to point out that the archive specified in READ.me is not the latest version of the repo, and I had a ton of trouble trying to make it work. Just the idr.py file alone has 66 removals and 205 additions.
After setting up a working environment, I was still facing the issue of:
File "/.../miniconda/envs/idr2/lib/python3.6/site-packages/idr-2.0.2-py3.6-linux-x86_64.egg/idr/idr.py", line 415, in write_results_to_file if localIDRs == None or IDRs == None: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
This was when I realized that line 415 if localIDRs == None or IDRs == None: in idr.py from the error message corresponds to line 468 if localIDRs is None or IDRs is None in the idr.py on GitHub.
I had to clone the current master branch and run python3 setup.py install to make it work. I also had to manually install scipy because the script was not installing it due to deprecations, but this library is necessary.
To create a working env and set up the idr I run:
conda create -n idr numpy=1.18 scipy=1.5 matplotlib=3.3 setuptools=36github clone https://github.com/nboley/idr.gitcd idrpython3 setup.py install
I’d like to point out that the archive specified in READ.me is not the latest version of the repo, and I had a ton of trouble trying to make it work. Just the idr.py file alone has 66 removals and 205 additions.
After setting up a working environment, I was still facing the issue of:
File "/.../miniconda/envs/idr2/lib/python3.6/site-packages/idr-2.0.2-py3.6-linux-x86_64.egg/idr/idr.py", line 415, in write_results_to_file if localIDRs == None or IDRs == None: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
This was when I realized that line 415
if localIDRs == None or IDRs == None:
in idr.py from the error message corresponds to line 468if localIDRs is None or IDRs is None
in the idr.py on GitHub.I had to clone the current master branch and run python3 setup.py install to make it work. I also had to manually install scipy because the script was not installing it due to deprecations, but this library is necessary. To create a working env and set up the idr I run:
conda create -n idr numpy=1.18 scipy=1.5 matplotlib=3.3 setuptools=36
github clone https://github.com/nboley/idr.git
cd idr
python3 setup.py install