opticks

Classes

UnitInterval(*intervals)

Subclass the Interval class to handle units.

class UnitInterval(*intervals)[source]

Subclass the Interval class to handle units.

This fixes the problem between the infinity definitions of Portion and the unit handler (astropy, pint etc.).

Create a disjunction of zero, one or more intervals.

Parameters:

intervals – zero, one or more intervals.

classmethod from_atomic(left, lower, upper, right)[source]

Create an Interval instance containing a single atomic interval.

Parameters:
  • left – either CLOSED or OPEN.

  • lower – value of the lower bound.

  • upper – value of the upper bound.

  • right – either CLOSED or OPEN.

Modules

contrast_model

This subpackage contains the sharpness models classes and functions.

imaging_model

This subpackage contains the imager and optics model classes and functions.

utils

This subpackage contains utility functions for math operations as well as some other helpers.