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

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.0
File Size Uploaded
sarracen-1.4.0.tar.gz 3.2 MB Details

Built distribution (wheel)

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

Total release size: 3.3 MB

Release files / sarracen-1.4.0.tar.gz

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

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

Download URL sarracen-1.4.0-py3-none-any.whl
Size 120.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28394963e6e1ad26dbe029d3fe47fc5af1765c08db947133fbf086973fa53e67
BLAKE2b-256 checksum
How to use checksums
eb9b8db41105318d2087591464ff968dae297d45a5f96fbd4911fb975176dd71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.5

Release history Release notifications | RSS feed

1.4.1

2 release files

This release

1.4.0 This release

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