-
Notifications
You must be signed in to change notification settings - Fork 12
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
DM-42636: Use class methods for Instrument constructors #402
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #402 +/- ##
==========================================
+ Coverage 82.45% 82.61% +0.15%
==========================================
Files 91 91
Lines 10501 10519 +18
Branches 1989 1993 +4
==========================================
+ Hits 8659 8690 +31
+ Misses 1488 1476 -12
+ Partials 354 353 -1 ☔ View full report in Codecov by Sentry. |
8a36de2
to
dc222d4
Compare
6e4866a
to
30f0d82
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good, but I wonder if they'd be better in the obs_base
Instrument
subclass, to make pipe_base
assume our dimension universe a bit less.
f85f418
to
c443ded
Compare
1ae8e23
to
17da00c
Compare
This means that if you call InstrumentSubClass.from_string() the return value is now checked to make sure it is a subclass of InstrumentSubClass and not generically Instrument.
9a0e1c3
to
185cd8d
Compare
Checklist
doc/changes