File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,19 @@ build-backend = "setuptools.build_meta"
4
4
5
5
[project ]
6
6
name = " rubin.citsci"
7
- version = " 0.3.2"
7
+ authors = [
8
+ { email = " eric.rosas@noirlab.edu" },
9
+ { name = " Eric Rosas" }
10
+ ]
11
+ description = " The companion package to the Rubin citizen science notebooks."
12
+
13
+ version = " 0.4.0"
8
14
readme = " README.md"
9
15
dependencies = [
10
16
" panoptes_client" ,
11
17
' google.cloud.storage' ,
12
18
' requests' ,
13
- ]
19
+ ]
20
+
21
+ [project .urls ]
22
+ "Homepage" = " https://rubinobservatory.org/for-scientists/citizen-science"
Original file line number Diff line number Diff line change @@ -56,6 +56,23 @@ def __init__(self):
56
56
else :
57
57
self .dev_mode_url = ""
58
58
59
+ def create_new_project_from_template (project_name = "crhiggs/template-test" ):
60
+ """
61
+ This method will create a new project under the authenticated user's account
62
+ based on the provided project template slug. If no project template slug is
63
+ provided then a new project will be created from a Rubin test project
64
+ template.
65
+
66
+ Must be authenticated into the Zooniverse API or an exception will occur.
67
+
68
+ Returns an instance of a Zooniverse project.
69
+ """
70
+
71
+ project_template = Project .find (slug = project_name )
72
+ my_template_project = project_template .copy ()
73
+ my_template_project .save ()
74
+ return my_template_project
75
+
59
76
def login_to_zooniverse (self , slug_name , email ):
60
77
"""
61
78
This method assumes that you have already created an account on the Zooniverse
You can’t perform that action at this time.
0 commit comments