|
@@ -87,14 +87,11 @@ def sonify(network_conf, station_conf, channel_conf, starttime_conf, endtime_con
|
|
pass
|
|
pass
|
|
else:
|
|
else:
|
|
menu()
|
|
menu()
|
|
- return True
|
|
|
|
|
|
+ return true
|
|
else:
|
|
else:
|
|
print("No .mp4 file found in the directory.")
|
|
print("No .mp4 file found in the directory.")
|
|
- return False
|
|
|
|
except Exception as e:
|
|
except Exception as e:
|
|
- print(f"An error occurred during sonification: {str(e)}")
|
|
|
|
- return False
|
|
|
|
-
|
|
|
|
|
|
+ print(f"An error occurred during sonification: This station is not replying!")
|
|
|
|
|
|
def menu():
|
|
def menu():
|
|
main_menu = {
|
|
main_menu = {
|
|
@@ -283,9 +280,6 @@ def run(network_conf, station_conf, channel_conf, starttime_conf, endtime_conf,
|
|
db_lim_conf = line.split("=")[1]
|
|
db_lim_conf = line.split("=")[1]
|
|
|
|
|
|
success = sonify(network_conf, station_conf, channel_conf, starttime_conf, endtime_conf, freqmax_conf, freqmin_conf, speed_up_factor_conf, fps_conf, spec_win_dur_conf, db_lim_conf)
|
|
success = sonify(network_conf, station_conf, channel_conf, starttime_conf, endtime_conf, freqmax_conf, freqmin_conf, speed_up_factor_conf, fps_conf, spec_win_dur_conf, db_lim_conf)
|
|
- if not success:
|
|
|
|
- return False
|
|
|
|
- return True
|
|
|
|
|
|
|
|
def run_from_config_file():
|
|
def run_from_config_file():
|
|
lines = read_config("config")
|
|
lines = read_config("config")
|
|
@@ -328,7 +322,6 @@ def run_from_config_file():
|
|
if success:
|
|
if success:
|
|
menu()
|
|
menu()
|
|
|
|
|
|
-
|
|
|
|
def init():
|
|
def init():
|
|
if "--cmd" in sys.argv:
|
|
if "--cmd" in sys.argv:
|
|
try:
|
|
try:
|
|
@@ -428,8 +421,7 @@ def init():
|
|
db_lim_conf_2 = value.split("|")[1]
|
|
db_lim_conf_2 = value.split("|")[1]
|
|
db_lim_conf=(db_lim_conf_1+","+db_lim_conf_2)
|
|
db_lim_conf=(db_lim_conf_1+","+db_lim_conf_2)
|
|
success = sonify(network_conf, station_conf, channel_conf, starttime_conf, endtime_conf, freqmax_conf, freqmin_conf, speed_up_factor_conf, fps_conf, spec_win_dur_conf, db_lim_conf)
|
|
success = sonify(network_conf, station_conf, channel_conf, starttime_conf, endtime_conf, freqmax_conf, freqmin_conf, speed_up_factor_conf, fps_conf, spec_win_dur_conf, db_lim_conf)
|
|
- if not success:
|
|
|
|
- return False
|
|
|
|
|
|
+
|
|
if "--help" in sys.argv:
|
|
if "--help" in sys.argv:
|
|
print("="*50)
|
|
print("="*50)
|
|
banner()
|
|
banner()
|