@@ -53,7 +53,7 @@ def aoh_species_inputs(wildcards):
5353 / "species-info"
5454 / wildcards .taxa
5555 / SCENARIO
56- / f"{ wildcards .species_id } .geojson" ,
56+ / f"range_ { wildcards .species_id } .geojson" ,
5757 # Base layers (precious - won't trigger rebuilds)
5858 "habitat_sentinel" : ancient (
5959 DATADIR / "habitat_layers" / SCENARIO / ".habitat_complete"
@@ -88,11 +88,11 @@ rule generate_aoh:
8888 unpack (aoh_species_inputs ),
8989 output :
9090 # Only declare JSON as output - TIF is optional (not created for empty AOHs)
91- metadata = DATADIR / "aohs" / SCENARIO / "{taxa}" / "{species_id}_all .json" ,
91+ metadata = DATADIR / "aohs" / SCENARIO / "{taxa}" / "aoh_ {species_id}.json" ,
9292 params :
9393 habitat_dir = DATADIR / "habitat_layers" / SCENARIO ,
9494 log :
95- DATADIR / "logs" / "aoh" / "{taxa}" / "{species_id}_all .log" ,
95+ DATADIR / "logs" / "aoh" / "{taxa}" / "{species_id}.log" ,
9696 resources :
9797 # Limit concurrent AOH jobs if needed (e.g., for memory)
9898 aoh_slots = 1 ,
@@ -126,7 +126,7 @@ def get_species_ids_for_taxa(wildcards):
126126 taxa = wildcards .taxa
127127 ).output [0 ]
128128 geojson_dir = Path (checkpoint_output ).parent
129- return [p .stem for p in geojson_dir .glob ("*.geojson" )]
129+ return [p .stem [ 6 :] for p in geojson_dir .glob ("range_ *.geojson" )]
130130
131131
132132def get_all_aoh_metadata_for_taxa (wildcards ):
@@ -135,7 +135,7 @@ def get_all_aoh_metadata_for_taxa(wildcards):
135135 """
136136 species_ids = get_species_ids_for_taxa (wildcards )
137137 return [
138- DATADIR / "aohs" / SCENARIO / wildcards .taxa / f"{ sid } _all .json"
138+ DATADIR / "aohs" / SCENARIO / wildcards .taxa / f"aoh_ { sid } .json"
139139 for sid in species_ids
140140 ]
141141
0 commit comments