Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-24 Thread Launchpad Janitor
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-09 Thread Jinny Kim
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Jinny Kim gave more information on the question:
Okay, I think I found the problem. when I try this command (python2 -c
"import h5py"), it says that 'no module named h5py. I think h5py is no
available for python2..

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-09 Thread Jinny Kim
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Jinny Kim gave more information on the question:
I am trying (a) in your reply. I found the path of the module like this: 
import sys
sys.modules['h5py']

Then, I tried (a) by using the path that I got above. but tase said 'no
module named h5py'..

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-09 Thread Jan Stránský
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Status: Open => Answered

Jan Stránský proposed the following answer:
> If i try those commands in the terminal, there is no any output...

it means everything is ok and h5py is available for both python 2 and 3.
For some reason, the installation with miniconda (don't know it) is not visible 
for Yade. You can try:

a) point python to the actual installation in your script:
import sys
sys.path.append("/path/where/h5py/was/installed")
import h5py

b) use pip
pip install h5py --user
(or without --user, then you would need sudo)

c) use apt
sudo apt install python-h5py

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-09 Thread Jinny Kim
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Status: Needs information => Open

Jinny Kim gave more information on the question:
What does Yade says if you type
import sys; sys.version 
?
> '2.7.12 (default, Nov 12 2018, 14:36:49) \n[GCC 5.4.0 20160609]'

what is the output of command line commands
python -c "import h5py"
python3 -c "import h5py" 
?
> If i try those  commands in the terminal, there is no any output...

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-08 Thread Jan Stránský
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Status: Open => Needs information

Jan Stránský requested more information:
Could be python 2/3 problem.

What does Yade says if you type
import sys; sys.version
?

what is the output of command line commands
python -c "import h5py"
python3 -c "import h5py"
?

thanks
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-08 Thread Jinny Kim
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Status: Needs information => Open

Jinny Kim gave more information on the question:
Yes, I have installed it. I installed it with Miniconda by following [1].
[1] http://docs.h5py.org/en/stable/quick.html

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-08 Thread Jan Stránský
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Status: Open => Needs information

Jan Stránský requested more information:
Have you installed h5py to your computer?
If yes, how?
If no, what version of yade you use?

Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-08 Thread Jinny Kim
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Status: Answered => Open

Jinny Kim is still having a problem:
I tried that, but I got this error: ImportError: No module name h5py.
When I run the python script, I am using this command in terminal: yade
filename.py..

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-08 Thread Jan Stránský
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Status: Open => Answered

Jan Stránský proposed the following answer:
Hi,

> In order to do this, I need to import 'h5py' module.

yes. it should be no problem (or?)

> I think I need to add 'h5py'module in Yade library, is it possible?

just use h5py in your python script
(not sure what you mean by library)

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-08 Thread Jinny Kim
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Description changed to:
Hello all,

I want to save particle data in hdf5file. In order to do this, I need to
import 'h5py' module. I think I need to add 'h5py'module in Yade
library, is it possible?

Thank you for your help in advance.

Jinny Kim.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


[Yade-users] [Question #683753]: save data in hdf5 file

2019-09-08 Thread Jinny Kim
New question #683753 on Yade:
https://answers.launchpad.net/yade/+question/683753

Hello all,

I want to save particle data in hdf5file. In order to do this, I need to import 
'h5py' module. Can I install this module in Yade software?

Thank you for your help in advance.

Jinny Kim.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp