Skip to content

fix the problem ”PLACER object has no attribute 'dump_output“ in examples/API_examples.py #15

@jiaxiaolei

Description

@jiaxiaolei

I encountered the following problem while running examples/API.py:

(placer_env_py310) [ hpctest@gymzx201  examples]$ python API_examples.py
... 
model   10 :  fape= 2.23515  lddt= 0.84471  rmsd= 5.62052  kabsch= 1.19311  prmsd= 5.79502  plddt= 0.47791  plddt_pde= 0.44801  | time= 0.77s  mem= 3.27gb
Writing outputs to example_out_API/outputs_mutate
Traceback (most recent call last):
File "/public/sourcecode/soft-install/placer/PLACER/examples/API_examples.py", line 193, in <module>
placer.dump_output(outputs_mutate, f"{ODIR}/{pl_inp.name()}", rerank="prmsd")
AttributeError: 'PLACER' object has no attribute 'dump_output'

I made the necessary code changes (very minor) and will make a pull request for this fix. Works decently on my 4090D.

the pull request:

#14

[https://github.com//pull/14](fix: placer.dump_output cannot be foundin API_examples.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions