Skip to content

Commit

Permalink
update process version numbers ... using dataset parameter ... rename…
Browse files Browse the repository at this point in the history
…d ioos cchecker identifier
  • Loading branch information
cehbrecht committed Aug 14, 2015
1 parent 4a1e663 commit a08b182
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
9 changes: 4 additions & 5 deletions processes/wps_cfchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ def __init__(self):
WPSProcess.__init__(self,
identifier = "cfchecker",
title = "CF Checker",
version = "0.1",
version = "2.0.9-1",
abstract="The cfchecker checks NetCDF files for compliance to the CF standard."
)

self.resource = self.addComplexInput(
identifier="resource",
self.dataset = self.addComplexInput(
identifier="dataset",
title="NetCDF File",
abstract="NetCDF File",
minOccurs=1,
maxOccurs=1000,
maxmegabites=10000,
Expand Down Expand Up @@ -67,7 +66,7 @@ def execute(self):
# TODO: generate html report with links to cfchecker output ...
outfile = self.mktempfile(suffix='.txt')
self.output.setValue( outfile )
nc_files = self.getInputValues(identifier='resource')
nc_files = self.getInputValues(identifier='dataset')
count = 0
max_count = len(nc_files)
step = 100.0 / max_count
Expand Down
9 changes: 4 additions & 5 deletions processes/wps_hdh.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ def __init__(self):
WPSProcess.__init__(self,
identifier = "qa_cfchecker",
title = "QA DKRZ CF Checker",
version = "0.1",
version = "0.5-1",
abstract="Qualtiy Assurance Tools by DKRZ: cfchecker checks NetCDF files for compliance to the CF standard."
)

self.resource = self.addComplexInput(
identifier="resource",
self.dataset = self.addComplexInput(
identifier="dataset",
title="NetCDF File",
abstract="NetCDF File",
minOccurs=1,
maxOccurs=1000,
maxmegabites=10000,
Expand All @@ -56,7 +55,7 @@ def execute(self):
# TODO: generate html report with links to cfchecker output ...
outfile = self.mktempfile(suffix='.txt')
self.output.setValue( outfile )
nc_files = self.getInputValues(identifier='resource')
nc_files = self.getInputValues(identifier='dataset')
count = 0
max_count = len(nc_files)
step = 100.0 / max_count
Expand Down
11 changes: 5 additions & 6 deletions processes/wps_ioos.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ def stdout_redirected(new_stdout):
class CFCheckerProcess(WPSProcess):
def __init__(self):
WPSProcess.__init__(self,
identifier = "cchecker",
identifier = "ioos_cchecker",
title = "IOOS Compliance Checker",
version = "0.1",
version = "1.1.1-2",
abstract="The IOOS Compliance Checker is a Python tool to check local/remote datasets against a variety of compliance standards."
)

self.resource = self.addComplexInput(
identifier="resource",
self.dataset = self.addComplexInput(
identifier="dataset",
title="NetCDF File",
abstract="NetCDF File",
minOccurs=1,
maxOccurs=1000,
maxmegabites=10000,
Expand Down Expand Up @@ -67,7 +66,7 @@ def execute(self):
# TODO: generate html report with links to cfchecker output ...
outfile = self.mktempfile(suffix='.txt')
self.output.setValue( outfile )
nc_files = self.getInputValues(identifier='resource')
nc_files = self.getInputValues(identifier='dataset')
count = 0
max_count = len(nc_files)
step = 100.0 / max_count
Expand Down
6 changes: 3 additions & 3 deletions processes/wps_tika.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def __init__(self):
WPSProcess.__init__(self,
identifier = "tika",
title = "Tika Metadata Parser",
version = "0.1",
version = "1.9.7-1",
abstract="Extracts Metadata of Files")

self.resource = self.addComplexInput(
Expand All @@ -30,7 +30,7 @@ def __init__(self):
)

def execute(self):
self.show_status("starting tika", 0)
self.show_status("starting ...", 0)

resources = self.getInputValues(identifier='resource')

Expand All @@ -50,7 +50,7 @@ def execute(self):
json.dump(obj=metadata, fp=fp, indent=4, sort_keys=True)
self.output.setValue( out_filename )

self.show_status("tika done", 100)
self.show_status("done", 100)



0 comments on commit a08b182

Please sign in to comment.