From 2aea48b708334fba3c516db076a1ccd2e97f2b78 Mon Sep 17 00:00:00 2001 From: tooyosi Date: Mon, 20 May 2024 18:18:32 +0100 Subject: [PATCH 1/2] add extra documentation on requirrements for project copy --- panoptes_client/project.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panoptes_client/project.py b/panoptes_client/project.py index d862f5e9..2481d649 100644 --- a/panoptes_client/project.py +++ b/panoptes_client/project.py @@ -205,6 +205,9 @@ def copy(self, new_subject_set_name=None): used to name a new SubjectSet for the copied project. This is useful for having an upload target straight after cloning. + Requirements: the source project must not be live and project.configuration + must have a template key (typically, set to true). + Examples:: project.copy() From 979476b31e87a21f0ee1f24e04cab65aae9d8954 Mon Sep 17 00:00:00 2001 From: Oluwatoyosi Oyegoke <34948675+Tooyosi@users.noreply.github.com> Date: Wed, 22 May 2024 18:45:29 +0100 Subject: [PATCH 2/2] Update panoptes_client/project.py Co-authored-by: Cliff Johnson --- panoptes_client/project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panoptes_client/project.py b/panoptes_client/project.py index 2481d649..0b2d81b0 100644 --- a/panoptes_client/project.py +++ b/panoptes_client/project.py @@ -205,8 +205,8 @@ def copy(self, new_subject_set_name=None): used to name a new SubjectSet for the copied project. This is useful for having an upload target straight after cloning. - Requirements: the source project must not be live and project.configuration - must have a template key (typically, set to true). + Requirements: the source project must not be live (in development mode) and + project.configuration must have a `template` key set to "true". Examples::