Hot on the heels of last week’s update, I’ve just released version 1.0.3 of the Python Panoptes Client, which fixes a bug introduced in the previous release. If you encounter a TypeError when you try to create subjects, please update to this new version and that should fix it.
This release also updates the default client ID that is used to identify the client to the Panoptes API. This is to ensure that each of our API clients is using a unique ID.
As before, you can install the update by running pip install -U panoptes-client.
We’ve just released an update for the Panoptes Client Python module which fixes a couple of bugs with saving subjects:
- Fix saving subjects with updated metadata
- Fix calling Subject.save() when nothing has changed
You can install the updates by running pip install -U panoptes-client.
We’ve recently released updates for the Panoptes command-line interface and the Panoptes Client module for Python containing a few bug fixes.
From the changelog for Panoptes Client:
- Fix: Exports are not automatically decompressed on download
- Fix: Unable to
save a Workflow
- Fix: Fix typo in documentation for Classification
- Fix: Fix saving objects initialised from object links
And from the CLI:
- Fix: Modifying projects makes them private
You can install the updates by running pip install -U panoptescli and pip install -U panoptes-client.
Following on from the release of Panoptes Client 1.0 for Python, we’ve just released version 1.0 of the Panoptes CLI. This is a command-line client for managing your projects, because some things are just easier in a terminal! The CLI lets you do common project management tasks, such as activating workflows, linking subject sets, downloading data exports, and uploading subjects. Let’s jump in with a few examples.
First, downloading a classification export (obviously you’d insert your own project ID and a filename of your choice):
panoptes project download 764 Downloads/pulsar-hunters-classifications.csv
This command will optionally generate a new export and wait for it to be ready before downloading. No more waiting for the notification email!
New subjects can be uploaded to a new subject set like so (again, inserting your own IDs):
panoptes subject-set create 7 "November 2017 subjects"
panoptes subject-set upload-subjects 16401 manifest.csv
You can also pipe the output from the CLI into other standard commands to do more powerful things, such as linking every subject set in your project to a workflow using the xargs command (where 1234 and 5678 are your project ID and workflow ID respectively):
panoptes subject-set ls -q -p 1234 | xargs panoptes workflow add-suject-sets 5678
Visit GitHub to get started with the CLI today!