Skip to content

Commit

Permalink
"Added tests for SingleNodeScheduler"
Browse files Browse the repository at this point in the history
  • Loading branch information
IshikaKhandelwal committed Oct 5, 2023
1 parent 8b97fb3 commit 0ec07a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/noisepy/seis/noise_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# import pycwt
import scipy
from numba import jit,float32
from numba import jit
from obspy.core.inventory import Channel, Inventory, Network, Site, Station
from obspy.core.util.base import _get_function_from_entry_point
from obspy.signal.filter import bandpass
Expand Down Expand Up @@ -1257,7 +1257,7 @@ def portion_gaps(stream, starttime: obspy.UTCDateTime, endtime: obspy.UTCDateTim
return pgaps


@jit("float32[:](float32[:],float32)",nopython=True)
@jit("float32[:](float32[:],float32)")
def segment_interpolate(sig1, nfric):
"""
this function interpolates the data to ensure all points located on interger times of the
Expand Down
4 changes: 3 additions & 1 deletion tests/test_scheduler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from noisepy.seis.scheduler import SingleNodeScheduler


def test_single_node_scheduler_get_indices():
single_node_scheduler = SingleNodeScheduler()
items = ["a", "b", "c", "d"]
Expand All @@ -8,8 +9,9 @@ def test_single_node_scheduler_get_indices():

assert indices == expected_indices


def test_synchronize():
scheduler = SingleNodeScheduler()
result = scheduler.synchronize()

assert result is None
assert result is None

0 comments on commit 0ec07a0

Please sign in to comment.