Skip to content

Commit

Permalink
Deleted commented-out line, generalised test call.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosertoli committed Aug 4, 2023
1 parent d86b391 commit e8a5a8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion indica/readers/abstractreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,6 @@ def get_diode_filters(
t = database_results["times"]
t = DataArray(t, coords=[("t", t)], attrs={"long_name": "t", "units": "s"})
label = database_results["labels"]
# coords = [("t", t), ("filter", label)]
coords = [("t", t)]
if database_results["length"] > 1:
coords.append(("channel", np.arange(database_results["length"])))
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/readers/test_abstract_reader_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Reader(DataReader):
"radiation": "get_radiation",
"helike_spectroscopy": "get_helike_spectroscopy",
"interferometry": "get_interferometry",
"lines": "get_diode_filters",
"diode_filters": "get_diode_filters",
}

def __init__(
Expand Down Expand Up @@ -495,7 +495,7 @@ def test_get_helike_spectroscopy():

def test_get_diode_filters():
_test_get_methods(
instrument="lines",
instrument="diode_filters",
nsamples=10,
)

Expand Down

0 comments on commit e8a5a8c

Please sign in to comment.