Open katyhuff opened 6 years ago
closed by #47
Oh, I meant #57 I am pretty sure this issue has been addressed and merged as a PR (#57 has some commits that say "meaningful variable names"). But it would be nice to have an undergraduate reseracher take another look!
I think that would be best.
Below are a list of the lines I found that are hard-coded in the scripts folder's files.
analysis.py
924: timestep=10000
1456: width=0.5
1729: 0.00711 - frac_tail
create_AR_DeployInst
600: np.repeat(720, 116)
601:
Great work @RhysMacMillan, I look forward to reviewing you PR here. I think it would be best if you divide it up by script (some of the scripts with a few changes can be grouped together, but try to keep your PRs small so they are easy to review and faster to implement), keep in mind how the changes will affect the tests! When you make a PR, there should be corresponding changes to the tests such that they still work as designed.
If you have ideas or questions about what a variable does and you aren't sure, feel free to ask here so people can refer back to the discussion in the future if they have to.
I’ve changed all of the instances of the start year being 1965 except for in create_cyclus_input.py
. This was the only global variable instance of 1965 I found and I am not sure how to deal with it.
I considered having a user input for that variable but I don't know how the scripts are interacted with and if this would be cumbersome and unnecessary.
As noted in #162, there's some work on create_cyclus_input.py
that needs to be done to make it more user friendly! If you make a note of that assumption in the issue, I think that would be a good resolution for now.
All scripts in the scripts folder need to be reviewed and to be refactored for clarity.
This issue can be closed when all scripts have been refactored to avoid hard-coding variables without leaving any trace of the source or meaning of the data. No bare numbers, please. Filenames and paths that must be stored may need to be hardcoded, but should be organized and well-named.