Skip to content

Commit

Permalink
feature: Adds --image-set as option to topostats
Browse files Browse the repository at this point in the history
Closes #1057

In reviewing #1056 I wanted to look at the individual grain curvature plots that were generated and realised that there
was no command-line option to modify the configuration value loaded from the YAML (`topostats/default_config.yaml` or
user specified with `--config-file/-c`).

This means that currently if people want the `all` image set then they have to use `topostats create-config` to create a
configuration file, modify the value of `image_set` and run the analysis with `topostats -c new_config.yaml`.

It was very quick and easy to add this option so I could check the output and as its been done I felt it should be
incorporated into TopoStats.
  • Loading branch information
ns-rse committed Dec 17, 2024
1 parent 5ac4392 commit 0a7fa30
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions topostats/entry_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ def create_parser() -> arg.ArgumentParser:
required=False,
help="Channel to extract.",
)
parser.add_argument(
"--image-set",
dest="image_set",
type=str,
required=False,
help="Image set to generate, default is 'core' other option is 'all'.",
)

subparsers = parser.add_subparsers(title="program", description="Available programs, listed below:", dest="program")

Expand Down

0 comments on commit 0a7fa30

Please sign in to comment.