Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed slug_name param from login function #42

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
17 changes: 4 additions & 13 deletions src/rubin/citsci/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand All @@ -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
Expand Down