File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ class FILE_TYPE(Enum):
65
65
LIGHTCONE = 5
66
66
STRUCTURE_COLLECTION = 6
67
67
SIMULATION_COLLECTION = 7
68
+ SYNTHETIC_CATALOG = 8
68
69
69
70
70
71
class COLLECTION_TYPE (Enum ):
@@ -96,6 +97,8 @@ def get_file_type(file: h5py.File) -> FILE_TYPE:
96
97
return FILE_TYPE .GALAXY_PROPERTIES
97
98
elif dtype == "galaxy_particles" :
98
99
return FILE_TYPE .GALAXY_PARTICLES
100
+ elif dtype == "diffsky_fits" :
101
+ return FILE_TYPE .SYNTHETIC_CATALOG
99
102
else :
100
103
raise ValueError (f"Unknown file type { dtype } " )
101
104
Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ def test_link_particles_only(halo_paths):
84
84
85
85
86
86
def test_link_profiles_only (halo_paths ):
87
- collection = oc .open (halo_paths [1 ], halo_paths [2 ])
87
+ print (halo_paths )
88
+ collection = oc .open (halo_paths [0 ], halo_paths [2 ])
88
89
assert isinstance (collection , oc .StructureCollection )
89
90
assert set (collection .keys ()) == {"halo_properties" , "halo_profiles" }
90
91
You can’t perform that action at this time.
0 commit comments