Commit fd57dadb authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles

fix CI

parent 8dcf8e27
......@@ -3,7 +3,7 @@
# build wheel
#PATH=/opt/usr/bin/:/opt/python/cp27-cp27m/bin:${PATH} pip wheel ./unsio/ -w wheelhouse
rm -f wheel/*unsio*manylinux*.whl wheelhouse/*unsio*manylinux*.whl
rm -f wheel/*unsio*manylinux*.whl wheel/*unsio*tar.gz wheelhouse/*unsio*manylinux*.whl
# build wheel
for PYBIN in /opt/python/*/bin/; do
......
......@@ -23,7 +23,7 @@ UNSIO can be used from different languages (C,C++,Fortran and Python)
## Installing python wrapper
```console
pip install python-unsio
pip install python-unsio -U
```
## Usage
......@@ -33,7 +33,7 @@ pip install python-unsio
import unsio.input as uns_in # unsio reading module
myfile="/home/jcl/output_00004" # input RAMSES simulation
# we instantiate object
# we instantiate a CUNS_IN object
my_in=uns_in.CUNS_IN(myfile,"gas,stars") # We select components GAS and STARS
#
# Reading
......@@ -53,17 +53,17 @@ if my_in.nextFrame(): # load snapshot
import unsio.output as uns_out # unsio writing module
myoutfile="snapshot.g3" # output file name
# we instantiate object
# we instantiate a CUNS_OUT object
my_out=uns_out.CUNS_OUT(myoutfile,"gadget3") # select gadget3 output format
# prepare data to be saved
# set time
status=my_out.setData(timex,"time")
# set positions for stars
# set stars positions
status=my_out.setData(poss,"stars","pos")
# set positions for gas
# set gas positions
status=my_out.setData(posg,"gas","pos")
# set density for gas
# set gas densities
status=my_out.setData(rho,"gas","rho")
# write on file system
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment