Skip to content

Conversation

@earosenberg
Copy link
Contributor

Add cuts based on ratio of "signal band" to white noise in demod PSDs to preprocess.
Also add per-wafer-obs mean numbers to the atomic db so the cuts can be done at bundling level instead.

Copy link
Contributor

@msilvafe msilvafe left a comment

Choose a reason for hiding this comment

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

Main request is to change is trying to merge SplitFlags and AtomicInfo processes but otherwise this is a nice thing to add. Have you scraped the existing databases to make the r_det histograms? I'd be interested in comparing how different those are to the r_mean ones.

Comment on lines 547 to 548
calc_aman.wrap("f_sel", np.array(f_sel))
calc_aman.wrap("f_wn", np.array(f_wn))
Copy link
Contributor

Choose a reason for hiding this comment

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

We have issues right now with wrapping scalars because we don't know how to merge them when loading back in. This is an issue for frequency cutoffs too. Since this info is stored in the config file and saved through the preprocess config check perhaps we can just omit this to avoid adding another case of this issue to fix.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These should be len(2) lists/arrays but maybe I don't understand what you mean by scalars? Think it would be nice to have in the proc_aman but sure I'll take it out if it's a headache

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But I suppose this will also affect rmean which I'd like to keep..
Is this also why apparent scalars in get_splits_flags are wrapped as (dets) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Has there been any update on this? Do I need to remove all scalars for this to work? @msilvafe

Copy link
Contributor

Choose a reason for hiding this comment

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

Unfortunately no, we (mostly @mmccrackan) are working on this big infrastructure overhaul first: #1348 once that's done then we'll work on the new obsdbs for stats and "info" tracking as described here: #1324 and that work will enable stashing scalars.

@msilvafe msilvafe self-requested a review December 5, 2025 15:37
Copy link
Contributor

@msilvafe msilvafe left a comment

Choose a reason for hiding this comment

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

Thanks for addressing these changes. I'm not sure if we'll apply cuts from this just yet but perhaps for v4 we can run this to save the relevant ratio metrics to the preprocess archive. Would you mind adding an example config to iso-sat/v4/satp1 with such an entry?

@earosenberg earosenberg merged commit c8cf0d9 into master Dec 9, 2025
5 checks passed
@earosenberg earosenberg deleted the er/noise_ratio branch December 9, 2025 15:21
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.

3 participants