Changed output CSV names and added basic / full option in config#1218
Changed output CSV names and added basic / full option in config#1218tobyallwood merged 6 commits intomainfrom
Conversation
ns-rse
left a comment
There was a problem hiding this comment.
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).
ns-rse
left a comment
There was a problem hiding this comment.
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.
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
ns-rse
left a comment
There was a problem hiding this comment.
Thanks @tobyallwood, hopefully the nomenclature will stick going forward.
This can be merged now 👍
TopoStats Pull Requests
Changed the main output CSV names:
A new option in config has also been added called
output_stats_filewhich can be set tofullorbasic.fullwill cause all four csvs to output andbasicwill 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.mddocs/usage.mddocs/data_dictionary.mddocs/advanced.mdand new pages it should link to.topostats/default_config.yamlIf adding options to
topostats/default_config.yamlplease ensure.topostats/validation.pyto ensure entries are valid.topostats/entry_point.py.