Closed BalzaniEdoardo closed 3 months ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
pynapple/core/ts_group.py | 6 | 10 | 60.0% | ||
<!-- | Total: | 6 | 10 | 60.0% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
pynapple/core/time_series.py | 1 | 48.69% | ||
<!-- | Total: | 1 | --> |
Totals | |
---|---|
Change from base Build 8545295196: | 0.05% |
Covered Lines: | 2259 |
Relevant Lines: | 2591 |
TsGroup Edits
Modified the
__init__
of the ts_group. Now it coverts all keys to integer with the following behavior:ValueError
if any of the keys cannot be converted toint
ValuError
if the converted key has a different value from the original, for example{1.2: ts}
is not accepted because 1.2 would be converted to 1. This avoids issue if one has two float keys with the same integer partValueError
if after conversion two keys have the same value. this happens in this weird corner cased={1:ts, "1": ts}
Tests