Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with the tutorial #47

Open
ccarouge opened this issue Sep 16, 2015 · 3 comments
Open

Problem with the tutorial #47

ccarouge opened this issue Sep 16, 2015 · 3 comments
Labels

Comments

@ccarouge
Copy link

I want to try out the CWSLab Workflow tool so I started with the tutorial.
I've arrived at Step 2 (adding MergeTimeseries module). The tutorial says the workflow can then be run. If I execute there is the following error in MergeTimeseries module (as this module is red and the 2 previous ones are green):
Uncaught exception: "init() takes exactly 2 arguments (1 given)"

Traceback (most recent call last):
File "/opt/cloudapps/vistrails/2.1.2/vistrails/core/modules/vistrails_module.py", line 400, in update
self.compute()
File "/home/561/ccc561/.vistrails/userpackages/cwsl/vt_modules/vt_cdscan.py", line 92, in compute
execution_options=self._execution_options)
File "/home/561/ccc561/.vistrails/userpackages/cwsl/core/process_unit.py", line 94, in init
self.file_creator = FileCreator(output_pattern, final_constraints)
File "/home/561/ccc561/.vistrails/userpackages/cwsl/core/file_creator.py", line 85, in init
raise EmptyConstraintError
TypeError: init() takes exactly 2 arguments (1 given)

I have no idea what is missing.

@DamienIrving
Copy link
Contributor

Hi @ccarouge. Thanks for spotting this bug with the tutorial. We've done some development work on the workflow tool recently and MergeTimeseries has been replaced and thus no longer exists.

I'll tag this issue as a bug and someone will fix the tutorial in the coming days. In the meantime, there are a number of example workflows that do work in the cwsl-workflows repository. For example, open warm_water_volume.vt or aus_mean_tas.vt in VisTrails and try and execute those workflows instead.

@ccarouge
Copy link
Author

Actually I've just figured out what was going on. I had a typing error in the constraint string for the constraint builder so I guess the CMIP5 module output was empty. It would be good to have a way to check the output of CMIP5 module after the constraint is applied. At least know how many "files" were found or if the output is empty? It might be there but it's not in the tutorial.

@jimjam-slam
Copy link

I also had a problem with the tutorial, though I worked it out. The tutorial uses the Timeslice module to cut the data series down to 2060–2080, but Nino3.4 subsequently fails:

ERROR: Rolling climatology requires at least 4 decades to calculate climatology

But it's fine if you give it a longer series (2035–2080, for example). I also used Crop, since Timeslice wasn't available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants