Skip to main content

A collection of unsio based programs

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 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 and gravity 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")

# compute density
cf=falcon.CFalcon()
ok,rho,hsml=cf.getDensity(pos,mass)
print("Rho=",rho)

# compute gravity
eps=0.05 # softening
ok,acc,phi=cf.getGravity(pos,mass,eps)
print (ok,acc,phi)
  • In this more simple example, we compute density and gravity 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()
# density
ok,rho,hsml=cf.getDensity(pos,mass)
print(f"ok={ok}\nrho={rho}")
# gravity
eps=0.05
ok,acc,phi=cf.getGravity(pos,mass,eps)
print (f"ok={ok}\nacc={acc}\nphi={phi}")

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unsiotools-1.0.2rc1.tar.gz (588.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

unsiotools-1.0.2rc1-cp313-cp313-manylinux_2_28_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

unsiotools-1.0.2rc1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

unsiotools-1.0.2rc1-cp313-cp313-macosx_15_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

unsiotools-1.0.2rc1-cp313-cp313-macosx_10_13_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

unsiotools-1.0.2rc1-cp312-cp312-manylinux_2_28_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

unsiotools-1.0.2rc1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

unsiotools-1.0.2rc1-cp312-cp312-macosx_15_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

unsiotools-1.0.2rc1-cp312-cp312-macosx_10_13_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

unsiotools-1.0.2rc1-cp311-cp311-manylinux_2_28_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

unsiotools-1.0.2rc1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

unsiotools-1.0.2rc1-cp311-cp311-macosx_15_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

unsiotools-1.0.2rc1-cp311-cp311-macosx_10_13_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.11macOS 10.13+ x86-64

unsiotools-1.0.2rc1-cp310-cp310-manylinux_2_28_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

unsiotools-1.0.2rc1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

unsiotools-1.0.2rc1-cp310-cp310-macosx_10_13_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.10macOS 10.13+ x86-64

unsiotools-1.0.2rc1-cp39-cp39-manylinux_2_28_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

unsiotools-1.0.2rc1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

unsiotools-1.0.2rc1-cp39-cp39-macosx_15_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.9macOS 15.0+ ARM64

unsiotools-1.0.2rc1-cp39-cp39-macosx_10_13_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.9macOS 10.13+ x86-64

unsiotools-1.0.2rc1-cp38-cp38-manylinux_2_28_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64

unsiotools-1.0.2rc1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

unsiotools-1.0.2rc1-cp38-cp38-macosx_10_13_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.8macOS 10.13+ x86-64

File details

Details for the file unsiotools-1.0.2rc1.tar.gz.

File metadata

  • Download URL: unsiotools-1.0.2rc1.tar.gz
  • Upload date:
  • Size: 588.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for unsiotools-1.0.2rc1.tar.gz
Algorithm Hash digest
SHA256 65f6d397c0998e41ebe22db1418cb468a9284b1c7e4e9758f2d4b27bb4574e9b
MD5 6141b0fffeeeafd746cfacc5daef1724
BLAKE2b-256 9e276fc9ad86a3d75065868d1b866ed13cd5ae42c726b49293793f1240b27fc4

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e28c621f757615c2f412cdab228c7407d40d9a5fa70f7f98398ceb642c83b56b
MD5 bed023e13b671f8a991ef4b399c45946
BLAKE2b-256 9af4f649cb23cbb7075e86c3b99d66ff874bf116bbd9d77fec3bfab9108c6a40

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f202ccf8186c799ed064e06dd6af6e17e2ee757b607ae3c96a226c6f346e49be
MD5 3595da3d2e3774de20c814f3e718daa3
BLAKE2b-256 fe0b9e8c0320c4ab060e686e49a6201b6d20b8b4644684738b47b3caba2b1225

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 a5fa8f124b7c2706ac03e9901288f677108cc1524efefa597b093f8d765bd864
MD5 32a7bd0c57be825b0b9fc0f2d21be710
BLAKE2b-256 51c351d0342b6b92111004191097ab741d7b8fe4df04160ebd665effad48eba3

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 17717c8df19d3bd80885aa8736f0b50e7a4ae1afe0bb22e59bd82fb0887b6f7f
MD5 4f4b5e621b0659e79b1e10898914834c
BLAKE2b-256 41f6c632d8354063f177124a6b88d06e97e0b74c6679189a889d728ff46936a1

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 46ece65a05fed60cccfd3e44fbdbec32e1f7927186c688857202b7709d9033df
MD5 db0d53b5a71a3073ecf678a05500702c
BLAKE2b-256 580c46ba7b99cf3c44103b035f1825311a67bb082eb80565228d36ef568661f6

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 54690b4639694eacc09e3fd5467ea2d0cad71bc091e5c772e324fbd2c90c8416
MD5 ac429f1422eee46d3366fb24f1e8cca7
BLAKE2b-256 4285f44cd572977e4c84309258dc8638ed0d7a645ce152eee1620fdad715f06f

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e32dd6154d8066bb8740e9e3fe4468e3b9b7fee26ca00c345dbda72cbdb556f1
MD5 97cbe11161d6715e7ba8f5b4874519aa
BLAKE2b-256 6d32e0152f37d506d5028c0a67002e4ef8ebb9a9a1c31bee0f0d69e9040b7016

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f0f8d64a5a4621be4d30f85f7cd35425db3190a3a041d77a14349642f2871bee
MD5 4c21c2ef385628d18672ef82ec220711
BLAKE2b-256 ff46e67546675d36223276953f89a563c446208980179b57b6f2e6daacf0d49d

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a2c72701110fbfdf79493bac0bfc2a54d541978351aaadc23e0c743eb9a562a1
MD5 7e9bfc638e937ffa5179b6a23296e6f3
BLAKE2b-256 9c7fc3955e9d563acfd6681cfc16d23751fb50196f650278f2ae56f67423f245

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ff7d70feeadfca181ba3778fd4bf50681945e6e7d281900ce1711921705653d5
MD5 04a9087694a26489f7f241df0a7ec8af
BLAKE2b-256 a65410e7fa1bda907e9984be541927ef067997def879b744998f161a9c7a26c8

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c48b295a09e2316a65fc94b86488d7fdd4760cc61f6dc27013b50b662503cc86
MD5 62cb32b372b5dadde57ddea46d5c3288
BLAKE2b-256 ebe94f5bec65a8f10fa299068085883bd24c49384aef532d1b20b0a9e96e3f69

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp311-cp311-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp311-cp311-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 38571363eab5593d54f3b4d49f9841ca6027edec435bc316dab18a41ab00536e
MD5 c58a860eb3f7c433fb51a114184f29cf
BLAKE2b-256 7d3dde281ca103b914a6b8dc3d73929e07927201478fe0f57f10c55eb4bf60d5

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 565b4b5e989187e4722a1912279b026b2add6536a05e49e52bd8fe7f1363b21c
MD5 35beeeafdbab90eb49ca60dc15708749
BLAKE2b-256 27b47fb76064a67b74c117b51a53aea9b938583c6abb8255d317c1206df7d963

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 391a56177f48dfa9da3ad81890cf851233e4bcfe99dae61d2fb7622554ce8ac6
MD5 37d8dbf14935c5b17d83f24f2decf02c
BLAKE2b-256 89d095786b485b6e48bef2cbef25c7163e070c43b4401ccf08a195b20c1b74b6

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp310-cp310-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp310-cp310-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 713de07fbeaad9cb73c1667f0084ebd70ba92a0d66a5fae470caeb4e983901d4
MD5 e4e838dc3ff5d1f112a779ecf40a80d7
BLAKE2b-256 0a8cd5994b43cc73bf3dd4f510ecbd76145f87aacb8ba173acac5792690f166e

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 910db9af60cae7322efc2b5bf243e81fd8d9db94629fd6047375033bfc60ba8f
MD5 f7dd9fa58d44383bc11927bbdaa8810a
BLAKE2b-256 fbd5cc96f74e140ac8ebc544d66c94b722d67df531581bd90f5f8a0151f2b40d

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f2e1b7376aaa9e4164b9701037cd1f2f6474d67d58858b0d8062e482fbe7ae76
MD5 d4535071b774f54f8abb3a225b88cf70
BLAKE2b-256 fb005505c8ca8106622a69a092ba31f74f6d055ea924463dc8c7b3572e0df849

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp39-cp39-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp39-cp39-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 fce650dcf08c0aa264e56ce65cf37656f82cf5716e51c436172226b4d4ff59b4
MD5 5ffd94c266bacf094d7e44e6b13d436b
BLAKE2b-256 5b3e5292f587906ba316880ae79c9d66097a059c6f91ae0b4533767a149e745a

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp39-cp39-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp39-cp39-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 a5e31f1a5dd3e9bdc77438fedc3dd9ea11822e6d8ee1dceec1568002d24a121c
MD5 ab021d8d0dce0bdccf16e593509de0d2
BLAKE2b-256 db29e37d93b117a4c7f0bcd101229b7cfed877b3d59c4c6d24c5a2c8e7c4242f

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0657199cbfac62047d6f8072f9fa1e1fdf0a429ae56f3b90401999070310e0e8
MD5 4052d3b1c30b12fa6965b9295ac10a57
BLAKE2b-256 4697a63430d535e56455fcb5ccb01f8f0f3171a8c5d50357f501d15e7da52804

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 16724d6df843187350c8382af209944f06819ea445c01b15cbfc96ee0e45b4b0
MD5 c4595971d07965b3d971d52c7d6a6edb
BLAKE2b-256 7ed122a63b006a7f19f7aa01104c761c4b0799e1f6587e2cfe7eea91bce07c12

See more details on using hashes here.

File details

Details for the file unsiotools-1.0.2rc1-cp38-cp38-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for unsiotools-1.0.2rc1-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 36c4adc1b014a247e47fba0efd8d57c1591e291d02f35cfb19f058c897a3dd15
MD5 4593c31fb143a6d0ace4c18bd460c743
BLAKE2b-256 d38f12c754307f8095ca93f3521de00c8a65934d77662bb56da770221e832228

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page