validate.modeling.apply_model#

Apply a cerr.roe dosimetric model to a single patient dataset/pre-computed predictors.

Functions

getFractionCorrectionType(modelFile)

Return the fractionation-correction type a model requires.

getFractionationInputs(fxSize, fxNum, ...)

Return (fSizeIn, fNumIn) for dosimetric_models.run(), checking that the value the model's correction needs is available.

validate.modeling.apply_model.getFractionCorrectionType(modelFile)[source]#

Return the fractionation-correction type a model requires.

Parameters:

modelFile (str) – built-in model name or path to a model parameter JSON file (same accepted forms as dosimetric_models.run).

Returns:

“frxSize”, “frxNum”, or None if the model needs no correction.

validate.modeling.apply_model.getFractionationInputs(fxSize, fxNum, correctionType)[source]#

Return (fSizeIn, fNumIn) for dosimetric_models.run(), checking that the value the model’s correction needs is available.

Parameters:
  • fxSize (float or None) – fraction size, from data_io.read_inputs.getFractionation.

  • fxNum (float or None) – fraction number, from data_io.read_inputs.getFractionation.

  • correctionType – result of getFractionCorrectionType() for the model being applied.

Returns:

(fSizeIn, fNumIn) tuple; the entry not required by correctionType is None. Both are None when correctionType is None.