-
Notifications
You must be signed in to change notification settings - Fork 9
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
List outputs #454
base: main
Are you sure you want to change the base?
List outputs #454
Conversation
a64f0ac
to
7b91cb6
Compare
7b91cb6
to
cec488e
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.
I do wonder if at this point files ought to become descriptors. Intercepting their __set__
with building the appropriate filenames and extensions and maybe even building the output files dict
.
New summary looks something like:
In most cases, the output files are relatively simple to predict, so I write them before running the calculation. The main exceptions are:
|
What would be the advantage of this? Also, would it work for filenames that depend on things we only easily know at initialisation? |
The advantage would be that filenames are declared as extant on the class with a single definition and potentially avoiding a lot of the The disadvantages are increased code complexity (comprehending descriptors), and a number of special cases which may not be helped and it may not save anything at all in the end. When setting the value of the attribute the parent instance is known, but local function arguments (except the values) aren't. So it depends a little. It was more a passing thought I noted midway (and then submitted as my only comment making it seem more important). |
0cb8e87
to
0c6537a
Compare
Co-authored-by: Jacob Wilkins <46597752+oerc0122@users.noreply.github.com>
0c6537a
to
8390d6c
Compare
Adds
output_files
to all calculations, which is recorded in the summary file generated by the CLI.Will need rebasing after #452
To do: