Changeset 4102


Ignore:
Timestamp:
Dec 20, 2006, 10:55:51 AM (18 years ago)
Author:
ole
Message:

Compliance with style guide

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/geospatial_data/geospatial_data.py

    r4095 r4102  
    2020
    2121    def __init__(self,
    22                  data_points = None,
    23                  attributes = None,
    24                  geo_reference = None,
    25                  default_attribute_name = None,
    26                  file_name = None,
    27                  delimiter = None,
    28                  latitudes = None,
    29                  longitudes = None,
    30                  points_are_lats_longs = False,
    31                  verbose = False):
     22                 data_points=None,
     23                 attributes=None,
     24                 geo_reference=None,
     25                 default_attribute_name=None,
     26                 file_name=None,
     27                 delimiter=None,
     28                 latitudes=None,
     29                 longitudes=None,
     30                 points_are_lats_longs=False,
     31                 verbose=False):
    3232
    3333       
     
    211211        self.default_attribute_name = default_attribute_name
    212212
    213     def set_verbose(self, verbose = False):
     213    def set_verbose(self, verbose=False):
    214214        if verbose is not False:
    215215            verbose = True
     
    342342        return self.geo_reference
    343343       
    344     def get_data_points(self, absolute = True, geo_reference=None):
     344    def get_data_points(self, absolute=True, geo_reference=None):
    345345        """Get coordinates for all data points as an Nx2 array
    346346
     
    365365       
    366366   
    367     def get_attributes(self, attribute_name = None):
     367    def get_attributes(self, attribute_name=None):
    368368        """Return values for one named attribute.
    369369
     
    479479    ###
    480480
    481     def import_points_file(self, file_name, delimiter = None, verbose = False):
     481    def import_points_file(self, file_name, delimiter=None, verbose=False):
    482482        """ load an .xya or .pts file
    483483        Note: will throw an IOError if it can't load the file.
     
    657657
    658658
    659 def _read_pts_file(file_name, verbose = False):
     659def _read_pts_file(file_name, verbose=False):
    660660    """Read .pts NetCDF file
    661661   
     
    726726    return pointlist, attributes, geo_reference
    727727
    728 def _read_xya_file( fd, delimiter):
     728def _read_xya_file(fd, delimiter):
    729729    points = []
    730730    pointattributes = []
     
    828828                    write_attributes=None,
    829829                    write_geo_reference=None,
    830                     delimiter = ','):
     830                    delimiter=','):
    831831    """
    832832    export a file, file_name, with the xya format
     
    932932    return numbers
    933933           
    934 def ensure_absolute(points, geo_reference = None):
     934def ensure_absolute(points, geo_reference=None):
    935935    """
    936936    This function inputs several formats and
     
    972972     
    973973
    974 def ensure_geospatial(points, geo_reference = None):
     974def ensure_geospatial(points, geo_reference=None):
    975975    """
    976976    This function inputs several formats and
Note: See TracChangeset for help on using the changeset viewer.