source: TI02-CSML/trunk/parser/API/parser_api.py @ 1027

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI02-CSML/trunk/parser/API/parser_api.py@1027
Revision 1027, 2.2 KB checked in by domlowe, 14 years ago (diff)

fixed API imports across all modules

Line 
1''' parser_api.py  '''
2
3#import parser from parent directory
4# import 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
8# try:
9#     from Parser import *
10#     import parser_extra
11# except:
12#     print 'Could not import CSML Parser. Make sure the Parser code is in parent directory.'
13#     sys.exit()
14#
15# import ops_Dataset
16# import ops_AbstractFeature
17# import ops_PointFeature
18# import ops_PointSeriesFeature
19# import ops_ProfileFeature
20# import ops_ProfileSeriesFeature
21# import ops_GridFeature
22# import ops_GridSeriesFeature
23# import ops_TrajectoryFeature
24
25#Assign methods  .. hmmm perhaps a loop needed here!!
26
27#Dataset methods:
28Dataset.parse=ops_Dataset.parse
29Dataset.getFeatureList=ops_Dataset.getFeatureList
30Dataset.getFeature=ops_Dataset.getFeature
31Dataset.getFileExtract=ops_Dataset.getFileExtract
32
33
34#AbstractFeature methods:
35AbstractFeature.testmethod=ops_AbstractFeature.testmethod
36AbstractFeature.getAllowedSubsettings=ops_AbstractFeature.getAllowedSubsettings
37
38#PointFeature methods:
39PointFeature.testmethod=ops_PointFeature.testmethod
40#PointFeature.getAllowedSubsettings=ops_PointFeature.getAllowedSubsettings
41
42#PointSeriesFeature methods:
43PointSeriesFeature.testmethod=ops_PointSeriesFeature.testmethod
44#PointSeriesFeature.getAllowedSubsettings=ops_PointSeriesFeature.getAllowedSubsettings
45
46#ProfileFeature methods:
47ProfileFeature.testmethod=ops_ProfileFeature.testmethod
48#ProfileFeature.getAllowedSubsettings=ops_ProfileFeature.getAllowedSubsettings
49
50#ProfileSeriesFeature methods:
51ProfileSeriesFeature.testmethod=ops_ProfileSeriesFeature.testmethod
52#ProfileSeriesFeature.getAllowedSubsettings=ops_ProfileSeriesFeature.getAllowedSubsettings
53
54#GridFeature methods:
55GridFeature.testmethod=ops_GridFeature.testmethod
56#GridFeature.getAllowedSubsettings=ops_GridFeature.getAllowedSubsettings
57
58#GridSeriesFeature methods:
59GridSeriesFeature.testmethod=ops_GridSeriesFeature.testmethod
60GridSeriesFeature.getAllowedSubsettings=ops_GridSeriesFeature.getAllowedSubsettings
61GridSeriesFeature.getDomainReference=ops_GridSeriesFeature.getDomainReference
62
63#TrajectoryFeature methods:
64TrajectoryFeature.testmethod=ops_TrajectoryFeature.testmethod
Note: See TracBrowser for help on using the repository browser.