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

workflow settings should be cleaner #30

Open
poldrack opened this issue Jun 10, 2022 · 4 comments
Open

workflow settings should be cleaner #30

poldrack opened this issue Jun 10, 2022 · 4 comments

Comments

@poldrack
Copy link
Contributor

currently the workflow settings repeat the same operations many times. in addition, there are some settings like basedir that one might want to set in a settings file. come up with a cleaner way to integrate stored settings with args settings

@bellabrez
Copy link
Collaborator

Ashley and I were thinking about essentially deleting workflow_dict and instead just passing the full args dict to each script, which can then take whatever items it needs. for example args already has .preproc_settings['script'] (where script == 'fictrac_qc for example), so that script can directly pull the args it needs from there. Then instead workflow_dict would become just a list of jobs to run in order via run_preprocessing_step.

We do see that for some steps 'basedir' (in the workflow_dict) is set to args.basedir, while others set it to args.dir, and we also see that 'dir' (in the workflow_dict) is sometimes set to args.dir or args.process. This is related to issue #15, but looking forward not having the workflow_dict should not be a problem in sorting out directories, right?

What do you think?

@poldrack
Copy link
Contributor Author

poldrack commented Jun 10, 2022 via email

@bellabrez
Copy link
Collaborator

bellabrez commented Jun 13, 2022

I think so! Using PCA as an example, the settings.json would list the PCA dict twice, but each dict would have different values to run the two different PCA styles. For example the first dict could be
"PCA": { "script": "dimensionality_reduction.py", "time_hours": 8, "label": 'resid'}, the second dict could replace the label and whatever other key/values should be different. (These would all exist in the args.preproc_settings still).

@poldrack
Copy link
Contributor Author

poldrack commented Jun 14, 2022 via email

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

No branches or pull requests

2 participants