TypeError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_77340\979468509.py in
1 '''run simulations'''
----> 2 aez.simulateCropCycle( start_doy=1, end_doy=365, step_doy=1, leap_year=False) # results are in kg / hectare
I:\PyAEZ-master20230914\PyAEZ-master\pyaez\CropSimulation.py in simulateCropCycle(self, start_doy, end_doy, step_doy, leap_year)
870 """For irrigated"""
871 # extract climate data within the season to pass in to calculation classes
--> 872 minT_daily_season_irr = minT_daily_2year[i_cycle: i_cycle +
873 self.cycle_len_irr]
874 maxT_daily_season_irr = maxT_daily_2year[i_cycle: i_cycle +
TypeError: slice indices must be integers or None or have an index method
TypeError Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_77340\979468509.py in
1 '''run simulations'''
----> 2 aez.simulateCropCycle( start_doy=1, end_doy=365, step_doy=1, leap_year=False) # results are in kg / hectare
I:\PyAEZ-master20230914\PyAEZ-master\pyaez\CropSimulation.py in simulateCropCycle(self, start_doy, end_doy, step_doy, leap_year) 870 """For irrigated""" 871 # extract climate data within the season to pass in to calculation classes --> 872 minT_daily_season_irr = minT_daily_2year[i_cycle: i_cycle + 873 self.cycle_len_irr] 874 maxT_daily_season_irr = maxT_daily_2year[i_cycle: i_cycle +
TypeError: slice indices must be integers or None or have an index method
May I ask how this problem can be modified?