Skip to main content

Sarracen

A Python library for smoothed particle hydrodynamics (SPH) analysis and visualization.

About

Sarracen is built upon the pandas, Matplotlib and NumPy libraries. It can load SPH particle data into a pandas DataFrame object that has been extended to allow for rendering of particle data and interpolation of particles to fixed grids. Additionally, this allows for access to the rich landscape of Python scientific and statistical libraries. All SPH functions offer multi-threaded CPU and CUDA implementations. Our intended application is for astrophysical SPH data.

Installation

The latest stable release and associated dependencies can be installed from PyPi:

pip install sarracen

This is the recommended way to install Sarracen.

To install the latest development snapshot, install using this GitHub repository. Either clone the repository and add it to your path so that it can be imported, or install directly through pip:

pip install git+https://github.com/ttricco/sarracen.git

Documentation

Sarracen's documentation is hosted online at https://sarracen.readthedocs.io.

The documentation contains examples and full API references.

Contributing

Contributions are welcomed and appreciated. Here are some ways to get involved:

  • Submitting bug reports.
  • Feature requests or suggestions.
  • Improving the documentation or providing examples.
  • Writing code to add optimizations or new features.

Please use the GitHub issue tracker to raise any bugs or to submit feature requests. If something does not work as you might expect, please let us know. If there are features that you feel are missing, please let us know.

Code submissions should be submitted as a pull request. Make sure that all existing unit tests successfully pass, and please add any new unit tests that are relevant. Documentation changes should also be submitted as a pull request.

If you are stuck or need help, raising an issue is a good place to start. This helps us keep common issues in public view. Feel free to also email with questions.

Please note that we adhere to a code of conduct.

Citation

Please cite the paper if you use Sarracen within your work. Sarracen is published with the Journal of Open Source Software (DOI: 10.21105/joss.05263).

@ARTICLE{Sarracen,
       author = {{Harris}, Andrew and {Tricco}, Terrence},
        title = "{Sarracen: a Python package for analysis and visualization of smoothed particle hydrodynamics data}",
      journal = {The Journal of Open Source Software},
     keywords = {smoothed particle hydrodynamics, data visualization, Python, data science, Jupyter Notebook, astrophysics, astronomy},
         year = 2023,
        month = jun,
       volume = {8},
       number = {86},
          eid = {5263},
        pages = {5263},
          doi = {10.21105/joss.05263},
}

Metadata

Release files for sarracen 1.4.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 sarracen 1.4.1
File Size Uploaded
sarracen-1.4.1.tar.gz 3.2 MB Details

Built distribution (wheel)

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

Total release size: 3.3 MB

Release files / sarracen-1.4.1.tar.gz

Download URL sarracen-1.4.1.tar.gz
Size 3.2 MB
Tags Source
SHA-256 checksum
How to use checksums
e8c162f98c606276a66b076dcb366aaab02a909e09a8cb92079dcbd0d5033c56
BLAKE2b-256 checksum
How to use checksums
a80b89cf0b381357813c52d53e797f9a02adc2963e64854e536bf7ee59d373b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.5

Release files / sarracen-1.4.1-py3-none-any.whl

Download URL sarracen-1.4.1-py3-none-any.whl
Size 120.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
405eff4497c6b83aa00168dac85a15b099fcd0c80db8cbd328993da6d0b31b72
BLAKE2b-256 checksum
How to use checksums
efdde7c7c1e5def76e09193ffb26401960b2fe332ba04fe806909cf790d19c10
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

1.4.1 This release

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1

2 release files

1.0.1

2 release files

1.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