Closed ZLLentz closed 6 years ago
Merging #11 into master will increase coverage by
0.55%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #11 +/- ##
==========================================
+ Coverage 98.89% 99.44% +0.55%
==========================================
Files 2 2
Lines 362 362
==========================================
+ Hits 358 360 +2
+ Misses 4 2 -2
Impacted Files | Coverage Δ | |
---|---|---|
pcdsdaq/daq.py | 99.69% <100%> (+0.61%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 63d3185...94cc0e7. Read the comment docs.
Thoughts on updating to a full error
? You should never be instantiating a read DAQ
object without pydaq
? In fact why not just import pydaq
in the class and we'll raise an ImportError
there?
Good point, the warning made sense when it was on import but now you really want to know if your class is broken or not
Motivation and Context
This warning fires every time we import
daq.py
, even if it's an incidental import that doesn't make aDaq
object. I think this warning is important, but I don't think it should run on import.An interesting side effect is that we don't get the warning if we've acknowledged the lack of
pydaq
by setting up the sim daq.