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

Save the description.json alongside the script #2201

Merged
merged 3 commits into from Oct 11, 2021

Conversation

psavery
Copy link
Contributor

@psavery psavery commented Oct 8, 2021

If the user clicks the "Save Script" button below an operator's
python script, and then chooses to save the script somewhere,
save the description.json file next to it (where the filename will be
the script name with a .json extension) it if the following conditions
are true:

  1. The JSON description for the operator is not empty
  2. The file does not already exist, or the user says "yes, overwrite".
  3. We have permission to write the file

If the user clicks the "Save Script" button below an operator's
python script, and then chooses to save the script somewhere,
save the description.json file next to it (where the filename will be
the script name with a `.json` extension) it if the following conditions
are true:

1. The JSON description for the operator is not empty
2. The file does not already exist
3. We have permission to write the file

Maybe we can discuss this logic...

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
This will hide the "Additional Parameters" for the reconstruction
section if, for instance, a parameter with a test rotations tag is
present.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
psavery added a commit to psavery/tomvizdocs that referenced this pull request Oct 11, 2021
This adds documentation for both running the `FXI Workflow` operator,
and adding extra parameters to the `FXI Workflow` operator.

Depends on: OpenChemistry/tomviz#2201

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Just to make it much clearer what is going on, if the description
file exists, ask the user if they want to overwrite it. This will
make things much more intuitive as to when the file gets overwritten.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
@psavery psavery marked this pull request as ready for review October 11, 2021 19:44
@psavery psavery merged commit 71ad44c into OpenChemistry:master Oct 11, 2021
@psavery psavery deleted the save-description-json branch October 11, 2021 21:05
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

Successfully merging this pull request may close these issues.

None yet

2 participants