[ARVADOS] updated: 2.1.0-1414-gc1761800f

Git user git at public.arvados.org
Mon Sep 27 16:30:22 UTC 2021

Summary of changes:
 doc/sdk/python/cookbook.html.textile.liquid | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

       via  c1761800f4c183439a32fb5e74b2f4a410911b66 (commit)
      from  374072472b1480983051cab25221518e08f1e35a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

commit c1761800f4c183439a32fb5e74b2f4a410911b66
Author: Ward Vandewege <ward at curii.com>
Date:   Mon Sep 27 12:29:52 2021 -0400

    Add an example to the Python cookbook, "Delete a file from an existing
    No issue #
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>

diff --git a/doc/sdk/python/cookbook.html.textile.liquid b/doc/sdk/python/cookbook.html.textile.liquid
index ff3bcf90e..eda6563d7 100644
--- a/doc/sdk/python/cookbook.html.textile.liquid
+++ b/doc/sdk/python/cookbook.html.textile.liquid
@@ -242,8 +242,8 @@ h2. Copy files from a collection to a new collection
 {% codeblock as python %}
 import arvados.collection
-source_collection = "x1u39-4zz18-krzg64ufvehgitl"
-target_project = "x1u39-j7d0g-67q94einb8ptznm"
+source_collection = "zzzzz-4zz18-zzzzzzzzzzzzzzz"
+target_project = "zzzzz-j7d0g-zzzzzzzzzzzzzzz"
 target_name = "Files copied from source_collection"
 files_to_copy = ["folder1/sample1/sample1_R1.fastq",
@@ -263,8 +263,8 @@ h2. Copy files from a collection to another collection
 {% codeblock as python %}
 import arvados.collection
-source_collection = "x1u39-4zz18-krzg64ufvehgitl"
-target_collection = "x1u39-4zz18-67q94einb8ptznm"
+source_collection = "zzzzz-4zz18-zzzzzzzzzzzzzzz"
+target_collection = "zzzzz-4zz18-aaaaaaaaaaaaaaa"
 files_to_copy = ["folder1/sample1/sample1_R1.fastq",
@@ -277,6 +277,16 @@ for f in files_to_copy:
 {% endcodeblock %}
+h2. Delete a file from an existing collection
+{% codeblock as python %}
+import arvados
+c = arvados.collection.Collection("zzzzz-4zz18-zzzzzzzzzzzzzzz")
+{% endcodeblock %}
 h2. Listing records with paging
 Use the @arvados.util.keyset_list_all@ helper method to iterate over all the records matching an optional filter.  This method handles paging internally and returns results incrementally using a Python iterator.  The first parameter of the method takes a @list@ method of an Arvados resource (@collections@, @container_requests@, etc).



More information about the arvados-commits mailing list