Skip to content

Commit 82aee56

Browse files
authored
Initialise self.datasets correctly in MultiRedshiftObservationalData
1 parent 305a045 commit 82aee56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

velociraptor/observations/objects.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ class MultiRedshiftObservationalData(object):
671671
"""
672672

673673
# List of the individual redshift datasets.
674-
datasets: List[ObservationalData] = []
674+
datasets: List[ObservationalData]
675675

676676
# name of the observation (to be plotted on axes)
677677
name: str
@@ -698,6 +698,8 @@ def __init__(self):
698698
Initialises the object for observational data. Does nothing as we are
699699
unsure if we wish to read or write data at this point.
700700
"""
701+
702+
self.datasets = []
701703

702704
return
703705

0 commit comments

Comments
 (0)