Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADIOS: Example File #2

Open
ax3l opened this issue Sep 1, 2015 · 1 comment
Open

ADIOS: Example File #2

ax3l opened this issue Sep 1, 2015 · 1 comment

Comments

@ax3l
Copy link
Member

ax3l commented Sep 1, 2015

Add a script that creates and ADIOS example file.

Depends (partly) on issues mentioned here.

Main missing feature are object-oriented groups/variables/attributes in their python binding

@ax3l
Copy link
Member Author

ax3l commented Sep 1, 2015

half-way converter script:

#!/bin/bash
#
# Copyright (c) 2015 Axel Huebl
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
sed -e 's/h5py/adios/g' \
    -e 's/\.h5/\.bp/g' \
    -e 's/h5/ad/g' \
    -e 's/File(/Writer(/g' \
    -e 's/, "w"//g' \
    -e 's/attrs/attr/g' \
    -e 's/create_group/declare_group/g' \
    -e 's/create_dataset/define_var/g' \
    createExamples_h5.py > createExamples_adios.py

chmod u+x createExamples_adios.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant