Changeset 1738 for TI02-CSML/branches


Ignore:
Timestamp:
22/11/06 10:54:48 (13 years ago)
Author:
domlowe
Message:

commenting out and fixing v1 imports

Location:
TI02-CSML/branches/CSML2/API
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/branches/CSML2/API/__init__.py

    r1589 r1738  
    1 ''' __init__.py  ''' 
     1#''' __init__.py  ''' 
    22 
    33 
    4 #import element tree and the parser api 
    5 from cElementTree import * 
    6 import csml.parser 
    7 import ops_Dataset 
    8 import ops_AbstractFileExtract 
    9 import ops_ArrayGenerator 
    10 import ops_AbstractFeature 
    11 import ops_PointFeature 
    12 import ops_PointSeriesFeature 
    13 import ops_ProfileFeature 
    14 import ops_ProfileSeriesFeature 
    15 import ops_GridFeature 
    16 import ops_GridSeriesFeature 
    17 import ops_TrajectoryFeature 
    18 import csmlContainer 
     4##import element tree and the parser api 
     5#from cElementTree import * 
     6#import csml.parser 
     7#import ops_Dataset 
     8#import ops_AbstractFileExtract 
     9#import ops_ArrayGenerator 
     10#import ops_AbstractFeature 
     11#import ops_PointFeature 
     12#import ops_PointSeriesFeature 
     13#import ops_ProfileFeature 
     14#import ops_ProfileSeriesFeature 
     15#import ops_GridFeature 
     16#import ops_GridSeriesFeature 
     17#import ops_TrajectoryFeature 
     18#import csmlContainer 
    1919 
    20 def addMethods(obj, meths): 
    21     for meth in meths: 
    22         setattr(obj, meth.__name__, meth) 
     20#def addMethods(obj, meths): 
     21    #for meth in meths: 
     22        #setattr(obj, meth.__name__, meth) 
    2323 
    24 #Assign methods to parser classes 
    25 #Dataset methods: 
    26 addMethods(csml.parser.Dataset, [ops_Dataset.parse, ops_Dataset.getSecurity, ops_Dataset.getFeatureList, ops_Dataset.getFeature, ops_Dataset.getFileExtract]) 
     24##Assign methods to parser classes 
     25##Dataset methods: 
     26#addMethods(csml.parser.Dataset, [ops_Dataset.parse, ops_Dataset.getSecurity, ops_Dataset.getFeatureList, ops_Dataset.getFeature, ops_Dataset.getFileExtract]) 
    2727 
    28 #AbstractFileExtract methods: 
    29 addMethods(csml.parser.AbstractFileExtract, [ops_AbstractFileExtract.getData]) 
     28##AbstractFileExtract methods: 
     29#addMethods(csml.parser.AbstractFileExtract, [ops_AbstractFileExtract.getData]) 
    3030 
    31 #ArrayGenerator methods: 
    32 addMethods(csml.parser.ArrayGenerator, [ops_ArrayGenerator.getGeneratedValues]) 
     31##ArrayGenerator methods: 
     32#addMethods(csml.parser.ArrayGenerator, [ops_ArrayGenerator.getGeneratedValues]) 
    3333 
    34 #AbstractFeature methods: 
    35 addMethods(csml.parser.AbstractFeature, [ops_AbstractFeature.testmethod, ops_AbstractFeature.getAllowedSubsettings]) 
     34##AbstractFeature methods: 
     35#addMethods(csml.parser.AbstractFeature, [ops_AbstractFeature.testmethod, ops_AbstractFeature.getAllowedSubsettings]) 
    3636 
    37 #PointFeature methods: 
    38 addMethods(csml.parser.PointFeature,[ops_PointFeature.testmethod]) 
     37##PointFeature methods: 
     38#addMethods(csml.parser.PointFeature,[ops_PointFeature.testmethod]) 
    3939 
    40 #PointSeriesFeature methods: 
    41 addMethods(csml.parser.PointSeriesFeature, [ops_PointSeriesFeature.testmethod,ops_PointSeriesFeature.getDomainReference, ops_PointSeriesFeature.getAllowedSubsettings]) 
     40##PointSeriesFeature methods: 
     41#addMethods(csml.parser.PointSeriesFeature, [ops_PointSeriesFeature.testmethod,ops_PointSeriesFeature.getDomainReference, ops_PointSeriesFeature.getAllowedSubsettings]) 
    4242 
    43 #ProfileFeature methods: 
    44 addMethods(csml.parser.ProfileFeature,[ops_ProfileFeature.testmethod]) 
     43##ProfileFeature methods: 
     44#addMethods(csml.parser.ProfileFeature,[ops_ProfileFeature.testmethod]) 
    4545 
    46 #ProfileSeriesFeature methods: 
    47 addMethods(csml.parser.ProfileSeriesFeature,[ops_ProfileSeriesFeature.testmethod]) 
     46##ProfileSeriesFeature methods: 
     47#addMethods(csml.parser.ProfileSeriesFeature,[ops_ProfileSeriesFeature.testmethod]) 
    4848 
    49 #GridFeature methods: 
    50 addMethods(csml.parser.GridFeature,[ops_GridFeature.testmethod]) 
     49##GridFeature methods: 
     50#addMethods(csml.parser.GridFeature,[ops_GridFeature.testmethod]) 
    5151 
    52 #GridSeriesFeature methods: 
    53 addMethods(csml.parser.GridSeriesFeature,[ops_GridFeature.testmethod, ops_GridSeriesFeature.getAllowedSubsettings,ops_GridSeriesFeature.getDomainReference,ops_GridSeriesFeature.getDomainComplement,ops_GridSeriesFeature.getDomain,ops_GridSeriesFeature.subsetToGridSeries]) 
     52##GridSeriesFeature methods: 
     53#addMethods(csml.parser.GridSeriesFeature,[ops_GridFeature.testmethod, ops_GridSeriesFeature.getAllowedSubsettings,ops_GridSeriesFeature.getDomainReference,ops_GridSeriesFeature.getDomainComplement,ops_GridSeriesFeature.getDomain,ops_GridSeriesFeature.subsetToGridSeries]) 
    5454 
    55 #TrajectoryFeature methods: 
    56 addMethods(csml.parser.TrajectoryFeature, [ops_TrajectoryFeature.testmethod]) 
     55##TrajectoryFeature methods: 
     56#addMethods(csml.parser.TrajectoryFeature, [ops_TrajectoryFeature.testmethod]) 
  • TI02-CSML/branches/CSML2/API/ops_GridSeriesFeature.py

    r1686 r1738  
    1515    return ['subsetToGridSeries']  #other operations 
    1616 
    17 def getDomain(self) 
     17def getDomain(self): 
    1818    #need some sort of domain 
    19      
     19    pass 
    2020 
    2121def subsetToGridSeries(self,   csmlpath=None, ncpath=None,**kwargs): 
    2222    #MUST be supplied with a CSMLContainer object to store the subsetted feature in 
    23      
    2423    return subsettedFeature, pathToSubsetNetCDF 
    2524    #container.attachNetCDFFile(nc) 
Note: See TracChangeset for help on using the changeset viewer.