Skip to content

Commit

Permalink
Update glider_qc.py
Browse files Browse the repository at this point in the history
fixed glider_qc/glider_qc.py:140: NameError: name 'ncfile' is not defined line
  • Loading branch information
leilabbb authored Dec 7, 2024
1 parent 01cb059 commit 76253f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glider_qc/glider_qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def create_qc_variables(self, ncvariable):

variable_name = template['name'].format(name=name_value)

if variable_name not in ncfile.variables:
if variable_name not in self.ncfile.variables:
ncvar = self.ncfile.createVariable(variable_name, np.int8, dims, fill_value=np.int16(-999))
else:
ncvar = self.ncfile.variables[variable_name]
Expand Down

0 comments on commit 76253f8

Please sign in to comment.