Commit 8dea6c796aee418e4a3d518a41b74bfe156b4019
1 parent
0def9609
Use time constructor instead of obsolete met() method.
The new GTime interface does not support the met() method. We now use the time constructor.
Showing
1 changed file
with
2 additions
and
4 deletions
scripts/obsutils.py
| @@ -301,10 +301,8 @@ def set(pntdir, tstart=0.0, duration=1800.0, deadc=0.95, \ | @@ -301,10 +301,8 @@ def set(pntdir, tstart=0.0, duration=1800.0, deadc=0.95, \ | ||
| 301 | 301 | ||
| 302 | # Set GTI | 302 | # Set GTI |
| 303 | gti = GGti() | 303 | gti = GGti() |
| 304 | - start = GTime() | ||
| 305 | - stop = GTime() | ||
| 306 | - start.met(tstart) | ||
| 307 | - stop.met(tstart+duration) | 304 | + start = GTime(tstart) |
| 305 | + stop = GTime(tstart+duration) | ||
| 308 | gti.append(start, stop) | 306 | gti.append(start, stop) |
| 309 | 307 | ||
| 310 | # Set energy boundaries | 308 | # Set energy boundaries |