Skip to content

Commit 2227d58

Browse files
author
Drew Resnick
committed
improve readibility of function call
1 parent 04af710 commit 2227d58

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

enacts/crop_suitability/maproom_crop_suit.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,11 @@ def timeseries_plot(
375375
lng1 = loc_marker[1]
376376

377377
if data_choice == "suitability_map":
378-
data = crop_suitability(rr_mrg,min_wet_days,wet_day_def,tmax_mrg,tmin_mrg,lower_wet_threshold,upper_wet_threshold,maximum_temp,minimum_temp,temp_range,target_season,dry_spell_rain,dry_days_in_row,number_dry_spells)
378+
data = crop_suitability(
379+
rr_mrg, min_wet_days, wet_day_def, tmax_mrg, tmin_mrg,
380+
lower_wet_threshold, upper_wet_threshold, maximum_temp,
381+
minimum_temp, temp_range, target_season, dry_spell_rain,
382+
dry_days_in_row,number_dry_spells)
379383
if data_choice == "precip_map":
380384
data = rr_mrg
381385
if data_choice == "tmax_map":
@@ -483,7 +487,11 @@ def cropSuit_layers(tz, tx, ty):
483487
y_max = pingrid.tile_top_mercator(ty, tz)
484488
y_min = pingrid.tile_top_mercator(ty + 1, tz)
485489

486-
crop_suit_vals = crop_suitability(rr_mrg,min_wet_days,wet_day_def,tmax_mrg,tmin_mrg,lower_wet_threshold,upper_wet_threshold,maximum_temp,minimum_temp,temp_range,target_season,dry_spell_rain,dry_days_in_row,number_dry_spells)
490+
crop_suit_vals = crop_suitability(
491+
rr_mrg, min_wet_days, wet_day_def, tmax_mrg, tmin_mrg,
492+
lower_wet_threshold, upper_wet_threshold, maximum_temp,
493+
minimum_temp, temp_range, target_season, dry_spell_rain,
494+
dry_days_in_row,number_dry_spells)
487495

488496
data_tile = crop_suit_vals.crop_suit
489497

0 commit comments

Comments
 (0)