From db3d4db4eab7e39473d8f0593fec75ccc4e5ff04 Mon Sep 17 00:00:00 2001 From: Eric Rosas Date: Tue, 2 Jul 2024 12:49:15 -0700 Subject: [PATCH] Removed slug_name param from login function Removed slug_name param from login function --- pyproject.toml | 2 +- src/rubin/citsci/pipeline.py | 17 ++++------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 570c2bd..b4e15b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ authors = [ ] description = "The companion package to the Rubin citizen science notebooks." -version = "0.5.1" +version = "0.5.2" readme = "README.md" dependencies = [ "panoptes_client", diff --git a/src/rubin/citsci/pipeline.py b/src/rubin/citsci/pipeline.py index 9781e6c..17f7819 100644 --- a/src/rubin/citsci/pipeline.py +++ b/src/rubin/citsci/pipeline.py @@ -74,13 +74,8 @@ def create_new_project_from_template(self, project_name="crhiggs/template-test") self.project_id = self.project.id return self.project - def login_to_zooniverse(self, slug_name, email): + def login_to_zooniverse(self, email): """ - This method assumes that you have already created an account on the Zooniverse - platform. If not, please go to the Zooniverse website and create an account: - - https://www.zooniverse.org/ - Email address validation occurs before the login prompt is called and also checks if the latest version of this package is installed. """ @@ -93,13 +88,9 @@ def login_to_zooniverse(self, slug_name, email): self.email = email self.client = panoptes_client.Panoptes.connect(login="interactive") print("You now are logged in to the Zooniverse platform.") - - if slug_name is not "": - self.project = Project.find(slug=slug_name) - self.project_id = self.project.id - else: - self.__log_slug_names() - return + self.__log_slug_names() + + return else: print("Invalid email address! Please check the email address you provided and ensure it is correct.") return