diff --git a/gcm_toolkit/utils/interface.py b/gcm_toolkit/utils/interface.py index cc92deb..f75452b 100644 --- a/gcm_toolkit/utils/interface.py +++ b/gcm_toolkit/utils/interface.py @@ -369,7 +369,11 @@ def set_data(self, time, tag=None, regrid_lowres=False, wrt.write_status("STAT", "Selected data set for petitRADTRANS interface") wrt.write_status("INFO", "time: " + str(time)) - wrt.write_status("INFO", "tag: " + tag) + if tag is not None: + wrt.write_status("INFO", "tag: " + tag) + else: + wrt.write_status("INFO", "No tag given") + if terminator_avg: wrt.write_status("INFO", "Data set ready for transmission spectrum calculation")