Skip to content

Commit

Permalink
Fix tests after merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
atrabattoni committed Sep 17, 2024
1 parent fb235dd commit a5f6e22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions tests/io/test_asn.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import json
import socket
import threading
import time

Expand All @@ -19,8 +18,8 @@ def get_free_local_address():
"time": {
"tie_indices": [0, 99],
"tie_values": [
np.datetime64("2020-01-01T00:00:00.000"),
np.datetime64("2020-01-01T00:00:09.900"),
np.datetime64("2020-01-01T00:00:00.000000000"),
np.datetime64("2020-01-01T00:00:09.900000000"),
],
},
"distance": {"tie_indices": [0, 9], "tie_values": [0.0, 90.0]},
Expand Down
2 changes: 1 addition & 1 deletion xdas/synthetics.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def randn_wavefronts():


def dummy(shape=(1000, 100)):
starttime = np.datetime64("2024-01-01T00:00:00")
starttime = np.datetime64("2024-01-01T00:00:00.000000000")
endtime = starttime + (shape[0] - 1) * np.timedelta64(100, "ms")
time = {"tie_indices": [0, shape[0] - 1], "tie_values": [starttime, endtime]}
distance = {"tie_indices": [0, shape[1] - 1], "tie_values": [0.0, 1000.0]}
Expand Down

0 comments on commit a5f6e22

Please sign in to comment.