NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

Changeset 372

Show
Ignore:
Timestamp:
09/09/10 18:31:01
Author:
cbc
Message:

Account for missing values in Point class.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spongenet/trunk/spongenet/parse.py

    r371 r372  
    3333TEST_PATH = os.path.join("tests", "parse") 
    3434XMLNS_PATTERN = re.compile(r"(\{.*\})(.*)") 
     35MISSING_VALUE = -9999 
    3536 
    3637 
     
    228229            tag = XMLNS_PATTERN.search(elem.tag).groups()[1].lower() 
    229230            self[tag] = elem.text 
     231        if "value" not in self: 
     232            self["value"] = MISSING_VALUE 
    230233 
    231234