mdanalysis icon indicating copy to clipboard operation
mdanalysis copied to clipboard

Issue 2764 Setting attributes should have dtype checks

Open fortune-max opened this issue 2 years ago • 3 comments

Changes made in this Pull Request:

  • Enforced strict adherence to the data types for TopologyAttr values

This pull request attempts to address issue #2764

PR Checklist

  • [ ] Tests?
  • [ ] Docs?
  • [ ] CHANGELOG updated?
  • [x] Issue raised/referenced?

fortune-max avatar Apr 22 '22 13:04 fortune-max

Hello @fortune-max! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2022-04-22 15:20:13 UTC

pep8speaks avatar Apr 22 '22 13:04 pep8speaks

Hi @fortune-max. Thank you for opening this pull request.

It is difficult to review, though, because it lacks some context. Can you edit your pull request message to follow the template, please? Especially, we need you to reference the issue you are fixing. This is important for mainly 2 reasons: 1) it lets us know what your pull request is about, and 2) it will automatically close the issue when the pull request is merged.

Something else I noticed is that you copied the file testsuite/MDAnalysisTests/core/test_topologyattrs.py into package/MDAnalysis/core/test_topologyattrs.py. Tests should stay together in the testsuite directory; the package directory contains the library itself. Also, because you added your changes into a copy of the original file, we do not get to see what you changed as everything appears as new.

Could you please fix the two points above? Without that, we will not be able to proceed with the code review.

jbarnoud avatar Apr 22 '22 13:04 jbarnoud

Thanks for your response @jbarnoud. I will fix the issues right away

fortune-max avatar Apr 22 '22 14:04 fortune-max