-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from lsst-epo/106-update-notebooks-with-copy-…
…project-cell Added cell to create a project from a template
- Loading branch information
Showing
2 changed files
with
76 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,7 +84,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "09bfadd7-fa36-48c1-bb3b-f2c193c798fd", | ||
"id": "b0d75d73-12d4-4663-aedd-f16d469b1f26", | ||
"metadata": { | ||
"execution": { | ||
"iopub.execute_input": "2023-09-25T18:31:03.183596Z", | ||
|
@@ -110,7 +110,7 @@ | |
"\n", | ||
"If this package is already installed, make sure it is updated:\n", | ||
"```\n", | ||
"pip install --u rubin.citsci\n", | ||
"pip install --upgrade rubin.citsci\n", | ||
"```\n", | ||
"\n", | ||
"4. Confirm the next cell containing `from rubin.citsci import pipeline` works as expected and does not throw an error" | ||
|
@@ -137,7 +137,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "9e60062b-f301-4d6c-9e29-e67aa55b2e62", | ||
"id": "d83175d3-fa20-47fa-bc91-b69b15a0f5dd", | ||
"metadata": {}, | ||
"source": [ | ||
"### 1.2 Define functions and parameters <a class=\"anchor\" id=\"third-bullet\"></a>\n", | ||
|
@@ -147,26 +147,57 @@ | |
"\n", | ||
"Supply the email associated with your Zooniverse account and project slug below. \n", | ||
"\n", | ||
"A \"slug\" is the string of your Zooniverse username and your project name without the leading forward slash, for instance: \"username/project-name\". [Click here for more details](https://www.zooniverse.org/talk/18/967061?comment=1898157&page=1).\n" | ||
"A \"slug\" is the string of your Zooniverse username and your project name without the leading forward slash, for instance: \"username/project-name\". [Click here for more details](https://www.zooniverse.org/talk/18/967061?comment=1898157&page=1).\n", | ||
"\n", | ||
"**The `rubin.citsci` package includes a method that creates a Zooniverse project from template. If you wish to use this feature, do not provide a slug_name and run the subsequent cell.**" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "0edb67a4-1508-4b90-872c-8c42e642126b", | ||
"id": "a577e133-35ae-4e54-9ee2-727f3dce996c", | ||
"metadata": { | ||
"tags": [] | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"email = \"[email protected]\"\n", | ||
"slug_name = \"rebecca-dot-nevin/test-project\"\n", | ||
"email = \"\"\n", | ||
"slug_name = \"\"\n", | ||
"print(\"Loading and running utilities to establish a link with Zooniverse\")\n", | ||
"print(\"Enter your Zooniverse username followed by password below\")\n", | ||
"cit_sci_pipeline = pipeline.CitSciPipeline()\n", | ||
"cit_sci_pipeline.login_to_zooniverse(slug_name, email)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "081794cf-f493-4832-9c1c-6641bcd9b4ed", | ||
"metadata": { | ||
"execution": { | ||
"iopub.execute_input": "2024-06-10T18:31:30.334716Z", | ||
"iopub.status.busy": "2024-06-10T18:31:30.333633Z", | ||
"iopub.status.idle": "2024-06-10T18:31:30.682149Z", | ||
"shell.execute_reply": "2024-06-10T18:31:30.681257Z", | ||
"shell.execute_reply.started": "2024-06-10T18:31:30.334679Z" | ||
}, | ||
"tags": [] | ||
}, | ||
"source": [ | ||
"**Run the following cell if you would like to create a new Zooniverse project from the Vera Rubin template**" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "23a9b8b6-52b9-4211-81a0-e6ceee9fd08f", | ||
"metadata": { | ||
"tags": [] | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"cit_sci_pipeline.create_new_project_from_template()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "1cf92062-0e45-44a8-988c-010104405ab3", | ||
|
@@ -464,7 +495,7 @@ | |
}, | ||
"outputs": [], | ||
"source": [ | ||
"subject_set_name = \"final_test_01\"\n", | ||
"subject_set_name = \"\"\n", | ||
"cit_sci_pipeline.send_image_data(subject_set_name, zip_path)" | ||
] | ||
}, | ||
|
@@ -532,6 +563,14 @@ | |
"metadata": {}, | ||
"outputs": [], | ||
"source": [] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "32ff8161-a239-46b7-88cf-5fa144c6f8b2", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters