Skip to content
Snippets Groups Projects
Commit e91e8bbc authored by Wernle, Alexandra Nicole's avatar Wernle, Alexandra Nicole
Browse files

Fixed test_gaps function

parent a1d26059
No related branches found
No related tags found
1 merge request!194Changed dst_tot to calculate average regardless of nan values and added a new count
...@@ -80,8 +80,8 @@ def test_gaps(): ...@@ -80,8 +80,8 @@ def test_gaps():
# Run timeseries through the average process # Run timeseries through the average process
outstream = alg.process(timeseries) outstream = alg.process(timeseries)
# The gaps should not be changed and should remain 'nan' # The gaps should not be ignored
assert_array_equal(outstream[0].data, [1, 1, np.nan, np.nan, 1, 1]) assert_array_equal(outstream[0].data, [1, 1, 1, 1, 1, 1])
def test_metadata(): def test_metadata():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment