sparclclient 1.2.6b2__py2.py3-none-any.whl → 1.2.6b4__py2.py3-none-any.whl

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.
sparcl/__init__.py CHANGED
@@ -35,4 +35,4 @@ __all__ = ["client", "align_records"]
35
35
  #__version__ = "1.2.3"
36
36
  #__version__ = "1.2.4"
37
37
  #__version__ = "1.2.5"
38
- __version__ = "1.2.6b2"
38
+ __version__ = "1.2.6b4"
sparcl/client.py CHANGED
@@ -207,13 +207,16 @@ class SparclClient: # was SparclApi()
207
207
  # (connect timeout, read timeout) in seconds
208
208
  self.timeout = (self.c_timeout, self.r_timeout)
209
209
  # @@@ read timeout should be a function of the POST payload size
210
- self.announcement = f"{self.rooturl}/sparc/announcement/"
210
+ self.announcement = announcement
211
211
 
212
212
  if verbose:
213
213
  print(f"apiurl={self.apiurl}")
214
214
 
215
215
  if announcement:
216
- print(f"announcement={self.announcement}")
216
+ ann = f"{self.apiurl}/announcement/"
217
+ annstr = requests.get(ann, timeout=self.timeout).content
218
+ #self.announcement = annstr.announcement
219
+ print(f"announcement={annstr.announcement}")
217
220
 
218
221
  # Get API Version
219
222
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sparclclient
3
- Version: 1.2.6b2
3
+ Version: 1.2.6b4
4
4
  Summary: A client for getting spectra and meta-data from NOIRLab.
5
5
  Author-email: "S. Pothier" <datalab-spectro@noirlab.edu>
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  sparcl/Results.py,sha256=vnACjm8sp7MrsJ_5LTuKMuyRWqeBJxOxQM302cHmAlk,9159
2
- sparcl/__init__.py,sha256=dwyu5Bx5OjtFkf4K1qAGIslin94RTIiTRL9loaMbHiU,1124
3
- sparcl/client.py,sha256=b1-goDFQqRR_XlNqVcZYPLbMDRLFFm-c2lPz6xgdlYA,38985
2
+ sparcl/__init__.py,sha256=aLydkStCVBb0M1eiXFJM2YLw3JlhdygFsqjbjNanEx0,1124
3
+ sparcl/client.py,sha256=KnqyPN1recGctYcMAQuNubCSk6qAx_wWUNzbkqX_flA,39133
4
4
  sparcl/conf.py,sha256=GFNDelaiVIAkjNjvFlG7HAlPpU39nqZmTPohQGmOcgI,928
5
5
  sparcl/exceptions.py,sha256=sznmOMGENHvxutSXlRVWqi87bR2Qiebka7LyR3mAII0,4244
6
6
  sparcl/fields.py,sha256=NZUBqDidpbXfeX5F4b306F323xZY2CRIx8eVv-HWTVU,5127
@@ -15,7 +15,7 @@ sparcl/benchmarks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
15
15
  sparcl/benchmarks/benchmarks.py,sha256=OmlSdnAPLmcvGXsr-HzGyfAAcnoqlO0JQ4EIA7JGhZc,9424
16
16
  sparcl/benchmarks/sparcl_benchmarking.ipynb,sha256=gwof2hqM9Qb49qzRX-mky7WNqXZCMSB7ry8bX8dImxc,17559
17
17
  sparcl/notebooks/sparcl-examples.ipynb,sha256=gEwMKI1x7A1YsVeCsQn1QoMO0ZuIhMUAu3qedTiQ7hM,169268
18
- sparclclient-1.2.6b2.dist-info/LICENSE,sha256=y10EluGMCzGs9X4oYCYyix3l6u-lawB_vlGR8qe442Q,1576
19
- sparclclient-1.2.6b2.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
20
- sparclclient-1.2.6b2.dist-info/METADATA,sha256=fzw_DWLiGuKoWaEoa4YQH86PL2iRzZy1Yic4QbozhTU,680
21
- sparclclient-1.2.6b2.dist-info/RECORD,,
18
+ sparclclient-1.2.6b4.dist-info/LICENSE,sha256=y10EluGMCzGs9X4oYCYyix3l6u-lawB_vlGR8qe442Q,1576
19
+ sparclclient-1.2.6b4.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
20
+ sparclclient-1.2.6b4.dist-info/METADATA,sha256=nY90uF-YgOja1V0VZbzxdrt7YuNZ0fFI6I5ooaH1Sx0,680
21
+ sparclclient-1.2.6b4.dist-info/RECORD,,