-
Notifications
You must be signed in to change notification settings - Fork 19
Changed output CSV names and added basic / full option in config #1218
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing the output files here @tobyallwood
I think the output_stats_file
could be misleading (as I've also noted in the comments below) as reading that makes me think that its a file-name parameter that the statistics are written to. Dropping the suffix _file
would leave output_stats
which is more representative in my view (it could just be me though).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for going through these @tobyallwood
I've marked the previous conversations as "Resolved" but spotted a few minor things that have been introduced (comments inline).
If you make these changes locally then you can avoid making another "Addressing PR feedback" commit by using git commit --amend
and then, because no one else is likely to have touched this branch on GitHub or anywhere else you can git push --force
to force push the changes to the branch on GitHub and the pull request will be updated (this helps keep the history cleaner and avoids lots of small commits, if you want to read more on this the Git With It material I wrote and occassionally deliver has details).
docs/configuration.md
Outdated
| `log_level` | | string | `info` | Verbosity of logging, options are (in increasing order) `warning`, `error`, `info`, `debug`. | | ||
| `cores` | | integer | `2` | Number of cores to run parallel processes on. | | ||
| `file_ext` | | string | `.spm` | File extensions to search for. | | ||
| `output_stats` | | string | `full` | statistics to write to `.csv` files, options are `full` (all information on grains as well as branch and molecule statistics) or `basic` (just grain level statistics) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing The amount of
| `output_stats` | | string | `full` | statistics to write to `.csv` files, options are `full` (all information on grains as well as branch and molecule statistics) or `basic` (just grain level statistics) | | |
| `output_stats` | | string | `full` | The amount of statistics to write to `.csv` files, options are `full` (all information on grains as well as branch and molecule statistics) or `basic` (just grain level statistics) | |
415f372
to
d2c7207
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @tobyallwood, hopefully the nomenclature will stick going forward.
This can be merged now 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
TopoStats Pull Requests
Changed the main output CSV names:
A new option in config has also been added called
output_stats_file
which can be set tofull
orbasic
.full
will cause all four csvs to output andbasic
will ignore molecule_statistics.csv and branch_statistics.csv and only output grain_statistics.csv and image_statistics.csv.Before submitting a Pull Request please check the following.
docs/configuration.md
docs/usage.md
docs/data_dictionary.md
docs/advanced.md
and new pages it should link to.topostats/default_config.yaml
If adding options to
topostats/default_config.yaml
please ensure.topostats/validation.py
to ensure entries are valid.topostats/entry_point.py
.