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

PSRDADA block updates #194

Merged
merged 12 commits into from
Dec 9, 2024
Merged

PSRDADA block updates #194

merged 12 commits into from
Dec 9, 2024

Conversation

telegraphic
Copy link
Collaborator

These updates are from https://github.com/Molonglo/bifrost, which is used for UTMOST-2D.

An alternative to this merge is to move PSRDADA functionality into a plugin.

@codecov-commenter
Copy link

codecov-commenter commented Dec 15, 2022

Codecov Report

Attention: Patch coverage is 9.66543% with 243 lines in your changes missing coverage. Please review.

Project coverage is 67.09%. Comparing base (898e4a8) to head (60e7a92).
Report is 554 commits behind head on master.

Files with missing lines Patch % Lines
python/bifrost/blocks/dada_file.py 0.00% 112 Missing ⚠️
python/bifrost/blocks/psrdada.py 16.66% 110 Missing ⚠️
python/bifrost/psrdada.py 16.00% 21 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #194      +/-   ##
==========================================
- Coverage   68.19%   67.09%   -1.11%     
==========================================
  Files          65       67       +2     
  Lines        5515     6026     +511     
==========================================
+ Hits         3761     4043     +282     
- Misses       1754     1983     +229     

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

python/bifrost/psrdada.py Outdated Show resolved Hide resolved
python/bifrost/blocks/psrdada.py Show resolved Hide resolved
python/bifrost/blocks/dada_file.py Show resolved Hide resolved
python/bifrost/blocks/dada_file.py Outdated Show resolved Hide resolved
python/bifrost/psrdada.py Outdated Show resolved Hide resolved
python/bifrost/blocks/psrdada.py Show resolved Hide resolved
python/bifrost/blocks/psrdada.py Outdated Show resolved Hide resolved
if len(s) > hdrlen:
raise RuntimeError("Header is too large for HDR_SIZE! Increase hdrlen")
n_pad = hdrlen - len(s)
return s + s_padding * n_pad
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is any encoding needed here for Py2 vs Py3?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very good chance there is :/. I guess I should write a unit test

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we have anything that covers psrdata now. We probably don't even install psrdata to test the wrapping.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm looking back through the code here and I'm not convinced that encoding is needed here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI now installs PSRDADA and the Bifrost wrappers get generated. @telegraphic do you have a .dada file I can test with?

@ledatelescope
Copy link
Owner

ledatelescope commented Feb 15, 2023 via email

@ledatelescope
Copy link
Owner

ledatelescope commented Feb 15, 2023 via email

@jaycedowell jaycedowell merged commit 6e6b9ae into ledatelescope:master Dec 9, 2024
11 of 14 checks passed
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.

4 participants