-
Notifications
You must be signed in to change notification settings - Fork 2
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
Release v8.1.1 #452
Draft
dschlaep
wants to merge
14
commits into
master
Choose a base branch
from
release/devel_v8.1.1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Release v8.1.1 #452
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- SWRC_check_parameters_for_*() now check that SWRCp are finite - SW_SIT_init_run() now only runs SWRC_check_parameters() on organic SWRCp if there is organic matter in the soil
- Update fall-back default values to match those of siteparam.in - Fix too long warning message * these messages were previously too long (exceeding MAX_LOG_SIZE = 300 characters) and caused LogError() to throw the error "Programmer: message exceeds the maximum size." * shortened and simplified warning messages about too many or inconsistent soil temperature profile layers
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #452 +/- ##
==========================================
+ Coverage 73.78% 74.62% +0.84%
==========================================
Files 20 20
Lines 6496 6471 -25
==========================================
+ Hits 4793 4829 +36
+ Misses 1703 1642 -61 ☔ View full report in Codecov by Sentry. |
- The logfile name is needed earlier in the program execution before SW_OUT_read() - Remove `logfile.log` in outsetup.in and place it in files.in - Logfile name gains new directory "logs/" to remove it from the outputs * This will also be used in future parallelization development - Update global constants for the number of input and output files - Open logfile after reading in files.in * Create directory if it does not exist already
- the logfile is now, by default, logs/logfile.log
- all test sites have now snow densities > 0 (previously, snow density at non-target test sites was set to 0) because 0 snow density is now an error (since v8.1.0) - checks now consistently identify which successful testRuns produced messages (those runs were previously misidentified if they occurred after a failed testRun)
- fix test "SpinUpFixtureTest.SpinupEvaluation": commit 5fe65df "Match code to new structs" on 2024 Jul 2 erroneously switch the variable for the short test run away from correct local_sw - improve script "Rscript__SW2_SpinupEvaluation.R" to separate out relationships at different initial conditions of soil temperature vs soil moisture
- input tsv updated to include new input group "inSite" with spatial index and row for nc-input of Tsoil_constant - new example nc-input "inSite/tas-clim.nc" - updated ncTestRuns code
- Update constants and defines to make room for this new input within the input spreadsheet - Update `read_spatial_topo_climate_inputs()` to now read in the input group "inSite" * Rename to `read_spatial_topo_climate_site_inputs()`
nc-input for constant soil temperature at depth
- close #454 "Monthly scaling of meteorological variables only works for MaxT, MinT and PPT" - SOILWAT2 v7.0.0 introduced additional daily meteorological variables and associated monthly scaling parameters for manipulative treatment experiments; However, monthly scaling parameters were only correctly applied if at least one scaling parameter among maxT, minT, and PPT was activated; for instance, if the monthly scaling parameter for wind was the only activated parameter, then the code failed to apply the scaling. - Monthly scaling parameters are now consistently applied - New tests that failed before this fix with ``` [ RUN ] WeatherFixtureTest.WeatherMonthlyScalingParameters tests/gtests/test_SW_Weather.cc:976: Failure Expected: (SW_Run.Weather.allHist[0].cloudcov_daily[0]) != (allHist[0].cloudcov_daily[0]), actual: 66.483870967741936 vs 66.483870967741936 tests/gtests/test_SW_Weather.cc:1005: Failure Expected: (SW_Run.Weather.allHist[0].windspeed_daily[0]) != (allHist[0].windspeed_daily[0]), actual: 1.3 vs 1.3 tests/gtests/test_SW_Weather.cc:1034: Failure Expected: (SW_Run.Weather.allHist[0].r_humidity_daily[0]) != (allHist[0].r_humidity_daily[0]), actual: 61 vs 61 tests/gtests/test_SW_Weather.cc:1063: Failure Expected: (SW_Run.Weather.allHist[0].actualVaporPressure[0]) != (allHist[0].actualVaporPressure[0]), actual: 0.20245873285008623 vs 0.20245873285008623 ```
- Previously, when attempting to delete a subdirectory within a directory we are trying to clean, we would get a warning that it wasn't deleted - Take a new approach and recursively go through the subdirectory(ies) and delete their content when attempting to clean a directory - Rename `getfiles()` to `RemoveFilesHelper()` which will do the recursive calls * Detects if a directory is present and will recurse into it if we are cleaning the directory - I.e., don't recurse if we are removing specific files from a directory * Remove any files that match the pattern given when not cleaning a directory * Function takes in a maximum recursive depth (currently set to 10) * Keep boolean status value, but if a subdirectory fails, recurse up asap - Remove function `freeGetfilesEarly()` - `RemoveFiles()`now splits the file name into directory and base names, while splitting it based on '*'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Small bugfixes