Skip to content
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

1-D Array Error #13

Closed
nateharms opened this issue Mar 28, 2019 · 1 comment
Closed

1-D Array Error #13

nateharms opened this issue Mar 28, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@nateharms
Copy link

Occasionally when running conformational analysis, the following error is returned:

Traceback (most recent call last):
  File "transitionstates.py", line 36, in <module>
    rxn.generate_conformers(calculator=Hotbit())
  File "/home/harms.n/Code/AutoTST/autotst/reaction.py", line 510, in generate_conformers
    conformers = systematic_search(conformer, delta=60)
  File "/home/harms.n/Code/AutoTST/autotst/conformer/systematic.py", line 271, in systematic_search
    is_close = (np.sqrt(((df.distances[index] - df.distances)**2).apply(np.mean)) > 0.1)
  File "/home/harms.n/anaconda2/envs/rmg_env/lib/python2.7/site-packages/pandas/core/ops.py", line 745, in wrapper
    dtype=dtype,
  File "/home/harms.n/anaconda2/envs/rmg_env/lib/python2.7/site-packages/pandas/core/ops.py", line 653, in _construct_result
    return left._constructor(result, index=index, name=name, dtype=dtype)
  File "/home/harms.n/anaconda2/envs/rmg_env/lib/python2.7/site-packages/pandas/core/series.py", line 264, in __init__
    raise_cast_failure=True)
  File "/home/harms.n/anaconda2/envs/rmg_env/lib/python2.7/site-packages/pandas/core/series.py", line 3275, in _sanitize_array
    raise Exception('Data must be 1-dimensional')
Exception: Data must be 1-dimensional

This occurs after AutoTST has generated an ensemble of conformers, but is having an issue when identifying unique low energy conformers. Probably going to run through conformers one at a time rather than using Pandas logic to identify unique conformers.

@nateharms nateharms self-assigned this Mar 28, 2019
@nateharms nateharms added the bug Something isn't working label Mar 28, 2019
@nateharms
Copy link
Author

Solved by doing a "dumber" way of identifying unique conformers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant