Closed JBGreisman closed 2 years ago
Merging #182 (7c0264f) into main (4222ffc) will increase coverage by
0.01%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## main #182 +/- ##
==========================================
+ Coverage 98.36% 98.37% +0.01%
==========================================
Files 45 45
Lines 1772 1783 +11
==========================================
+ Hits 1743 1754 +11
Misses 29 29
Flag | Coverage Δ | |
---|---|---|
unittests | 98.37% <100.00%> (+0.01%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Impacted Files | Coverage Δ | |
---|---|---|
reciprocalspaceship/dataset.py | 98.20% <100.00%> (+0.04%) |
:arrow_up: |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
Pandas DataFrames that contain ExtensionDtypes always default to output data with
object
dtype whenDataFrame.to_numpy()
is called. This is suboptimal for MTZ data, which by construction must be compatible withfloat32
, and possiblyint32
.This PR wraps the pandas call with
DataSet.to_numpy()
to assess whether a more sensible default (eitherfloat32
orint32
) can be used based on the existing data. This should help to avoid cases where data is unnecessarily cast to anobject
array, which can lead to unexpected behavior downstream.