-
Notifications
You must be signed in to change notification settings - Fork 11
Conversation
Codecov Report
@@ Coverage Diff @@
## master #266 +/- ##
==========================================
- Coverage 90.35% 90.18% -0.18%
==========================================
Files 4 4
Lines 477 489 +12
Branches 75 80 +5
==========================================
+ Hits 431 441 +10
- Misses 31 33 +2
Partials 15 15
Continue to review full report at Codecov.
|
https://github.com/NSLS-II/bluesky/blob/b92e1a42f188fd7efa982c3ac1c8a064c1879a50/bluesky/utils.py#L837 is how we are currently doing this. This has the advantage of not copying lists. |
metadatastore/mds.py
Outdated
@@ -656,6 +657,13 @@ def insert_descriptor(self, run_start, data_keys, time, uid, **kwargs): | |||
data_keys=data_keys, | |||
time=time, uid=uid, | |||
**kwargs) | |||
def _sanitize_np(self, val): |
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.
Since this does not need access to self
I'd suggest making it top-level function rather than a method. It's easier to test that way.
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.
The tests do not test putting in an array, might be worth changing one of the keys to that, but not going to hold the PR over it.
Not ready for merge.
In accordance with bluesky/bluesky#674
TODO: