Skip to content

Commit

Permalink
Update test_glider_qc.py
Browse files Browse the repository at this point in the history
Fixed tests/test_glider_qc.py:73: NameError: name 'tempvar' is not defined
  • Loading branch information
leilabbb authored Dec 7, 2024
1 parent bb81a60 commit dd0c223
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_glider_qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def test_apply_qc(self):
times = ncfile.variables['time']
values = ncfile.variables['temperature']
values = [x if x != '--' else np.nan for x in values[:]]
values, note = qc.normalize_variable(np.array(values[:]), tempvar.units, tempvar.standard_name)
values, note = qc.normalize_variable(np.array(values[:]),
ncfile.variables['temperature'].units,
ncfile.variables['temperature'].standard_name)

df = pd.DataFrame({"time": times[:].astype('datetime64[s]'), "temp": values,},)

Expand Down

0 comments on commit dd0c223

Please sign in to comment.