Skip to content

Commit

Permalink
re-renamed DataDeconvolutionAlgorithmInterface to ImageDeconvolutionD…
Browse files Browse the repository at this point in the history
…ataInterfaceBase
  • Loading branch information
hiyoneda committed Jul 2, 2024
1 parent bfce183 commit 4cdaa47
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cosipy/image_deconvolution/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .image_deconvolution import ImageDeconvolution, model_classes, deconvolution_algorithm_classes

from .data_deconvolution_algorithm_interface_base import DataDeconvolutionAlgorithmInterfaceBase
from .image_deconvolution_data_interface_base import ImageDeconvolutionDataInterfaceBase
from .dataIF_COSI_DC2 import DataIF_COSI_DC2

from .model_base import ModelBase
Expand Down
8 changes: 4 additions & 4 deletions cosipy/image_deconvolution/dataIF_COSI_DC2.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@

from cosipy.response import FullDetectorResponse

from .data_deconvolution_algorithm_interface_base import DataDeconvolutionAlgorithmInterfaceBase
from .image_deconvolution_data_interface_base import ImageDeconvolutionDataInterfaceBase

class DataIF_COSI_DC2(DataDeconvolutionAlgorithmInterfaceBase):
class DataIF_COSI_DC2(ImageDeconvolutionDataInterfaceBase):
"""
A subclass of DataDeconvolutionAlgorithmInterfaceBase for the COSI data challenge 2.
A subclass of ImageDeconvolutionDataInterfaceBase for the COSI data challenge 2.
"""

def __init__(self, name = None):

DataDeconvolutionAlgorithmInterfaceBase.__init__(self, name)
ImageDeconvolutionDataInterfaceBase.__init__(self, name)

self._image_response = None # histpy.Histogram (dense)

Expand Down
2 changes: 1 addition & 1 deletion cosipy/image_deconvolution/deconvolution_algorithm_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DeconvolutionAlgorithmBase(ABC):
Attributes
----------
initial_model: :py:class:`cosipy.image_deconvolution.ModelMap`
dataset: list of :py:class:`cosipy.image_deconvolution.DataDeconvolutionAlgorithmInterfaceBase` or its subclass
dataset: list of :py:class:`cosipy.image_deconvolution.ImageDeconvolutionDataInterfaceBase` or its subclass
parameter : py:class:`yayc.Configurator`
results: list of results
dict_bkg_norm: the dictionary of background normalizations
Expand Down
2 changes: 1 addition & 1 deletion cosipy/image_deconvolution/image_deconvolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def set_dataset(self, dataset):
Parameters
----------
dataset : list of :py:class:`cosipy.image_deconvolution.DataDeconvolutionAlgorithmInterfaceBase` or its subclass
dataset : list of :py:class:`cosipy.image_deconvolution.ImageDeconvolutionDataInterfaceBase` or its subclass
Each component contaning an event histogram, a background model, a response matrix, and a coordsys_conversion_matrix.
"""

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from abc import ABC, abstractmethod

class DataDeconvolutionAlgorithmInterfaceBase(ABC):
class ImageDeconvolutionDataInterfaceBase(ABC):
"""
A base class for managing data for image analysis, i.e.,
event data, background models, response, coordsys conversion matrix etc.
Expand Down

0 comments on commit 4cdaa47

Please sign in to comment.