ISEPOS-2941 Handle empty input error #3

Open
mieszkomakuch wants to merge 1 commits from bugfix/ISEPOS-2941-handle-empty-input-error into master
Showing only changes of commit b0fdc8113a - Show all commits

View File

@ -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")
Review

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.

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.
def latlon_to_enu(lat, lon, alt):
lat0 = np.mean(lat)
lon0 = np.mean(lon)