psy_reg.plugin module

psy-simple psyplot plugin

This module defines the rcParams for the psy-simple plugin

psy_reg.plugin.get_versions(requirements=True)[source]
psy_reg.plugin.patch_prior_1_0(plotter_d, versions)[source]

Patch psy_reg plotters for versions smaller than 1.0

Before psyplot 1.0.0, the plotters in the psy_reg package where part of the psyplot.plotter.linreg module. This has to be corrected

psy_reg.plugin.patches = {('psyplot.plotter.linreg', 'DensityRegPlotter'): <function patch_prior_1_0>, ('psyplot.plotter.linreg', 'LinRegPlotter'): <function patch_prior_1_0>}

patches to apply when loading a project

psy_reg.plugin.rcParams

the RcParams for the psy-reg plugin

psy_reg.plugin.validate_callable(val)[source]
psy_reg.plugin.validate_fit(val)[source]
psy_reg.plugin.validate_fix(val)[source]
psy_reg.plugin.validate_ideal(val)[source]
psy_reg.plugin.validate_iter(value)[source]

Validate that the given value is an iterable

psy_reg.plugin.validate_line_xlim(val)[source]
class psy_reg.plugin.validate_list(dtype=None, length=None, listtype=<class 'list'>)[source]

Bases: object

Validate a list of the specified dtype

Parameters

dtype (object) – A datatype (e.g. float) that shall be used for the conversion

Initialization function

dtype

data type (e.g. float) used for the conversion

psy_reg.plugin.validate_p0(value)[source]
psy_reg.plugin.validate_param_bounds(value)[source]
psy_reg.plugin.validate_stringlist(s)[source]

Validate a list of strings

Parameters

val (iterable of strings) –

Returns

list of str

Return type

list

Raises

ValueError