Skip to content

Commit bd03672

Browse files
committed
Rename: iter_selections_for_level => iter_selections_at_level
1 parent 424604a commit bd03672

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/input/commodity/demand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ fn compute_demand_maps(
187187
) -> HashMap<CommodityID, DemandMap> {
188188
let mut map = HashMap::new();
189189
for ((commodity_id, region_id, year), (level, annual_demand)) in demand.iter() {
190-
for ts_selection in time_slice_info.iter_selections_for_level(*level) {
190+
for ts_selection in time_slice_info.iter_selections_at_level(*level) {
191191
let slice_key = (
192192
commodity_id.clone(),
193193
region_id.clone(),

src/input/commodity/demand_slicing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ fn validate_demand_slices(
128128
) -> Result<()> {
129129
for (commodity, region_id) in iproduct!(svd_commodities.values(), region_ids) {
130130
time_slice_info
131-
.iter_selections_for_level(commodity.time_slice_level)
131+
.iter_selections_at_level(commodity.time_slice_level)
132132
.map(|ts_selection| {
133133
demand_slices
134134
.get(&(

src/input/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ fn validate_commodities(
174174
}
175175
CommodityType::ServiceDemand => {
176176
for ts_selection in
177-
time_slice_info.iter_selections_for_level(commodity.time_slice_level)
177+
time_slice_info.iter_selections_at_level(commodity.time_slice_level)
178178
{
179179
validate_svd_commodity(
180180
time_slice_info,

src/time_slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl TimeSliceInfo {
292292
///
293293
/// For example, if [`TimeSliceLevel::Season`] is specified, this function will return an
294294
/// iterator of [`TimeSliceSelection`]s covering each season.
295-
pub fn iter_selections_for_level(
295+
pub fn iter_selections_at_level(
296296
&self,
297297
level: TimeSliceLevel,
298298
) -> Box<dyn Iterator<Item = TimeSliceSelection> + '_> {

0 commit comments

Comments
 (0)