Python wrapper to unsiotools
Project description
ABOUT
UNSIOTOOLS contains a collection of unsio based programs and depends of the Nemo package. You have access to falcON algorithm to compute density and gravity.
Installing python wrapper
pip install python-unsiotools -U
To get some docstring help
# Help on falcON class
pydoc unsiotools.simulations.cfalcon
Usage
- In the example below, we load a RAMSES simulation, and compute density on HALO particles
import unsio.input as uns_in # unsio reading module
import unsiotools.simulations.cfalcon as falcon
myfile="/home/jcl/output_00004" # input RAMSES simulation
# we instantiate a CUNS_IN object
my_in=uns_in.CUNS_IN(myfile,"halo") # We select components HALO
#
# Reading
#
if my_in.nextFrame(): # load snapshot
# read halo positions
status,pos=my_in.getData("halo","pos")
# read halo mass
status,mass=my_in.getData("halo","mass")
# read time simulation
status,timex=my_in.getData("time")
# we compute density
cf=falcon.CFalcon()
ok,rho,hsml=cf.getDensity(pos,mass)
print("Rho=",rho)
- In this more simple example, we compute density on random data. Note that data must be in float32 format
import unsiotools.simulations.cfalcon as falcon
import numpy as np
pos=np.float32(np.random.random_sample((300,)))
mass=np.float32(np.random.random_sample((100,)))
cf=falcon.CFalcon()
ok,rho,hsml=cf.getDensity(pos,mass)
print(ok,rho)
Licence
UNSIOTOOLS is open source and released under the terms of the CeCILL2 Licence
Webpage
PLease visit :
Copyright
Copyright Jean-Charles LAMBERT
Jean-Charles.Lambert_at_lam.fr
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-unsiotools-0.0.3.tar.gz
(71.5 kB
view hashes)
Built Distributions
Close
Hashes for python_unsiotools-0.0.3-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 516ddffca0fb047babff26661e89af2f545649f469fd7cfda0adc4f28b1592dc |
|
MD5 | 5d8be51d61457839b6103910011aa807 |
|
BLAKE2b-256 | 7a781805bc9e73a182b08a5f5497b9a8c496eef9163063abe51d8ae7ec55217e |
Close
Hashes for python_unsiotools-0.0.3-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e1b987007b4f403e706f59278a764d18d397db52ae402a6aa4ffbb5d9968045 |
|
MD5 | 7dc248d4deaca8aa0de5614e5c65b9d0 |
|
BLAKE2b-256 | 065d02b476306ccb8e9b08168846e90caaf88943b98e243a7d12240527331b9f |
Close
Hashes for python_unsiotools-0.0.3-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db8963dd39f5c8753962e28d9bc8faf7b47f629ce4c6c1f1a088478015be64b1 |
|
MD5 | af1fecd30bbfa9b7ddc8277c5ffb37d0 |
|
BLAKE2b-256 | f4940d2daf0c9c82f609343cb10c211adfc422f0fde72f64d2d7292c7cb5ce37 |
Close
Hashes for python_unsiotools-0.0.3-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b1e69d785725a2cdbfb1ea963685e9031eb0dc4f37cbe4cd24010756cb70fda |
|
MD5 | 10920a73c59c7eb14d655e42dc086b9c |
|
BLAKE2b-256 | 1c7ad6f4771ac5daad07a685c5f561c73cbcbe1544dfb8e6aa9e532c642a52dd |
Close
Hashes for python_unsiotools-0.0.3-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a4466dba734f411b0681e1cff3842ce0a8fe6a2c089dc58cf82891b5eb6b4b7 |
|
MD5 | d1bde05375b111817a1df8a84d8b7727 |
|
BLAKE2b-256 | e8e63d37042573608ef271bcc698da49ad6597c78a37a381e265b43e850f698b |
Close
Hashes for python_unsiotools-0.0.3-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0804b0d080c3715790efdb709014a6a4e9e2f6f6eee3fbf308c592bfc86e6f78 |
|
MD5 | 3baba6e3482e0108b5d81f4be7433a41 |
|
BLAKE2b-256 | 63a6de1d292327015036ecc2bba6470a624953e2fd1e30cf579c2229b70fd597 |
Close
Hashes for python_unsiotools-0.0.3-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 278d14dd430fca2a6930d58fbc67c286746a6c8a99ad8c7810f8348bce917f26 |
|
MD5 | 7712c9109f9dc07fd329035367fba204 |
|
BLAKE2b-256 | a2bfb6f85f29c600f7ffbdd6593a1b442190aed33ea11219361874b06bd9eca7 |
Close
Hashes for python_unsiotools-0.0.3-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1ef19bf84696e24dd4e34713f765af52b68dc644ea294de52787775359b2c92 |
|
MD5 | 5afa12602336f34490e972007335bbdd |
|
BLAKE2b-256 | 0bec9f46854448ffda5e6eebe27635e994d088d231597121ebeb2e63e7ac5f01 |
Close
Hashes for python_unsiotools-0.0.3-cp34-cp34m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a154d92a567228c020455b76158745cefc944932d0592586959285f26ff1ec2 |
|
MD5 | 5010575dfa9c8b273ef8b58edf711f61 |
|
BLAKE2b-256 | 4ac7461e01933031705988c09dff024dc96981fb4ceb348577765f453c47441e |
Close
Hashes for python_unsiotools-0.0.3-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 738a5a5f45af186d36dc70eb7b79fbcfca980dc09866af8cf4e9e49b73dc149b |
|
MD5 | ddecd95d049821930fa7de278eca1d6a |
|
BLAKE2b-256 | 2de19716fa4f3f67ed361ac2840f51ffda9aa4bff332d055590239d3043d16b2 |
Close
Hashes for python_unsiotools-0.0.3-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b78fe7d3957b8edff3e049864e99c7155521a9c9f62c52cec1408cdaa8902a4 |
|
MD5 | d23ce7c1a5c66673c7bf1e0b0d56d1ef |
|
BLAKE2b-256 | d496296bfd701e0ace2c1c39416e3b07f7d349deb61e8e7e73cf7a6ae9fc99d4 |
Close
Hashes for python_unsiotools-0.0.3-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4e194ce5803c893dcfc6c916899be5239667f6e5f12d1b3d6168f54c0d79062 |
|
MD5 | 36fb87f335be2ebeb2c3e1b9008f7cc4 |
|
BLAKE2b-256 | 2d2d1a2e06658765f28b3d2eb5b7d41e4a2f3467c3e1ff098bc5b07015c505e8 |
Close
Hashes for python_unsiotools-0.0.3-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1855193dfa4197e6688c8f6bb9f52bacc761ab2ea6f13bb2ee5ff34cd657cc8d |
|
MD5 | dedbff81e268440fe06449637cbd2687 |
|
BLAKE2b-256 | 6d28537d3dde6f324269d2e0269f68a48ea27f54af33ff02227e55a79e6bbe4f |
Close
Hashes for python_unsiotools-0.0.3-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa3cdfd3272475f25af0787f29f44280bcf890f0ce4bdc5f7537e567d5382f6e |
|
MD5 | b67b96161f00882b207e10d1568a9a68 |
|
BLAKE2b-256 | 441616dfac6d9da318789837a9eedfa2c84a45443160567e5b944ea527a48ed8 |