Skip to content

Commit d65551a

Browse files
authored
Merge pull request #1141 from rhayes777/feature/mcp
feature/mcp
2 parents d0c905c + f29f71e commit d65551a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

autofit/aggregator/summary/aggregate_fits.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class FITSFit(Enum):
3535

3636

3737
class AggregateFITS:
38-
def __init__(self, aggregator: Aggregator):
38+
def __init__(self, aggregator: Union[Aggregator, List[SearchOutput]]):
3939
"""
4040
A class for extracting fits files from the aggregator.
4141
@@ -80,7 +80,7 @@ def _hdus(
8080
)
8181
return row
8282

83-
def extract_fits(self, hdus: List[Enum]) -> List[fits.HDUList]:
83+
def extract_fits(self, hdus: List[Enum]) -> fits.HDUList:
8484
"""
8585
Extract the HDUs from the fits files for every search in the aggregator.
8686
@@ -101,7 +101,7 @@ def extract_fits(self, hdus: List[Enum]) -> List[fits.HDUList]:
101101

102102
return fits.HDUList(output)
103103

104-
def extract_csv(self, filename : str) -> List[Dict]:
104+
def extract_csv(self, filename: str) -> List[Dict]:
105105
"""
106106
Extract .csv files which store imaging results that are typically on irregular grids and thus don't suit
107107
a .fits file.

autofit/aggregator/summary/aggregate_images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def image_at_coordinates(
103103
class AggregateImages:
104104
def __init__(
105105
self,
106-
aggregator: Aggregator,
106+
aggregator: Union[Aggregator, List[SearchOutput]],
107107
):
108108
"""
109109
Extracts images from the aggregator and combines them into one

0 commit comments

Comments
 (0)