Skip to content

Commit 2e785a9

Browse files
keflavichbsipocz
authored andcommitted
remove some tests that aren't reliable, plus some that can't be run
remotely
1 parent 569224a commit 2e785a9

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

docs/alma/alma.rst

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,6 @@ the data such as the files, their urls, sizes etc:
281281
.. code-block:: python
282282
.. doctest-remote-data::
283283
>>> link_list = Alma.get_data_info(uids)
284-
>>> link_list['content_length'].sum()
285-
538298369462
286-
>>> len(link_list)
287-
>>> 47
288284
289285
By default, ALMA data is delivered as tarball files. However, the content of
290286
some of these files can be listed and accessed individually. To get information
@@ -293,8 +289,6 @@ on the individual files:
293289
.. code-block:: python
294290
.. doctest-remote-data::
295291
>>> link_list = Alma.get_data_info(uids, expand_tarfiles=True)
296-
>>> len(link_list)
297-
>>> 50
298292
299293
You can then go on to download that data. The download will be cached so that repeat
300294
queries of the same file will not re-download the data. The default cache
@@ -303,15 +297,15 @@ changing the ``cache_location`` variable:
303297
304298
.. code-block:: python
305299
.. doctest-remote-data::
306-
>>> myAlma = Alma()
307-
>>> myAlma.cache_location = '/big/external/drive/'
308-
>>> myAlma.download_files(link_list, cache=True)
300+
>>> myAlma = Alma() # doctest: +SKIP
301+
>>> myAlma.cache_location = '/big/external/drive/' # doctest: +SKIP
302+
>>> myAlma.download_files(link_list, cache=True) # doctest: +SKIP
309303
310304
You can also do the downloading all in one step:
311305
312306
.. code-block:: python
313307
.. doctest-remote-data::
314-
>>> myAlma.retrieve_data_from_uid(uids[0])
308+
>>> myAlma.retrieve_data_from_uid(uids[0]) # doctest: +SKIP
315309
316310
If you have huge files, sometimes the transfer fails, so you will need to
317311
restart the download. By default, the module will resume downloading where the

0 commit comments

Comments
 (0)