@@ -96,6 +96,7 @@ def generate_species_info(
9696) -> None :
9797 properties = {
9898 "id_no" : "1234" ,
99+ "assessment_id" : "789" ,
99100 "season" : "1" ,
100101 "elevation_lower" : float (elevation_range [0 ]),
101102 "elevation_upper" : float (elevation_range [1 ]),
@@ -153,9 +154,9 @@ def test_simple_aoh(force_habitat) -> None:
153154 force_habitat = force_habitat ,
154155 )
155156
156- expected_geotiff_path = output_dir / "1234_1 .tif"
157+ expected_geotiff_path = output_dir / "aoh_T1234A789_1 .tif"
157158 assert expected_geotiff_path .exists ()
158- expected_manifest_path = output_dir / "1234_1 .json"
159+ expected_manifest_path = output_dir / "aoh_T1234A789_1 .json"
159160 assert expected_manifest_path .exists ()
160161
161162 with open (expected_manifest_path , "r" , encoding = "UTF-8" ) as f :
@@ -224,9 +225,9 @@ def test_no_habitat_aoh(force_habitat) -> None:
224225 force_habitat = force_habitat ,
225226 )
226227
227- expected_geotiff_path = output_dir / "1234_1 .tif"
228+ expected_geotiff_path = output_dir / "aoh_T1234A789_1 .tif"
228229 assert expected_geotiff_path .exists () == (not force_habitat )
229- expected_manifest_path = output_dir / "1234_1 .json"
230+ expected_manifest_path = output_dir / "aoh_T1234A789_1 .json"
230231 assert expected_manifest_path .exists ()
231232
232233 with open (expected_manifest_path , "r" , encoding = "UTF-8" ) as f :
@@ -293,9 +294,9 @@ def test_simple_aoh_weight(force_habitat) -> None:
293294 weight_layer_paths = [area_path ],
294295 )
295296
296- expected_geotiff_path = output_dir / "1234_1 .tif"
297+ expected_geotiff_path = output_dir / "aoh_T1234A789_1 .tif"
297298 assert expected_geotiff_path .exists ()
298- expected_manifest_path = output_dir / "1234_1 .json"
299+ expected_manifest_path = output_dir / "aoh_T1234A789_1 .json"
299300 assert expected_manifest_path .exists ()
300301
301302 with open (expected_manifest_path , "r" , encoding = "UTF-8" ) as f :
@@ -367,9 +368,9 @@ def test_simple_aoh_multiple_habitats(force_habitat) -> None:
367368 force_habitat = force_habitat ,
368369 )
369370
370- expected_geotiff_path = output_dir / "1234_1 .tif"
371+ expected_geotiff_path = output_dir / "aoh_T1234A789_1 .tif"
371372 assert expected_geotiff_path .exists ()
372- expected_manifest_path = output_dir / "1234_1 .json"
373+ expected_manifest_path = output_dir / "aoh_T1234A789_1 .json"
373374 assert expected_manifest_path .exists ()
374375
375376 with open (expected_manifest_path , "r" , encoding = "UTF-8" ) as f :
@@ -439,9 +440,9 @@ def test_no_overlapping_habitats(force_habitat) -> None:
439440 force_habitat = force_habitat ,
440441 )
441442
442- expected_geotiff_path = output_dir / "1234_1 .tif"
443+ expected_geotiff_path = output_dir / "aoh_T1234A789_1 .tif"
443444 assert expected_geotiff_path .exists () == (not force_habitat )
444- expected_manifest_path = output_dir / "1234_1 .json"
445+ expected_manifest_path = output_dir / "aoh_T1234A789_1 .json"
445446 assert expected_manifest_path .exists ()
446447
447448 with open (expected_manifest_path , "r" , encoding = "UTF-8" ) as f :
@@ -502,9 +503,9 @@ def test_no_elevation_aoh(force_habitat) -> None:
502503 force_habitat = force_habitat ,
503504 )
504505
505- expected_geotiff_path = output_dir / "1234_1 .tif"
506+ expected_geotiff_path = output_dir / "aoh_T1234A789_1 .tif"
506507 assert expected_geotiff_path .exists ()
507- expected_manifest_path = output_dir / "1234_1 .json"
508+ expected_manifest_path = output_dir / "aoh_T1234A789_1 .json"
508509 assert expected_manifest_path .exists ()
509510
510511 with open (expected_manifest_path , "r" , encoding = "UTF-8" ) as f :
@@ -579,12 +580,12 @@ def test_simple_aoh_area() -> None:
579580 expected_area = yg .area_raster (("WGS84" , (360 / 200 , - 180 / 200 )))
580581
581582 with (
582- yg .read_raster (output_dir_without_area / "1234_1 .tif" ) as aoh_sans_area ,
583- yg .read_raster (output_dir_with_area / "1234_1 .tif" ) as aoh_with_area ,
583+ yg .read_raster (output_dir_without_area / "aoh_T1234A789_1 .tif" ) as aoh_sans_area ,
584+ yg .read_raster (output_dir_with_area / "aoh_T1234A789_1 .tif" ) as aoh_with_area ,
584585 ):
585- with open (output_dir_without_area / "1234_1 .json" , "r" , encoding = "UTF-8" ) as f :
586+ with open (output_dir_without_area / "aoh_T1234A789_1 .json" , "r" , encoding = "UTF-8" ) as f :
586587 sans_area_manifest = json .load (f )
587- with open (output_dir_with_area / "1234_1 .json" , "r" , encoding = "UTF-8" ) as f :
588+ with open (output_dir_with_area / "aoh_T1234A789_1 .json" , "r" , encoding = "UTF-8" ) as f :
588589 with_area_manifest = json .load (f )
589590
590591 # Check calculated values. All habitat layers for this
@@ -661,10 +662,10 @@ def test_simple_aoh_area_and_weights() -> None:
661662 expected_area = yg .area_raster (("WGS84" , (360 / 200 , - 180 / 200 )))
662663
663664 with (
664- yg .read_raster (output_dir_without_area / "1234_1 .tif" ) as aoh_sans_area ,
665- yg .read_raster (output_dir_with_area / "1234_1 .tif" ) as aoh_with_area ,
665+ yg .read_raster (output_dir_without_area / "aoh_T1234A789_1 .tif" ) as aoh_sans_area ,
666+ yg .read_raster (output_dir_with_area / "aoh_T1234A789_1 .tif" ) as aoh_with_area ,
666667 ):
667- with open (output_dir_with_area / "1234_1 .json" , "r" , encoding = "UTF-8" ) as f :
668+ with open (output_dir_with_area / "aoh_T1234A789_1 .json" , "r" , encoding = "UTF-8" ) as f :
668669 with_area_manifest = json .load (f )
669670
670671 manual_version_total = (aoh_sans_area * expected_area * 2 ).sum ()
0 commit comments