Skip to content

Added a new "metastate" section type where one can combine states from different detectors#363

Draft
eagoetz wants to merge 3 commits into
gwpy:masterfrom
eagoetz:meta-state
Draft

Added a new "metastate" section type where one can combine states from different detectors#363
eagoetz wants to merge 3 commits into
gwpy:masterfrom
eagoetz:meta-state

Conversation

@eagoetz

@eagoetz eagoetz commented Mar 16, 2023

Copy link
Copy Markdown
Collaborator

This fixes a problem where the "Quiet" and "Noisy" states were undefined in time, so the whole duration was used. This meant there was no distinction between the states as plotted for the summary pages.

A metastate would be defined as

[metastate-Quiet]
key = Quiet
name = SEI Quiet
uses = H1-quiet,L1-quiet

[state-H1-Quiet]
name = SEI Quiet
key = H1-quiet
hours = 1-5,H1

[state-L1-Quiet]
name = SEI Quiet
key = L1-quiet
hours = 2-6,L1

It is not super robust in that it's really only supposed to be used for combining some interval for H1 and some interval for L1. I'm not sure it's really ready to be heavily used in many situations

Addresses the comment in #358

@eagoetz eagoetz changed the title Added a new "metastate" section type where one can combine states fro… Added a new "metastate" section type where one can combine states from different detecrtors Mar 16, 2023
@eagoetz eagoetz changed the title Added a new "metastate" section type where one can combine states from different detecrtors Added a new "metastate" section type where one can combine states from different detectors Mar 16, 2023
@codecov

codecov Bot commented Mar 16, 2023

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 60.97561% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.30%. Comparing base (48150d1) to head (77d68ed).
⚠️ Report is 56 commits behind head on master.

Files with missing lines Patch % Lines
gwsumm/plot/builtin.py 20.00% 8 Missing ⚠️
gwsumm/tabs/data.py 44.44% 5 Missing ⚠️
gwsumm/state/core.py 81.25% 3 Missing ⚠️

❌ Your patch check has failed because the patch coverage (60.98%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #363      +/-   ##
==========================================
+ Coverage   50.29%   50.30%   +0.01%     
==========================================
  Files          60       60              
  Lines        8665     8699      +34     
==========================================
+ Hits         4358     4376      +18     
- Misses       4307     4323      +16     
Flag Coverage Δ
Linux 50.30% <60.98%> (+0.01%) ⬆️
python3.10 50.30% <60.98%> (+0.01%) ⬆️
python3.7 49.50% <60.00%> (+0.01%) ⬆️
python3.8 50.30% <60.98%> (+0.01%) ⬆️
python3.9 50.30% <60.98%> (+0.01%) ⬆️

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.

…m different detectors

This fixes a problem where the "Quiet" and "Noisy" states were undefined in time, so the whole duration was used. This meant there was no distinction between the states as plotted for the summary pages.

A metastate would be defined as
```
[metastate-Quiet]
key = Quiet
name = SEI Quiet
uses = H1-quiet,L1-quiet

[state-H1-Quiet]
name = SEI Quiet
key = H1-quiet
hours = 1-5,H1

[state-L1-Quiet]
name = SEI Quiet
key = L1-quiet
hours = 2-6,L1
```

It is not super robust in that it's really only supposed to be used for combining some interval for H1 and some interval for L1. I'm not sure it's really ready to be heavily used in many situations

Addresses the comment in gwpy#358
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.

1 participant