Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LAMBERT Jean-charles
unsio
Commits
fd57dadb
Commit
fd57dadb
authored
Sep 13, 2019
by
LAMBERT Jean-charles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix CI
parent
8dcf8e27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
CI/script/build-wheel.sh
CI/script/build-wheel.sh
+1
-1
README.md
README.md
+6
-6
No files found.
CI/script/build-wheel.sh
View file @
fd57dadb
...
...
@@ -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
...
...
README.md
View file @
fd57dadb
...
...
@@ -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 densit
y for ga
s
# set
gas
densit
ie
s
status
=
my_out
.
setData
(
rho
,
"gas"
,
"rho"
)
# write on file system
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment