Ignore:
Timestamp:
26/05/06 14:34:00 (14 years ago)
Author:
domlowe
Message:

domainreference + domaincomplement working in api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/parser/API/__init__.py

    r1029 r1032  
    11''' __init__.py  ''' 
    22 
    3 #import everything needed 
     3#import dataiface from scanner 
    44import os, sys 
    5 currentPath=os.getcwd() 
    6 parserPath=os.sep.join(currentPath.split(os.sep)[:-1]) 
    7 sys.path.append(parserPath) #append the parser path to sys.path  
     5currentPath=os.getcwd()  
     6scannerPath=os.sep.join(currentPath.split(os.sep)[:-1]) + '/Scanner' 
     7sys.path.append(scannerPath) #append the parser path to sys.path  
     8print sys.path 
    89try: 
    9     import Parser 
    10     import parser_extra 
     10    import csmllibs.csmldataiface as csmldataiface 
    1111except: 
    12     print 'Could not import CSML Parser. Make sure the Parser code is in parent directory.' 
     12    print 'Could not import CSML data interface. ' 
    1313    sys.exit() 
    1414 
     15 
     16#import element tree and the parser api 
    1517from cElementTree import * 
     18import Parser 
     19import parser_extra 
    1620import ops_Dataset 
     21import ops_AbstractFileExtract 
    1722import ops_AbstractFeature 
    1823import ops_PointFeature 
     
    3338Parser.Dataset.getFileExtract=ops_Dataset.getFileExtract 
    3439 
     40#AbstractFileExtract methods: 
     41Parser.AbstractFileExtract.getData=ops_AbstractFileExtract.getData 
    3542 
    3643#AbstractFeature methods: 
     
    6269Parser.GridSeriesFeature.getAllowedSubsettings=ops_GridSeriesFeature.getAllowedSubsettings 
    6370Parser.GridSeriesFeature.getDomainReference=ops_GridSeriesFeature.getDomainReference 
     71Parser.GridSeriesFeature.getDomainComplement=ops_GridSeriesFeature.getDomainComplement 
    6472 
    6573#TrajectoryFeature methods: 
Note: See TracChangeset for help on using the changeset viewer.