Skip to content

Main feature of Uncertain class is not used #123

@HannoSpreeuw

Description

@HannoSpreeuw

The main idea of the Uncertain class is to provide for error propagation in derived quantities, i.e. if the $1\sigma$ uncertainties are provided for basic quantities, this class will provide you with the correct $1\sigma$ uncertainties for derived quantities.

As far as I can tell, we do not use that feature in any way in PySE.

Therefore, it seems that this class is an overkill.

Also see the post from the original author and the comment below: the uncertainties module would probably outperform the Uncertain class.

But again, within PySE, there seems to be no use for these features, except for having both value and error attributes, e.g. self["peak"].value" and "self["peak"].error where self is a ParamSet instantiation.

@suvayu Please let me know how you would replace the Uncertain class. Would a plain dict suffice? I am not sure about the value and error attributes, though.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions