MAPDeconvolverResult#

class jolideco.core.MAPDeconvolverResult(config, components, components_init, trace_loss, calibrations=None, calibrations_init=None, wcs=None)[source]#

Bases: object

MAP deconvolver result

Parameters:
  • config (dict) – Configuration from the LIRADeconvolver

  • components (FluxComponents) – Flux components.

  • components_init (FluxComponents) – Initial flux components.

  • trace_loss (~astropy.table.Table or dict) – Trace of the total loss.

Attributes Summary

calibrations

Calibrations (NPredCalibrations)

calibrations_init

Initial calibrations (NPredCalibrations)

components

Flux components (FluxComponents)

components_init

Initial flux components (FluxComponents)

config

Configuration data (dict)

config_table

Configuration data as table (~astropy.table.Table)

flux_total

Total flux

flux_upsampled_total

Total flux

Methods Summary

peek([figsize, kwargs_norm])

Plot the result and the trace of the loss function

plot_trace_loss([ax, which])

Plot trace loss

read(filename[, format])

Write result to file

write(filename[, overwrite, format])

Write result to file

Attributes Documentation

calibrations#

Calibrations (NPredCalibrations)

calibrations_init#

Initial calibrations (NPredCalibrations)

components#

Flux components (FluxComponents)

components_init#

Initial flux components (FluxComponents)

config#

Configuration data (dict)

config_table#

Configuration data as table (~astropy.table.Table)

flux_total#

Total flux

flux_upsampled_total#

Total flux

Methods Documentation

peek(figsize=(12, 5), kwargs_norm=None)[source]#

Plot the result and the trace of the loss function

Parameters:

figsize (tuple) – Figure size

plot_trace_loss(ax=None, which=None, **kwargs)[source]#

Plot trace loss

Parameters:
  • ax (~matplotlib.pyplot.Axes) – Plot axes

  • which (list of str) – Which traces to plot.

Returns:

ax – Plot axes

Return type:

~matplotlib.pyplot.Axes

classmethod read(filename, format='fits')[source]#

Write result to file

Parameters:
  • filename (str or Path) – Output filename

  • format ({"fits"}) – Format to use.

Returns:

result – Result object

Return type:

~MAPDeconvolverResult

write(filename, overwrite=False, format='fits')[source]#

Write result to file

Parameters:
  • filename (str or Path) – Output filename

  • overwrite (bool) – Overwrite file.

  • format ({"fits"}) – Format to use.