mdanalysis icon indicating copy to clipboard operation
mdanalysis copied to clipboard

#3500 issue, added optional dtype arg

Open tanmaymunjal opened this issue 3 years ago • 10 comments

Fixes # Add optional dtype argument to avoid forced reduction to np.float32(Issue #3500)

Changes made in this Pull Request:

Added optional dtype arg to check_box() func

PR Checklist

  • [Did it ] Tests?
  • [Updated ] Docs?
  • [Yes] CHANGELOG updated?
  • [ #3500 ] Issue raised/referenced?

tanmaymunjal avatar Aug 27 '22 20:08 tanmaymunjal

Hello @tanmaymunjal! 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-09-11 06:17:31 UTC

pep8speaks avatar Aug 27 '22 20:08 pep8speaks

Codecov Report

Base: 94.31% // Head: 94.31% // No change to project coverage :thumbsup:

Coverage data is based on head (a9b61b0) compared to base (0788165). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3797   +/-   ##
========================================
  Coverage    94.31%   94.31%           
========================================
  Files          192      192           
  Lines        24782    24782           
  Branches      3341     3341           
========================================
  Hits         23372    23372           
  Misses        1362     1362           
  Partials        48       48           
Impacted Files Coverage Δ
package/MDAnalysis/lib/mdamath.py 100.00% <100.00%> (ø)
package/MDAnalysis/lib/util.py 90.98% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Aug 27 '22 20:08 codecov[bot]

We also have another open PR with this fix #3544 and ongoing discussion in #3707 #3545. Basically we are waiting on further discussion as to whether we allow np.float64 coordinates etc.

hmacdope avatar Aug 28 '22 00:08 hmacdope

Good point, I suggest we close this then.

It looks like for this specific set of fairly minor changes Richard and I are both already in favor--I can't see many problems arising from these changes in isolation, even if we didn't go all in on custom dtypes everywhere. It sounds like there was also demand for multi-precision at a recent conference--could that context be added to one of the discussion issues? Probably to gh-3707?

tylerjereddy avatar Aug 28 '22 01:08 tylerjereddy

Hi @tanmaymunjal. This PR is very similar to an existing PR with this fix #3544. We will aim to merge that first and see if there is anything outstanding that you have picked up here. Thanks for your understanding.

hmacdope avatar Aug 30 '22 12:08 hmacdope

Sure, @hmacdope , np. I have also been working on #2046, lib.distances.distance_array() issue, almost done. Any idea if there is any current PR or discussion around it or should I send a PR for it?

tanmaymunjal avatar Aug 30 '22 14:08 tanmaymunjal

Sure, @hmacdope , np. I have also been working on #2046, lib.distances.distance_array() issue, almost done. Any idea if there is any current PR or discussion around it or should I send a PR for it?

@tanmaymunjal which subissue on the checklist are you looking to address?

hmacdope avatar Aug 30 '22 21:08 hmacdope

@hmacdope, the lib,distances.distance_array() issue and maybe the false sharing one as well,15th and 16th issue I think under the code issues headline

tanmaymunjal avatar Aug 31 '22 02:08 tanmaymunjal

The distance array issue no one is working on as far as I know. For openMP some changes were made recently by @RMeli in #3706 and #3728, so some of that may have been addressed but I am not certain.

hmacdope avatar Aug 31 '22 03:08 hmacdope

Ok, Thanks!

tanmaymunjal avatar Aug 31 '22 05:08 tanmaymunjal

@hmacdope is this PR still relevant or should we close it?

orbeckst avatar Jan 06 '23 22:01 orbeckst

@hmacdope is this PR still relevant or should we close it?

Closeable

hmacdope avatar Jan 06 '23 22:01 hmacdope