Skip to content

Commit

Permalink
#525: static methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenwh authored and akorosov committed Jan 5, 2023
1 parent a3e6170 commit 78ff81a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nansat/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def export(self, filename='', bands=None, rm_metadata=None, add_geolocation=True

self.logger.debug('Export - OK!')

def rename_attributes(self, filename):
@staticmethod
def rename_attributes(filename):
""" Rename global attributes to get rid of the "GDAL_"-string
added by gdal.
"""
Expand All @@ -159,7 +160,8 @@ def rename_attributes(self, filename):
ds.renameAttribute(attr, attr.replace(GDAL, ""))
ds.close()

def rename_variables(self, filename):
@staticmethod
def rename_variables(filename):
""" Rename variable names to reflect the name attribute of
the variable's metadata.
Expand Down

0 comments on commit 78ff81a

Please sign in to comment.