Skip to main content

OCTA toolbox

The OCTA Python toolbox was created by Van Geert, Bossens, and Wagemans (2021) as a tool for researchers to create stimuli varying in order and complexity on different dimensions. It was created in Python 3.8 and is dependent on the following Python libraries: svgwrite, svg.path, svgpathtools, svgutils, jsonpickle, html2image, svglib, reportlab, colour, IPython, and pandas. We thank the developers of each of these libraries and of the Python programming language.

A simple example:

from octa.Stimulus import Grid
from octa.patterns import GridPattern
from octa.shapes import Ellipse, Rectangle, Triangle

## Create new stimulus
stim = Grid(n_rows = 6, n_cols = 6, background_color = "none",
            row_spacing = 40, col_spacing = 40)

## Determine shape of elements used in the stimulus
stim.shapes = GridPattern.RepeatAcrossColumns([Rectangle, Triangle, Ellipse])

## Determine color of elements used in the stimulus
colors_to_use = ["#1b9fd8", "#6dd6ff", "#006ca1"]
stim.fillcolors = GridPattern.RepeatAcrossColumns(colors_to_use)

## Determine size of elements used in the stimulus
stim.boundingboxes = GridPattern.RepeatAcrossColumns([(30,30)])

stim.Show()

OCTA Shiny app

A graphical user interface for OCTA is available in the form of a Shiny app.

Citing OCTA

If you use the OCTA Python toolbox in your (academic) work, please cite:

  • Van Geert, E., Bossens, C., & Wagemans, J. (2023). The Order & Complexity Toolbox for Aesthetics (OCTA): A systematic approach to study the relations between order, complexity, and aesthetic appreciation. Behavior Research Methods, 55, 2423–2446. https://doi.org/10.3758/s13428-022-01900-w
  • Van Geert, E., Bossens, C., & Wagemans, J. (2021). The Order & Complexity Toolbox for Aesthetics Python library [Computer software]. https://github.com/gestaltrevision/OCTA_toolbox

If you use the OCTA Shiny app in your (academic) work, please cite: Van Geert, E., Bossens, C., & Wagemans, J. (2021). The Order & Complexity Toolbox for Aesthetics Shiny application [Online application]. https://elinevg.shinyapps.io/OCTA_toolbox/

Documentation

Find the documentation here

License

The OCTA Python toolbox is licensed under the terms of the GNU Lesser General Public License 3.0.

Contact

eline.vangeert@kuleuven.be

Metadata

Release files for octa 1.0.3

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

Source distribution (sdist)

Source distribution for octa 1.0.3
File Size Uploaded Provenance Actions
octa-1.0.3.tar.gz 57.0 kB Without provenance Details for octa-1.0.3.tar.gz

Built distribution (wheel)

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

Total release size: 143.9 kB

Release files / octa-1.0.3.tar.gz

Download URL octa-1.0.3.tar.gz
Size 57.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fbf473f81eee946cadec7f2f62f032de6a673397b11976c23b52f4c92eae9eb4
BLAKE2b-256 checksum
How to use checksums
3a0154c6639144a7a5ac72e51694330ef0c3679afe16fe705d304f5f8dd6659d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.8

Release files / octa-1.0.3-py3-none-any.whl

Download URL octa-1.0.3-py3-none-any.whl
Size 86.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab8d8f1a29612246b74a8bd88fb0daeed366092fa431ebafddfc551814d8697b
BLAKE2b-256 checksum
How to use checksums
5c94dda683fba5c9571797a327bcc4201b685338a6ac2534f28d4fa469017bef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.8

Security for octa 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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