From a71a6a9654245768b722da60496c43600265ab6a Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 30 Oct 2014 12:44:51 +0100 Subject: [PATCH] Adapt to new obsutils interface. --- scripts/cstsdist.py | 6 +++--- test/example_survey.py | 8 +++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/scripts/cstsdist.py b/scripts/cstsdist.py index 34d1ad2..7e8afb8 100755 --- a/scripts/cstsdist.py +++ b/scripts/cstsdist.py @@ -254,9 +254,9 @@ class cstsdist(GApplication): pntdir.lb_deg(lpnt, bpnt) # Create CTA observation - run = obsutils.set(pntdir, caldb=self.m_caldb, irf=self.m_irf, \ - duration=self.m_duration, \ - emin=emin, emax=emax, rad=self.m_rad) + run = obsutils.set_obs(pntdir, caldb=self.m_caldb, irf=self.m_irf, \ + duration=self.m_duration, \ + emin=emin, emax=emax, rad=self.m_rad) # Append observation to container obs.append(run) diff --git a/test/example_survey.py b/test/example_survey.py index 9eafce9..3067417 100755 --- a/test/example_survey.py +++ b/test/example_survey.py @@ -25,7 +25,7 @@ from math import * import os import glob import sys -import obsutils +from ctools import obsutils # =========== # @@ -235,8 +235,7 @@ def survey_single(): # Set single pointing at galactic centre pntdir = GSkyDir() pntdir.lb_deg(0.0, 0.0) - #run = set_one_obs(pntdir) - run = obsutils.set(pntdir) + run = obsutils.set_obs(pntdir) obs.append(run) # Define single point source with Crab flux at galactic centre @@ -276,8 +275,7 @@ def survey_gplane(lrange=10, lstep=2): # Set pointing pntdir = GSkyDir() pntdir.lb_deg(l, 0.0) - #run = set_one_obs(pntdir) - run = obsutils.set(pntdir) + run = obsutils.set_obs(pntdir) run.id(str(l)) obs.append(run) -- libgit2 0.21.4