Ignore:
Timestamp:
Jun 6, 2007, 5:27:22 PM (17 years ago)
Author:
duncan
Message:

getting fit 2 mesh file going again

File:
1 edited

Legend:

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

    r4513 r4535  
    2424from anuga.utilities.anuga_exceptions import ANUGAError
    2525from anuga.config import points_file_block_line_size as MAX_READ_LINES   
     26
     27DEFAULT_ATTRIBUTE = 'elevation'
    2628
    2729class Geospatial_data:
     
    5355        of lists (or arrays) of length M. In the latter case the keys
    5456        in the dictionary represent the attribute names, in the former
    55         the attribute will get the default name "attribute".
     57        the attribute will get the default name "elevation".
    5658       
    5759        geo_reference: Object representing the origin of the data
     
    208210        if not isinstance(attributes, DictType):
    209211            #Convert single attribute into dictionary
    210             attributes = {'attribute': attributes}
     212            attributes = {DEFAULT_ATTRIBUTE: attributes}
    211213
    212214        #Check input attributes   
     
    514516        attributes = {}
    515517        if file_name[-4:]== ".xya":
    516             msg = 'Text file format is moving to comma seperated .txt files.'
    517             warn(msg, DeprecationWarning)
     518            # Maybe not phase-out, so we can load in geo-ref info
     519            #msg = 'Text file format is moving to comma seperated .txt files.'
     520            #warn(msg, DeprecationWarning)
    518521            try:
    519522                if delimiter == None:
Note: See TracChangeset for help on using the changeset viewer.