Skip to content

Commit

Permalink
Cast baseline from np.int16 to int
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfokkema committed Jun 11, 2024
1 parent 8f186ca commit 3a4b292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publicdb/api/datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def retrieve_traces(node, timestamp, nanoseconds, raw=False):
for trace_idx in traces_idx if trace_idx != -1]

traces = [
[int(value) if baseline == -999 or raw else int(value) - baseline for value in trace_str if value != '']
[int(value) if baseline == -999 or raw else int(value) - int(baseline) for value in trace_str if value != '']
for baseline, trace_str in zip(baselines, traces_str)
]

Expand Down

0 comments on commit 3a4b292

Please sign in to comment.