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

Use config 'outputDirectory' in FileMode #1093

Merged
merged 4 commits into from Jul 29, 2015

Conversation

remram44
Copy link
Member

Mentioned in yesterday's meeting: 'outputDirectory' setting should be used.

Additionally, it looks like 'outputDirectory' is more than the default output path: if it is set, VisTrails is running in some kind of batch mode? See condition in run.py.

'outputDirectory' is not documented in configuration.py (neither is 'graphsAsPdf').

Should go in v2.2.

@@ -103,7 +103,7 @@ def run_and_get_results(w_list, parameters='', output_dir=None,
c = mashup.getAliasByName(key).component
params.append((c.vttype, c.vtid, value))

if output_dir is not None and controller.current_pipeline is not None:
if output_dir is not None and controller.current_pipeline is not None: # used
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, having outputDirectory set means the workflow XML gets written to it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code has been removed

@remram44 remram44 force-pushed the output-modules-use-global-dir branch from 445bccb to e4cae9b Compare June 17, 2015 18:07
@@ -553,7 +553,7 @@ def noninteractiveMode(self):
extra_info = None
if self.temp_configuration.check('outputDirectory'):
extra_info = \
{'pathDumpCells': self.temp_configuration.outputDirectory}
{'pathDumpCells': self.temp_configuration.outputDirectory} # carried over to pathDumpCells
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

outputDirectory gets set as pathDumpCells which triggers a lot more stuff

@@ -569,7 +569,7 @@ def noninteractiveMode(self):

extra_info = None
if output_dir:
extra_info = {'pathDumpCells': output_dir}
extra_info = {'pathDumpCells': output_dir} # carried over to pathDumpCells
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@remram44 #1093 (comment):

outputDirectory gets set as pathDumpCells which triggers a lot more stuff

@remram44 remram44 force-pushed the output-modules-use-global-dir branch from 78a62b3 to 5447fe0 Compare July 8, 2015 20:26
@@ -579,7 +579,7 @@ def noninteractiveMode(self):
errs.extend(vistrails.core.console_mode.run(
w_list,
self.temp_configuration.check('parameters') or '',
output_dir if self.temp_configuration.check('withWorkflowInfo') else None,
output_dir if self.temp_configuration.check('withWorkflowInfo') else None, # this is actually ignored
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the withWorkflowInfo functionality work at all? This parameter is ignored since 5b639bf as far as I can tell...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this should be removed. Also, the output_dir argument should be removed from console_mode.run, but we need to make sure nothing depends on the old argument order.

@remram44 remram44 force-pushed the output-modules-use-global-dir branch 3 times, most recently from af2e5ea to 4274cda Compare July 8, 2015 20:30
@remram44
Copy link
Member Author

remram44 commented Jul 9, 2015

Making progress 😄 The last thing is the pathDumpCells thing: AFAICT, if outputDirectory is set, thumbnails will be written to it.

@remram44 remram44 force-pushed the output-modules-use-global-dir branch from af2e5ea to 50d5245 Compare July 9, 2015 20:50
@rexissimus
Copy link
Member

Yes, but it does not work in batch mode because the spreadsheet is not used. pathDumpCells is set internally when generating thumbnails for the spreadsheet, so there should be no need to set it from the command-line anymore.

@remram44 remram44 force-pushed the output-modules-use-global-dir branch 2 times, most recently from bbad6c3 to 7538a49 Compare July 14, 2015 20:52
@remram44
Copy link
Member Author

This should be it?

@rexissimus rexissimus merged commit 7538a49 into master Jul 29, 2015
@rexissimus rexissimus deleted the output-modules-use-global-dir branch July 29, 2015 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants