Skip to content

Conversation

@DanielaBreitman
Copy link
Contributor

Fixes for issue #48.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@codecov
Copy link

codecov bot commented Sep 12, 2025

Codecov Report

❌ Patch coverage is 67.67677% with 32 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.95%. Comparing base (7480d86) to head (9fcd546).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/tuesday/core/instrument_models/noise.py 67.67% 17 Missing and 15 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
- Coverage   85.44%   82.95%   -2.50%     
==========================================
  Files          11       11              
  Lines         742      827      +85     
  Branches      188      206      +18     
==========================================
+ Hits          634      686      +52     
- Misses         44       62      +18     
- Partials       64       79      +15     
Flag Coverage Δ
unittests 82.95% <67.67%> (-2.50%) ⬇️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@steven-murray steven-murray left a comment

Choose a reason for hiding this comment

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

OK, I got through most of it and it looks decent, but got super confused on some important stuff. When that gets cleared up I'll have a better look at the example notebooks.

Comment on lines 289 to 290
sigma is set to zero for uv cells with less than
this number of baselines.
Copy link
Member

Choose a reason for hiding this comment

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

Technically, I think sigma should be set to np.inf... if in the end we do want to do inverse-variance weighting, np.inf will make this seamless.

@steven-murray
Copy link
Member

@nikos-triantafyllou and @DanielaBreitman I made some substantial updates on this PR, adding a lot of documentation and also changing some of the function names to be more clear.

@nikos-triantafyllou I'd be grateful if you could have another play with it -- the main example notebook has been updated to give you a head-start. But it only uses artificial lightcones, not realistic ones, so it would be good to have a look at those to catch any obvious errors.

Also, you'll need rasg-affiliates/21cmSense#215 to run this.

"source": [
"Now that we have the baseline groups and the time offsets, we take the baseline groups and move them for each time offset as the sky rotates over the instrument:"
"kperp_grid = np.fft.fftfreq(lc_shape[0], d=boxlength)\n",
"ugrid = kperp_grid/dk_du(z"

Choose a reason for hiding this comment

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

Something weird is going on here. A ")" is missing, but also "z" is not defined before. I guess this notebook was not fully updated. But I think this version has something wrong with the uv coverage.

Copy link
Member

Choose a reason for hiding this comment

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

Ah yeah, I started working on this notebook and didn't get further, because I wanted to test that things were working first.

" weights=weights,\n",
" time_offsets=time_offsets,\n",
" frequencies=freqs,\n",
" ugrid_edges=\n",

Choose a reason for hiding this comment

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

Missing things here also.

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