Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions autofit/aggregator/summary/aggregate_fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class FITSFit(Enum):


class AggregateFITS:
def __init__(self, aggregator: Aggregator):
def __init__(self, aggregator: Union[Aggregator, List[SearchOutput]]):
"""
A class for extracting fits files from the aggregator.

Expand Down Expand Up @@ -80,7 +80,7 @@ def _hdus(
)
return row

def extract_fits(self, hdus: List[Enum]) -> List[fits.HDUList]:
def extract_fits(self, hdus: List[Enum]) -> fits.HDUList:
"""
Extract the HDUs from the fits files for every search in the aggregator.

Expand All @@ -101,7 +101,7 @@ def extract_fits(self, hdus: List[Enum]) -> List[fits.HDUList]:

return fits.HDUList(output)

def extract_csv(self, filename : str) -> List[Dict]:
def extract_csv(self, filename: str) -> List[Dict]:
"""
Extract .csv files which store imaging results that are typically on irregular grids and thus don't suit
a .fits file.
Expand Down
2 changes: 1 addition & 1 deletion autofit/aggregator/summary/aggregate_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def image_at_coordinates(
class AggregateImages:
def __init__(
self,
aggregator: Aggregator,
aggregator: Union[Aggregator, List[SearchOutput]],
):
"""
Extracts images from the aggregator and combines them into one
Expand Down
Loading