-
Notifications
You must be signed in to change notification settings - Fork 60
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
Output directory in the location specified in settings[SHARPy][log_folder] #130
Conversation
Well done, Norberto! It is a valuable change for SHARPy. |
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.
Hi,
thank you very much for the effort to standarise this feature.
I have made some commits:
- I have removed settings['folder'] from some solvers that still had it
- I have changed self.dir to self.folders in some solvers for standarisation
- I have removed the definition of the folder variable in tests and cases
- I have removed old BeamCsvOutput
I didn't date to touch the optimiser so you are welcome to have a look at it. Can you please doublecheck the changes I made to PickleData and SaveParametricCase? I am not sure about them.
Best regards, Arturo.
Still requires an empty dictionary to be defined in the config file
Codecov Report
@@ Coverage Diff @@
## develop #130 +/- ##
===========================================
- Coverage 62.74% 62.71% -0.04%
===========================================
Files 123 123
Lines 21488 21435 -53
===========================================
- Hits 13483 13442 -41
+ Misses 8005 7993 -12
Continue to review full report at Codecov.
|
Over time we've ended with all post procs having their individual
folder
setting to specify their output directory. This has led to several inconsistencies (some would havefolder + / case_name/
included in the code and others not) which always brought trouble when writing input files.Since the use of different output folders for different postprocs is seldom used, the SHARPy output directory is now consolidated in what is provided in the
settings['SHARPy']['log_folder']
which will default to./output
. In this directory, a subsequent directory with the case name will be provided such that all output folders (aero
,beam
....) will be found insettings['SHARPy']['output'] / settings['SHARPy']['case']
. The output folder is also now an attribute of thePreSharpy
class and can be usually accessed asdata.output_folder
.The
folder
setting for each postproc has been removed. Tests have been updated.