Skip to content

Merge fails with TypeError #239

Description

@ThomDietrich

Hey there, I want to report the following bug.
In case I am not correct and this is wrong use on my end, I wonder if documentation needs to be updated.
All the best!


Python 3.8.5, traces 0.6.0

import traces
ts = [traces.TimeSeries(), traces.TimeSeries()]
ts[1][2] = 3
traces.TimeSeries.merge(ts, operation=sum)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.8/site-packages/traces/timeseries.py", line 778, in merge
    default = operation(default)
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions