Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
awarde96 committed Aug 6, 2024
1 parent 3af21b0 commit 520ea19
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions tests/test_decoder_time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,26 +260,26 @@ def test_timeseries_coordinates(self):
coordinates = {
"t": [
[
[3, 7, 1, "20170101", "2017-01-01 00:00:00", "0"],
[3, 7, 1, "20170101", "2017-01-01 06:00:00", "0"],
[3, 7, 1, "20170101", "2017-01-01 12:00:00", "0"],
[3, 7, 1, "2017-01-01 00:00:00", "2017-01-01 00:00:00", "0"],
[3, 7, 1, "2017-01-01 00:00:00", "2017-01-01 06:00:00", "0"],
[3, 7, 1, "2017-01-01 00:00:00", "2017-01-01 12:00:00", "0"],
],
[
[3, 7, 1, "20170102", "2017-01-02 00:00:00", "0"],
[3, 7, 1, "20170102", "2017-01-02 06:00:00", "0"],
[3, 7, 1, "20170102", "2017-01-02 12:00:00", "0"],
[3, 7, 1, "2017-01-02 00:00:00", "2017-01-02 00:00:00", "0"],
[3, 7, 1, "2017-01-02 00:00:00", "2017-01-02 06:00:00", "0"],
[3, 7, 1, "2017-01-02 00:00:00", "2017-01-02 12:00:00", "0"],
],
],
"p": [
[
[3, 7, 1, "20170101", "2017-01-01 00:00:00", "0"],
[3, 7, 1, "20170101", "2017-01-01 06:00:00", "0"],
[3, 7, 1, "20170101", "2017-01-01 12:00:00", "0"],
[3, 7, 1, "2017-01-01 00:00:00", "2017-01-01 00:00:00", "0"],
[3, 7, 1, "2017-01-01 00:00:00", "2017-01-01 06:00:00", "0"],
[3, 7, 1, "2017-01-01 00:00:00", "2017-01-01 12:00:00", "0"],
],
[
[3, 7, 1, "20170102", "2017-01-02 00:00:00", "0"],
[3, 7, 1, "20170102", "2017-01-02 06:00:00", "0"],
[3, 7, 1, "20170102", "2017-01-02 12:00:00", "0"],
[3, 7, 1, "2017-01-02 00:00:00", "2017-01-02 00:00:00", "0"],
[3, 7, 1, "2017-01-02 00:00:00", "2017-01-02 06:00:00", "0"],
[3, 7, 1, "2017-01-02 00:00:00", "2017-01-02 12:00:00", "0"],
],
],
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_encoder_time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def test_add_coverage(self):
"t": timestamps,
}
coords.append(coord)
value = {"2t": [random.uniform(230, 270) for _ in range(0, len(timestamps))]}
value = {"2t": {0 : [random.uniform(230, 270) for _ in range(0, len(timestamps))]}}
values.append(value)
encoder.add_coverage(metadata, coord, value)

Expand Down

0 comments on commit 520ea19

Please sign in to comment.