Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
The SWIFT astrophysical simulation code (http://swift.dur.ac.uk) is used
widely. There exists many ways of reading the data from SWIFT, which outputs
HDF5 files. These range from reading directly using h5py
to using a complex
system such as yt
; however these either are unsatisfactory (e.g. a lack of
unit information in reading HDF5), or too complex for most use-cases.
swiftsimio
provides an object-oriented API to read (dynamically) data
from SWIFT.
Full documentation is available at ReadTheDocs.
Getting set up with swiftsimio
is easy; it (by design) has very few
requirements. There are a number of optional packages that you can install
to make the experience better and these are recommended.
This requires python
v3.8.0
or higher. Unfortunately it is not
possible to support swiftsimio
on versions of python lower than this.
It is important that you upgrade if you are still a python2
user.
numpy
, required for the core numerical routines.h5py
, required to read data from the SWIFT HDF5 output files.unyt
, required for symbolic unit calculations (depends on sympy`).numba
, highly recommended should you wish to use the in-built visualisation
tools.scipy
, required if you wish to generate smoothing lengths for particle types
that do not store this variable in the snapshots (e.g. dark matter)tqdm
, required for progress bars for some long-running tasks. If not installed
no progress bar will be shown.py-sphviewer
, if you wish to use our integration with this visualisation
code.swiftsimio
can be installed using the python packaging manager, pip
,
or any other packaging manager that you wish to use:
pip install swiftsimio
Please cite swiftsimio
using the JOSS paper:
@article{Borrow2020,
doi = {10.21105/joss.02430},
url = {https://doi.org/10.21105/joss.02430},
year = {2020},
publisher = {The Open Journal},
volume = {5},
number = {52},
pages = {2430},
author = {Josh Borrow and Alexei Borrisov},
title = {swiftsimio: A Python library for reading SWIFT data},
journal = {Journal of Open Source Software}
}
If you use any of the subsampled projection backends, we ask that you cite our relevant SPHERIC paper. Note that citing the arXiv version here is recommended as the ADS cannot track conference proceedings well.
@article{Borrow2021
title={Projecting SPH Particles in Adaptive Environments},
author={Josh Borrow and Ashley J. Kelly},
year={2021},
eprint={2106.05281},
archivePrefix={arXiv},
primaryClass={astro-ph.GA}
}
FAQs
SWIFTsim (swiftsim.com) i/o routines for python.
We found that swiftsimio demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.