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 :
- UNSIO project home page
- UNSIO Python reading manual
- UNSIO Python writing manual
- UNSIO Pypi page
- NEMO home page
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-1.0.0.tar.gz
(74.1 kB
view hashes)
Built Distributions
Close
Hashes for python_unsiotools-1.0.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 598d783224e638268a11f9e2cce143fa49b113a4dde1eb6b0f6fe2c1b5f7f695 |
|
MD5 | 10d5411c4d8f6e1fd4773cd4f4a2452f |
|
BLAKE2b-256 | 91c893a8f959a06f501fcfc3570638ecbd7ff9ee6b18c31ba86df9668e193d8b |
Close
Hashes for python_unsiotools-1.0.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d35c0ec20edce3fc26d765593967f0134136c70385aba0766e85bd02e7a6933b |
|
MD5 | 40038969302fd13070a34cd8fde80d53 |
|
BLAKE2b-256 | da5293c49c53b9f08217e374ac84071eca0f1b63388e2ed3070eff1931cac2a7 |
Close
Hashes for python_unsiotools-1.0.0-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed2df291b66f4ec57fc27bb6f7611c0ba6c7c99325b32212c2c846d18b032a8d |
|
MD5 | 61da9025fb0b79c12d4bdf6398af3437 |
|
BLAKE2b-256 | 8c2254917e549114c9bd3dbbdf375b284551b356f9f742ad7283d553e3d3b1a8 |
Close
Hashes for python_unsiotools-1.0.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb810fde0f29a10636bd801c4eedfad2af701f143666e4d97454f4bbe080426f |
|
MD5 | 01d46a418966de10e62363b1e0b0efe6 |
|
BLAKE2b-256 | dfef039285bbf547589ac3ee7dc4bff62927b36eccf0e26e1083849a9590775e |
Close
Hashes for python_unsiotools-1.0.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05e839a314a6edcdb14e63ba54641dc7c988027dec3a235fff720572fefc57fa |
|
MD5 | 85a4b09d645d1638cea486a46799047a |
|
BLAKE2b-256 | cfe88b1923ef70e694daaca66d265d902373dfc4763b6461ab2480a6cff055b5 |
Close
Hashes for python_unsiotools-1.0.0-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bfe831b3cc51243792033f4fcf88437576dd3d8b7512f56a4e207553195daf0 |
|
MD5 | 245ec222b028ba52e19119e12084e855 |
|
BLAKE2b-256 | dcd8c483473b20c23de536f05d73f3c5b91eb281a15bf890fc3a6fc909ccb29f |
Close
Hashes for python_unsiotools-1.0.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7d6c6e141d2eaacdd2000c1f0dab8e30bd36a491e473fe74dcce5b29e6d62d5 |
|
MD5 | 792a147eca1110963640f9e70ec7512c |
|
BLAKE2b-256 | b86e7573f39c3f0f8d8a9a1b0e0afd8a82f17adf92f84729fd55e0f51e481d4d |
Close
Hashes for python_unsiotools-1.0.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e59071fbb0590136e8059db408111fd658f2aef3c05b863aa628fe1620568201 |
|
MD5 | 290db3d9fab8078349e58f89a7492550 |
|
BLAKE2b-256 | ec9de0201130a8c157e17b2774853c36719ef1d449256391883655171ea67b0e |
Close
Hashes for python_unsiotools-1.0.0-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69095827141b3193b7f03ec717884b659eff7ac652b7a02642b2225d747c53d0 |
|
MD5 | c4c42edddd5db42de0e1d7ecab96b80e |
|
BLAKE2b-256 | 56d44138b2a41bda655f4362c6a14835fa1ea6a8d5161f9f8775d00f4d518cff |
Close
Hashes for python_unsiotools-1.0.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f890dec5e3eb9209432e88a8fc0dd0a60a3519d7fed0a231422b67d6556e376 |
|
MD5 | 4530174692664dd3ccce001b86a6b8f9 |
|
BLAKE2b-256 | 47abf831770c18d8b4e8dfdcffdebc0c21ca5d319756fe5fcae2f6dbc7c38008 |
Close
Hashes for python_unsiotools-1.0.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71a35c76905b20ef0eec6cc0fe2499f6d52bb3800c780ed7b7a9569c765ca5f3 |
|
MD5 | 54de69671cb33d7e6a8c4714622dc740 |
|
BLAKE2b-256 | 79f40c1fb3fb198e66647d6dc2f75a35ccb6b418ccfc1bec193bb3d2b2f5f6d1 |
Close
Hashes for python_unsiotools-1.0.0-cp35-cp35m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 506d39f115283c4d4b4fc6ec1d15175b696d3ba0624440c0d68ffcb1b4cc0e24 |
|
MD5 | 098f4f5503904d1dbd46279e0ef40393 |
|
BLAKE2b-256 | d4924971076de151ec6393a54498e87c25b3c20049285d7a18f522b87fc96f94 |
Close
Hashes for python_unsiotools-1.0.0-cp34-cp34m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4ac48f96a0779717a922dbd716000e581c4f1df149efd847bf60dc193c72213 |
|
MD5 | 7cd265a7a782932c54acd722cbee1928 |
|
BLAKE2b-256 | be07d350e3f3b9b24b63a68d5e0c6252a44cc9830bfb40ec6ff0c7442f6f4427 |
Close
Hashes for python_unsiotools-1.0.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d48582016e67f92cec5f7c28ab05c2a3e4d8199618b774523442e060d7f52fa |
|
MD5 | 55a5a0253683792a31adbcefb9e6ec5d |
|
BLAKE2b-256 | f8a3000ac472eccdbceac41d3aa66631f4c8ce5f9081861894d8a79811f7e7bb |
Close
Hashes for python_unsiotools-1.0.0-cp34-cp34m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20c5333a18361647821fc8aa35cdba4ace6858812c824bef89204009ccc07a6e |
|
MD5 | 7b496d71349f897c2ab668b4a6710363 |
|
BLAKE2b-256 | bff89016703866ea7b55b11187481ef25816687a9cf10951a22adff76f48a085 |
Close
Hashes for python_unsiotools-1.0.0-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca0aa2d3fa7d228a548ef39731746c4a3b4ec29f91ed6c220cc71229ea4a4fb1 |
|
MD5 | ed9ece6578c4a98d612eb05955ff740e |
|
BLAKE2b-256 | eefeb194d93b43280a7d7fe638add44fde72b228eb3ba1d1a4f51fe136aa9af4 |
Close
Hashes for python_unsiotools-1.0.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 640a90d9ae5223a57d7277ba666f5510265c0f111a0eda6a818ca686f74f6868 |
|
MD5 | 7188ff8382ea83060f099624375ef699 |
|
BLAKE2b-256 | a535c2f5b524101052b689dbd854984ed5c5923612a1463fbf8d147e46a46ab4 |
Close
Hashes for python_unsiotools-1.0.0-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7723ce38c72943ba3961af63019662b3f2147e5e60a7a3385e349055f73b1b3 |
|
MD5 | d984abbdfb5972c07b02077c77bd6289 |
|
BLAKE2b-256 | 999a5279bada8d13b026862e4577fdc03d2864ad708e9cb8036256fc97144e32 |
Close
Hashes for python_unsiotools-1.0.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1528a3f1fb04c45bb6b6011a800c02ab55aec5e98f3b7d44d7b5e5b1d2b8496d |
|
MD5 | cfd117c7ffb78a045dd4f400bacfcca2 |
|
BLAKE2b-256 | 95a5c593f808f6d2d2683b030ed84d907ffe50ba8087b6a251e8191cbc6c6c11 |