Most dictionaries removed from Obs.__init__, the dicitonaries are now

only initialized when the gamma_method is executed
This commit is contained in:
Fabian Joswig 2021-10-26 15:43:30 +01:00
parent 7874bdb1fd
commit caa5fdb348
2 changed files with 22 additions and 37 deletions

View file

@ -175,7 +175,7 @@ def write_ADerrors(obs_list, file_path, bdio_path='./libbdio.so', **kwargs):
"""
for obs in obs_list:
if not obs.e_names:
if not hasattr(obs, 'e_names'):
raise Exception('Run the gamma method first for all obs.')
bdio = ctypes.cdll.LoadLibrary(bdio_path)