Skip to main content

DOI Coverage Status

Getting started

This is a collection of external reducers written for caesar and offline use.


Documentation

You can find the latest documentation on the aggregations code's website.


Download and run

You can find the latest standalone application version to download under 'Assets' on the Github releases page. There are different .zip files for Windows/MacOS(Intel)/MacOS(ARM), choose the correct file for you operating system.

Once downloaded, unzip and double click to run.

As this program is unsigned, there will be a warning on both Windows and on MacOS. On Windows click 'run anyway' and on MacOS allow the program in your security settings.

This is a standalone version that does not need a local installation of Python or any dependancies.


Manual installing for offline use

With your own python install (python 3.9 or higher only)

Install the latest stable release:

pip install panoptes_aggregation

Upgrade and existing installation:

pip install -U panoptes_aggregation

Or for development or testing, you can install the latest development version directly from GitHub:

pip install -U git+https://github.com/zooniverse/aggregation-for-caesar.git

Install the Graphical User Interface (GUI)

If you would like to use the GUI instead of the command line install the package with:

pip install "panoptes_aggregation[gui]"

Or for the latest development build from GitHub:

pip install -U git+https://github.com/zooniverse/aggregation-for-caesar.git#egg=panoptes-aggregation[gui]

On linux systems you may need to install GTK3:

sudo apt-get install build-essential libgtk-3-dev

Mac Anaconda build

If you are installing this code on a Mac using the anaconda build of python and you want to use the GUI instead of the command line you will have to update one line of the of code in the panoptes_aggregation_gui script. Change the first line from:

#!/path/to/anaconda/python/bin/python

to:

#!/bin/bash /path/to/anaconda/python/bin/python.app

You can find the location of this file with the command:

which panoptes_aggregation_gui

You will also need to run:

conda install python.app

With Docker

https://docs.docker.com/get-started/

Using docker-compose https://docs.docker.com/compose/

docker compose -f docker-compose.local_scripts.yml build local_scripts

From the root directory of this repository, run the desired python scripts using the docker image, e.g. config_workflow_panoptes --help

docker compose -f docker-compose.local_scripts.yml run --rm local_scripts panoptes_aggregation --help

Or directly via docker

docker build . -f Dockerfile.bin_cmds -t aggregation_for_caesar

From the root directory of this repository, run the desired python scripts using the docker image, e.g. panoptes_aggregation --help

docker run -it --rm --name config_workflow_panoptes -v "$PWD":/usr/src/aggregation aggregation_for_caesar panoptes_aggregation --help

Note The GUI does not work inside a docker container.


Installing for online use

The docker file included is ready to be deployed on any server. Once deployed, the extractors will be available on the /extractors/<name of extractor function> routes and the reducers will be available on the /reducers/<name of reducer function> routes. Any keywords passed into these functions should be included as url parameters on the route (e.g. https://aggregation-caesar.zooniverse.org/extractors/point_extractor_by_frame?task=T0). For more complex keywords (e.g. details for subtasks), python's urllib.parse.urlencode can be used to translate a keyword list into the proper url encoding.

The documentation will be built and available on the /docs route.

Build/run the app in docker locally

To run a local version use:

docker compose build
docker compose up

and listen on localhost:4000.

Running tests in the docker container

To run the tests use:

docker compose run --rm aggregation coverage run -m pytest && coverage report

Metadata

Release files for panoptes_aggregation 5.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for panoptes_aggregation 5.3.1
File Size Uploaded
panoptes_aggregation-5.3.1.tar.gz 297.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for panoptes_aggregation 5.3.1
File Interpreter ABI Platform
panoptes_aggregation-5.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 691.1 kB

Release files / panoptes_aggregation-5.3.1.tar.gz

Download URL panoptes_aggregation-5.3.1.tar.gz
Size 297.5 kB
Tags Source
SHA-256 checksum
How to use checksums
10e74deb1613fd0971a2252bc4b62d6fbcea4555252d0a72f740f227034291df
BLAKE2b-256 checksum
How to use checksums
d9dc063d10e85a273688c50dfe2cb872de365b028d7d6200b63c1f6983537e08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.5

Release files / panoptes_aggregation-5.3.1-py3-none-any.whl

Download URL panoptes_aggregation-5.3.1-py3-none-any.whl
Size 393.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
118b288652adb1773339a36c49373241e7e4979563e533b8bd7f54d48bd49b35
BLAKE2b-256 checksum
How to use checksums
776784871e8ae91003d816b6f093411e5df949c221da17b6585410cb293654a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.5

Release history Release notifications | RSS feed

This release

5.3.1 This release

2 release files

5.3.0

2 release files

5.2.1

2 release files

5.2.0

2 release files

5.1.0

2 release files

5.0.0

2 release files

4.0.0

2 release files

3.7.0

2 release files

3.6.0

2 release files

3.5

2 release files

3.4.5

2 release files

3.4.4

2 release files

3.4.3

2 release files

3.4.2

2 release files

3.4.1

2 release files

3.4.0

2 release files

3.3.0

2 release files

3.2.1

2 release files

3.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.1.0

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page