Skip to content

Commit

Permalink
integrate_nodes_to_master (#1034) - fixing more flake8 errors my loca…
Browse files Browse the repository at this point in the history
…l, old flake8 parser did not flag up.
  • Loading branch information
CKehl committed Jul 8, 2021
1 parent d10040f commit 173ffc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions parcels/compilation/codeinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def load_functions(self, function_param_array=None):
except (AttributeError, ValueError, KeyError, IndexError) as e:
result = None
logger.error("Failed to load function '{}' from library '{}.".format(function_param["name"], self.basename))
e.print_stack()
return result

def close(self):
Expand Down
2 changes: 1 addition & 1 deletion parcels/nodes/PyNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def close_c_funcs(self):
self.reset_data_ptr_c()
self.unlink_c_functions()
if self.c_lib_register_ref is not None:
self.c_lib_register_ref.deregister("node")
self.c_lib_register_ref.deregister("node")
except:
pass
self.registered = False
Expand Down
2 changes: 1 addition & 1 deletion parcels/particlefile/particlefilenodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _create_trajectory_records(self, coords):
getattr(self, vname).units = "unknown"

for vname in self.var_names_once:
# hm, shouldn't that be adaptive instead of "f4" ? I think I looked that up already once and if violates the CF convention, sadly
# hm, shouldn't that be adaptive instead of "f4" ? I think I looked that up already once and if violates the CF convention, sadly
setattr(self, vname, self.dataset.createVariable(vname, "f4", "traj", fill_value=np.nan))
getattr(self, vname).long_name = ""
getattr(self, vname).standard_name = vname
Expand Down

0 comments on commit 173ffc9

Please sign in to comment.