3dem / model-angelo

Automatic atomic model building program for cryo-EM maps
MIT License
110 stars 18 forks source link

Modelangelo eval_per_resid | Attribute Error #36

Closed jacob-r-anderson closed 1 year ago

jacob-r-anderson commented 1 year ago

On Ubuntu 20.04 and CentOS I have reproducibly gotten an attribute error when running ModelAngelo's eval_per_resid option. On both devices if I run the following, I get the same error.

model_angelo eval_per_resid --predicted-structure run1.cif --target-structure myfile.cif  --output-file out.txt

Traceback (most recent call last):
  File "/programs/x86_64-linux//modelangelo/0.2.2/bin/model_angelo", line 33, in <module>
    sys.exit(load_entry_point('model-angelo==0.2.2', 'console_scripts', 'model_angelo')())
  File "/programs/x86_64-linux/modelangelo/0.2.2/miniconda3/lib/python3.9/site-packages/model_angelo/__main__.py", line 51, in main
    args.func(args)
  File "/programs/x86_64-linux/modelangelo/0.2.2/miniconda3/lib/python3.9/site-packages/model_angelo/apps/eval_per_resid.py", line 286, in main
    ) = get_residue_fit_report(
  File "/programs/x86_64-linux/modelangelo/0.2.2/miniconda3/lib/python3.9/site-packages/model_angelo/apps/eval_per_resid.py", line 36, in get_residue_fit_report
    target_correspondence.astype(np.int32),
AttributeError: 'list' object has no attribute 'astype'

I have tried changing the "cif" files and the output file (directory, filename, and extension).

jamaliki commented 1 year ago

Hi,

Thank you for the bug request, I will push a hot-fix shortly.

Best, Kiarash.

jamaliki commented 1 year ago

This is fixed as of release v0.2.3