p2api 1.1.8__tar.gz → 1.1.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: p2api
3
- Version: 1.1.8
3
+ Version: 1.1.9
4
4
  Summary: Binding for the ESO phase 2 programmatic API
5
5
  Project-URL: Homepage, https://www.eso.org/copdemo/apidoc/index.html
6
6
  Author-email: Thomas Bierwirth <thomas.bierwirth@eso.org>, John Pritchard <john.pritchard@eso.org>
@@ -0,0 +1 @@
1
+ __version__ = "1.1.9"
@@ -1742,7 +1742,7 @@ class ApiConnection(object):
1742
1742
  files=None
1743
1743
  _calibs=[]
1744
1744
  if len(calibrations) > 0 :
1745
- _calibs=calibrations.split(',')
1745
+ _calibs=[int(x) for x in calibrations.split(',')]
1746
1746
  data={
1747
1747
  "phone": phone,
1748
1748
  "notify": notify.split(','),
@@ -340,7 +340,7 @@ def main():
340
340
  checked_runs=(options.runId or '').split(',')
341
341
  if options.runId is None :
342
342
  checked_runs="runs scheduled in P{cep}".format(cep=cep)
343
- for run in runs :
343
+ for run in (runs or []) :
344
344
  if (
345
345
  ( options.runId is None and run['scheduledPeriod'] == cep )
346
346
  or
@@ -128,6 +128,7 @@ class get_options:
128
128
  self.DEC = options.DEC
129
129
 
130
130
  self.OBname = options.OBname
131
+ self.runId = options.runId
131
132
 
132
133
  self.old_fmt_ftp_file = options.old_fmt_ftp_file
133
134
 
@@ -302,7 +303,7 @@ def main():
302
303
  checked_runs=(options.runId or '').split(',')
303
304
  if options.runId is None :
304
305
  checked_runs="runs scheduled in P{cep}".format(cep=cep)
305
- for run in runs :
306
+ for run in (runs or []) :
306
307
  if (
307
308
  ( options.runId is None and run['scheduledPeriod'] == cep )
308
309
  or
@@ -1 +0,0 @@
1
- __version__ = "1.1.8"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes