File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,9 @@ def _(self, other: ConeRegion):
231
231
def _ (self , coords : SkyCoord ):
232
232
return True
233
233
234
+ def into_model (self ):
235
+ return None
236
+
234
237
235
238
@FullSkyRegion ._contains .register # type: ignore
236
239
def _ (self , other : FullSkyRegion ):
Original file line number Diff line number Diff line change @@ -387,5 +387,10 @@ def test_lc_collection_sort_and_take(
387
387
assert np .all (halo_masses [:100 ] == data )
388
388
389
389
390
- def test_write_single_lightcone ():
391
- raise NotImplementedError ()
390
+ def test_write_single_lightcone (haloproperties_600_path , tmp_path ):
391
+ ds = oc .open (haloproperties_600_path )
392
+ assert isinstance (ds , oc .Lightcone )
393
+ oc .write (tmp_path / "temp.hdf5" , ds )
394
+ ds_written = oc .open (tmp_path / "temp.hdf5" )
395
+ assert isinstance (ds , oc .Lightcone )
396
+ assert len (ds ) == len (ds_written )
You can’t perform that action at this time.
0 commit comments