BaseFigure#
- class hydromodpy.display.BaseFigure[source]#
Bases:
ABCABC providing the universal
plot()boilerplate.Return why this figure cannot render
sim, or None when it can.Checks the declared
specrequirements against what the run actually persisted. This is what lets a project list every figure it may want and get only the ones its solver and processes produced: a run without particle tracking reportsparticle_tracksas unavailable rather than drawing an empty axes.
- static field_descriptor_for(variable)[source]#
Return the canonical descriptor for
variable.Helper for figures that need
long_name/unitsto label axes or colorbars without hard-coding strings. RaisesUnknownFieldErrorifvariableis not registered.- Parameters:
variable (
str)- Return type:
FieldDescriptor