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

TV weights equal or less than zero #28

Merged
merged 3 commits into from
Oct 17, 2024
Merged

TV weights equal or less than zero #28

merged 3 commits into from
Oct 17, 2024

Conversation

tjlane
Copy link
Collaborator

@tjlane tjlane commented Oct 17, 2024

This PR resolves issue #26 and implements a new .from_numpy_map method on Map. The latter lets one instantiate a map object from a numpy array in one step instead of two.

Happy to have suggestions of how to name the function to make it clear that the numpy array should be a 3-d array of voxels in real space...

@tjlane tjlane requested a review from alisiafadini October 17, 2024 15:16
@tjlane tjlane self-assigned this Oct 17, 2024
@tjlane tjlane marked this pull request as draft October 17, 2024 15:24
@tjlane
Copy link
Collaborator Author

tjlane commented Oct 17, 2024

  • fix bug where tv methods were not propagating (unused) uncertainties from the input to output

@tjlane tjlane marked this pull request as ready for review October 17, 2024 15:35
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.66%. Comparing base (47dc49a) to head (3a9cd58).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #28      +/-   ##
==========================================
+ Coverage   96.58%   96.66%   +0.07%     
==========================================
  Files           9        9              
  Lines         498      509      +11     
==========================================
+ Hits          481      492      +11     
  Misses         17       17              
Flag Coverage Δ
unittests 96.66% <100.00%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

meteor/rsmap.py Show resolved Hide resolved
meteor/rsmap.py Show resolved Hide resolved
meteor/tv.py Show resolved Hide resolved
test/unit/test_tv.py Show resolved Hide resolved
@tjlane tjlane merged commit 7af68b4 into master Oct 17, 2024
5 checks passed
@tjlane tjlane deleted the tjlane/tv-weight-zero branch October 17, 2024 18:14
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

Successfully merging this pull request may close these issues.

2 participants