-
Notifications
You must be signed in to change notification settings - Fork 0
Remove PARAM_MAP, use ReefGuide.ASSESSMENT_CRITERIA (for LowHighTide) #3
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
Conversation
…rs to be more strict, only include criteria in user params
c13ea42 to
6b6cf23
Compare
src/job_worker/handler_helpers.jl
Outdated
| ) | ||
|
|
||
| @debug "Merged bounds" min_val = bounds.min max_val = bounds.max user_specified_min = | ||
| @debug "Merged bounds for $(criteria.metadata.id)" min_val = bounds.min max_val = |
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.
kinda ugly, JuliaFormatter did this.
is there a multiline break syntax I could use?
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.
Yeah, I'm not a fan of this sequential assignment method either - I think it's hard to read.
I prefer to use multiline strings:
@debug """
Merged bounds for $(criteria.metadata.id):
min_val: $(bounds.min)
max_val: $(bounds.max)
...
"""I think the above should work.
ConnectedSystems
left a comment
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.
Very minor comments.
PeterBaker0
left a comment
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.
Happy with this - thanks - it's cleaner
|
|
||
| # NOTE: you can perform additional setup here if needed. For example, you | ||
| # might want to initialise data, caches or clients. | ||
| # might want to initialize data, caches or clients. |
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.
lol - we prefer american spelling? Is this a US agenda Arlo?
improved comments Co-authored-by: Takuya Iwanaga <[email protected]>
open-AIMS/reefguide#74
PARAM_MAP, useReefGuide.ASSESSMENT_CRITERIAinsteadRegionalAssessmentInputandSuitabilityAssessmentInputwith new criteria, alphabetical sortThe major change in this PR is that
build_regional_assessment_parametersbehavior changed.Previously, it would ignore missing data and set default bounds even when a criteria is not given. Now, it errors when criteria data is missing, and only sets a criteria param if at least one of the min|max params is specified.