Skip to content

Conversation

@arlowhite
Copy link
Collaborator

@arlowhite arlowhite commented Aug 7, 2025

open-AIMS/reefguide#74

  • remove hardcoded PARAM_MAP, use ReefGuide.ASSESSMENT_CRITERIA instead
  • initialise to initialize
  • update RegionalAssessmentInput and SuitabilityAssessmentInput with new criteria, alphabetical sort

The major change in this PR is that build_regional_assessment_parameters behavior 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.

)

@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 =
Copy link
Collaborator Author

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?

Copy link
Collaborator

@ConnectedSystems ConnectedSystems Aug 7, 2025

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.

@arlowhite arlowhite changed the title Low high criteria Remove PARAM_MAP, use ReefGuide.ASSESSMENT_CRITERIA (for LowHighTide) Aug 7, 2025
Copy link
Collaborator

@ConnectedSystems ConnectedSystems left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor comments.

Copy link
Collaborator

@PeterBaker0 PeterBaker0 left a 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.
Copy link
Collaborator

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?

@arlowhite arlowhite merged commit c194c6c into main Aug 13, 2025
1 check passed
@arlowhite arlowhite deleted the low-high-criteria branch August 13, 2025 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants