Skip to content

Commit

Permalink
Merge pull request #38 from lsst-epo/37-update-wording-on-package-out…
Browse files Browse the repository at this point in the history
…-of-date-text

Updated package version text
  • Loading branch information
ericdrosas87 authored Jun 24, 2024
2 parents b6ae1c0 + 4d44cea commit 8129d88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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.4.3"
version = "0.5.0"
readme = "README.md"
dependencies = [
"panoptes_client",
Expand Down
7 changes: 4 additions & 3 deletions src/rubin/citsci/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def login_to_zooniverse(self, slug_name, email):
self.project = Project.find(slug=slug_name)
self.project_id = self.project.id
else:
print("No project was provided! Run the project-template copy cell if you would like to create a new one.")
print("No project was provided! Run the create_new_project_from_template() cell if you would like to create a new one.")

print("You now are logged in to the Zooniverse platform.")
else:
Expand All @@ -115,6 +115,7 @@ def __check_package_version(self):
print("To install the latest version, open up a terminal tab and run the following command:")
print(" pip install --upgrade --force-reinstall rubin.citsci")
print("After the upgrade installation has finished, please restart the kernel for the changes to take effect.")
print("Failing to keep the rubin.citsci package up-to-date will likely cause the following cells to fail.")
except Exception as e:
print("ERROR! : An error occurred while attempting to validate that the latest version of the rubin.citsci package is installed. Please notify the EPO citizen science team that this error message has occurred!")
return
Expand Down Expand Up @@ -167,7 +168,7 @@ def write_manifest_file(self, manifest, batch_dir):
Returns the relative path to the manifest.csv
"""

if self.project is "":
if self.project == "":
print("Please create or specify a Zooniverse project before attempting to write a manifest file.")
return
manifest_filename = 'manifest.csv'
Expand Down Expand Up @@ -325,7 +326,7 @@ def send_image_data(self, subject_set_name, zip_path, **options):
set is available.
"""

if self.project is "":
if self.project == "":
print("Please create or specify a Zooniverse project before attempting to send image data!")
return
print("Send the data to Zooniverse")
Expand Down

0 comments on commit 8129d88

Please sign in to comment.