ISEPOS-2941 Handle empty input error #3
@ -37,6 +37,9 @@ def main(Input_catalog, Input_injection_rate, time_win_in_hours, time_step_in_ho
|
||||
from util.CandidateEventsTS import CandidateEventsTS
|
||||
from util.M_max_models import M_max_models
|
||||
|
||||
if Input_injection_rate is empty:
|
||||
raise ValueError("Input_injection_rate contains empty value")
|
||||
|
||||
|
||||
def latlon_to_enu(lat, lon, alt):
|
||||
lat0 = np.mean(lat)
|
||||
lon0 = np.mean(lon)
|
||||
|
Loading…
Reference in New Issue
Block a user
Do we want to say that it contains empty value or that it is empty? Also, the error would be transferred to the portal later, so maybe it's better to just say "Injection rate file" or "Injection rate value" instead of "Input_injection_rate" which is a variable name specific to the script.