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

Add fix_autos_func for reading diff autos #947

Merged
merged 1 commit into from
May 21, 2024
Merged

Add fix_autos_func for reading diff autos #947

merged 1 commit into from
May 21, 2024

Conversation

jsdillon
Copy link
Member

Right now in HERADataFastReader we ensure autos are real by taking the absolute value (as does pyuvdata's _fix_autos()). This is wrong for diff files, so this adds an option to instead use np.real rather than np.abs if a power-user wants to.

@jsdillon jsdillon requested a review from tyler-a-cox May 21, 2024 22:14
Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.24%. Comparing base (e56a686) to head (91fc3c4).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #947   +/-   ##
=======================================
  Coverage   97.24%   97.24%           
=======================================
  Files          30       30           
  Lines       10669    10669           
=======================================
  Hits        10375    10375           
  Misses        294      294           
Flag Coverage Δ
unittests 97.24% <100.00%> (ø)

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.

@jsdillon jsdillon merged commit 7b4c3b1 into main May 21, 2024
9 of 11 checks passed
@jsdillon jsdillon deleted the fix_auto_func branch May 21, 2024 22:41
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