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

AttributeError: 'ForceReporter' #6

Open
AntonioMirarchi opened this issue Jun 13, 2024 · 0 comments
Open

AttributeError: 'ForceReporter' #6

AntonioMirarchi opened this issue Jun 13, 2024 · 0 comments

Comments

@AntonioMirarchi
Copy link

Hi, I'm getting this error with the ForceReporter:

Exception ignored in: <function ForceReporter.__del__ at 0x7f94662afb00>
Traceback (most recent call last):
  File "/shared/antoniom/openmm-numpy-reporters/openmm_numpy_reporters/force_reporter.py", line 30, in __del__
    self.fd.close()
    ^^^^^^^
AttributeError: 'ForceReporter' object has no attribute 'fd'

I think it's a common error to all the reporters and maybe a typo, I fixed replacing with self.fp.close, in the del function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant