Closed jagoosw closed 10 months ago
We dropped showing "Optional components" and "Sinking velocities" from model's show methods?
Attention: 10 lines
in your changes are missing coverage. Please review.
Comparison is base (
37530fc
) 65.84% compared to head (1658ddf
) 64.18%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
We dropped showing "Optional components" and "Sinking velocities" from model's show methods?
Where is this? It still shows them here: https://github.com/OceanBioME/OceanBioME.jl/blob/c6e098f211a4765d50b3a4b1c110a248c9a3a619/src/Models/AdvectedPopulations/LOBSTER/LOBSTER.jl#L430-L435
E.g., look at the changes in docs/src/model_components/biogeochemical/LOBSTER.md
I had to do so that the doctests pass. That's what I meant.
Ah I see, that's because there LOBSTER
is wrapped in Biogeochemistry
so its only showing the summary of the underlying model:
julia> bgc_model
Lodyc-DAMTP Ocean Biogeochemical Simulation Tools for Ecosystem and Resources (LOBSTER) model (Float64)
Light attenuation: Two-band light attenuation model (Float64)
Sediment: Nothing
Particles: Nothing
julia> bgc_model.underlying_biogeochemistry
Lodyc-DAMTP Ocean Biogeochemical Simulation Tools for Ecosystem and Resources (LOBSTER) model (Float64)
Optional components:
βββ Carbonates β
βββ Oxygen β
βββ Variable Redfield Ratio β
Sinking Velocities:
βββ sPOM: 0.0 to -3.47e-5 m/s
βββ bPOM: 0.0 to -0.0023148148148148147 m/s
Perhaps the summary should include slightly more information? I could change it so the summary includes:
summary(::LOBSTER{FT, Val{B}, W}) where {FT, B, W} = string("Lodyc-DAMTP Ocean Biogeochemical Simulation Tools for Ecosystem and Resources (LOBSTER) model ($FT)\n Optional components: carbonates $(B[1] ? :β
: :β), oxygen $(B[2] ? :β
: :β), variable Redfield ratio $(B[3] ? :β
: :β)")
But then it is quite long. I don't think we really need the sinking velocities in the summary since the details are a lot less important.
I think itβs fine. Just wanted to ensure it wasnβt by accident.
Merge at your convenience.
I think itβs fine. Just wanted to ensure it wasnβt by accident.
Merge at your convenience.
Ah thank you, just saw this and have changed them a bit so will need to update docstrings
When I went to update Oceananigans I found these changes I made so thought we might as well merge them first too.