Skip to content

Readme example appears broken #72

Closed
@scal444

Description

@scal444

Running the readme example code, replacing molecule.mol2 with a water pdb
(example_input.zip), I get this exception

Traceback (most recent call last):
  File "/home/kevin/benchmarks/nnpops/run.py", line 22, in <module>
    nnp.aev_computer = TorchANISymmetryFunctions(nnp.species_converter, nnp.aev_computer, species).to(device)
  File "/home/kevin/programs/conda/envs/openmm-8-beta-linux/lib/python3.10/site-packages/NNPOps/SymmetryFunctions.py", line 90, in __init__
    species = converter((atomicNumbers, torch.empty(0))).species[0].tolist()
AttributeError: 'tuple' object has no attribute 'species'

It looks like SpeciesConverter returns a tuple (code), but TorchANISymmetryFunctions expects some other structure (code)

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