removed dict and moved the args to init call
@@ -8,7 +8,7 @@ cal_file = make_path('$GAMMAPY_EXTRA/datasets/cta-1dc/caldb/data/cta/1dc/bcf/Sou
event_list = EventList.read(data_file)
-kwargs = dict(obs_id=event_list.table.meta['OBS_ID'],
+obs = ObservationCTA(obs_id=event_list.table.meta['OBS_ID'],
events=event_list,
gti=GTI.read(data_file),
psf=EnergyDependentMultiGaussPSF.read(cal_file, hdu='Point Spread Function'),
@@ -17,8 +17,6 @@ kwargs = dict(obs_id=event_list.table.meta['OBS_ID'],
bkg=Background3D.read(cal_file),
pointing_radec=event_list.pointing_radec,
observation_live_time_duration=event_list.observation_live_time_duration,
- observation_dead_time_fraction=event_list.observation_dead_time_fraction,
+ observation_dead_time_fraction=event_list.observation_dead_time_fraction
)
-
-obs = ObservationCTA(**kwargs)
print(obs)
