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.5.tar.gz
(71.8 kB
view hashes)
Built Distributions
Close
Hashes for python_unsiotools-0.0.5-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7381c55ca87a3e42bf6b54486f238b0d0e5908378339fdf0296fbaa618fb507e |
|
MD5 | f97b36cfe08df4f2c51cf705757d86be |
|
BLAKE2b-256 | 10295ee6aace7df47137d1f50d59b129962c7aece810b2f32e14e501323fd010 |
Close
Hashes for python_unsiotools-0.0.5-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04e602e64b450100ef58a653def15d3f28bc5f48710db5d6739375e56af05e47 |
|
MD5 | 6f76e6fb7275529e933fbe294298ade7 |
|
BLAKE2b-256 | f06894a3798289823664b16fd06c49e3b1fb8a373bb2e5bf0fda28ad7da575e7 |
Close
Hashes for python_unsiotools-0.0.5-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96126a06ec560191ad3d9cb586e78fa516787ff6a506d31b283aa5d007a9b1bf |
|
MD5 | f40b70714b60a1e1c74314469f18240a |
|
BLAKE2b-256 | b0d5b4726dfc6a1c23f2604176ba745eb39b0ddd4cf32122485bc721ddb24106 |
Close
Hashes for python_unsiotools-0.0.5-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45760f8070fb5a7672a74c8073d2a807c5d0712dcfc33ad33cdbe8a1e7501ebd |
|
MD5 | 57efc34e6004db8f01d5d30cd51f1281 |
|
BLAKE2b-256 | 9d36d7cd6847dedfabd029af01e717f926f49cca6577fd105e488cf6708bb24c |
Close
Hashes for python_unsiotools-0.0.5-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 503ffe7bf11582ca9c967eef160c1b11596f6ee6fe4ea16a6e9c095b7c57fda9 |
|
MD5 | e535cadba4ab7c62c8de72849a5af414 |
|
BLAKE2b-256 | 52191d7e0688210af4904ea085969ea9157d4daf6eb869a965c7c2fbb267da3e |
Close
Hashes for python_unsiotools-0.0.5-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4625f182286ff586c2f3573d9bd0b0385755a73895c2bfccb4e666fa99137ee3 |
|
MD5 | bd4162b7cf66356a111a487cfedc4994 |
|
BLAKE2b-256 | 0776512a9ba8783b7cff9321483d3d7e59e33c550c30570327606f8e452f768c |
Close
Hashes for python_unsiotools-0.0.5-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6ef8d1c207a5200708b7f7b3236396bd6624a27131ce0216cd44646d1572154 |
|
MD5 | 7447a8db93c5b814505f85060e6be752 |
|
BLAKE2b-256 | 9114a41a440d3ebc02927d4a1292ed6485c65591cc19a5fd238f5a0b92d0745c |
Close
Hashes for python_unsiotools-0.0.5-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e2f83c398731931d1c55da52021eb8a547c0f2c1038beca958fc004e1f6a9f6 |
|
MD5 | 6e55766926097afc6cde03e88fb443d1 |
|
BLAKE2b-256 | 87742887be361f16a212dfe7951c0893f851e0fe971197166a7b203f9624fdb4 |
Close
Hashes for python_unsiotools-0.0.5-cp34-cp34m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55e474a4091648a3a8b2ab4652916f91ffc92c1b04740cb871de002d79363e6f |
|
MD5 | 79bf7626db60a086b2f912c4ef6f0019 |
|
BLAKE2b-256 | 14cf3d95c001406f1d3a6491536dc446b3e7f5af31fbe34124f5c696baefae48 |
Close
Hashes for python_unsiotools-0.0.5-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f30122760d39d33275e02b7c91207b335aabd6db83703efa24d992fa0991da06 |
|
MD5 | 4e62d044fa5413048781de780545ae76 |
|
BLAKE2b-256 | 9628ecdd9fad397489c302718489a93a4d5e2e8239ac269d567e6b05b88b61a1 |
Close
Hashes for python_unsiotools-0.0.5-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7777f94d5cee1ebc1a2db0d667310139753f229fb178600f5afe68da4595661f |
|
MD5 | e9ca4f319871cd5602f8d253d97fe934 |
|
BLAKE2b-256 | 98fcefc2455311f8c02de3a6a7961bf4dd68a732fdf7eb0158e701a7cc1bdbe8 |
Close
Hashes for python_unsiotools-0.0.5-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d17ec0034f5fb56865c48f766ce6e9216b8b27e6a79f0b86931f4e73b3584664 |
|
MD5 | bb953d309b20607d513104f7d47aac73 |
|
BLAKE2b-256 | 87c6d286a10a801ff9833c957cfb852a60c41acb85fe6e1d31f045c3969c0353 |
Close
Hashes for python_unsiotools-0.0.5-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79d33a5f586e3204ea7c0cda8136e23ccc996aeb1eb9a8fac11367d5fa029021 |
|
MD5 | a5ed9777725aee8bc41d5b8706e21082 |
|
BLAKE2b-256 | 3d3348f21836967d6635ac3b159025e70f3fe2ebb6b2e0996e0b0e569356c737 |
Close
Hashes for python_unsiotools-0.0.5-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3a8843de7df12b26b61944668c0e509fe41ad8f1b63b5fa585e71d0caa61e96 |
|
MD5 | 7e1d270f5371058d96fc9b8e916931ae |
|
BLAKE2b-256 | 730f378798c5588594b173f1634300bfbbc839846bca5ac55ad1dd8ddd58c1b8 |