Replies: 5 comments 5 replies
-
I recall someone writing an h5m file inspector @
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Jin Whan Bae ***@***.***>
Sent: Monday, July 4, 2022 7:49:37 PM
To: svalinn/DAGMC ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [svalinn/DAGMC] Is there a way to view the number of cells in an `.h5m` file? (Discussion #811)
Is there a convenient way to 'inspect' an .h5m file? For example printing out how many cells it has?
Thank you.
—
Reply to this email directly, view it on GitHub<#811>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AASTUSTPLZL23YIYOFGNGE3VSMW4DANCNFSM52T6XVOQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
We are also developing a DAGMC stats package to generate summaries of many characteristics of a DAGMC file: https://github.com/svalinn/dagmc_stats |
Beta Was this translation helpful? Give feedback.
-
thanks! That sounds great. |
Beta Was this translation helpful? Give feedback.
-
@jbae11 give this a go for counting the number of volumes pip install h5py Then from within python import h5py
dagmc_file_contents = h5py.File('dagmc.h5m')
groups=dagmc_file_contents['/tstt/sets/children']
print(len(groups)) |
Beta Was this translation helpful? Give feedback.
-
Volumes id's are arbitrary and gappy
…________________________________
From: Jonathan Shimwell ***@***.***>
Sent: 27 September 2022 14:49
To: svalinn/DAGMC ***@***.***>
Cc: Davis, Andrew ***@***.***>; Comment ***@***.***>
Subject: Re: [svalinn/DAGMC] Is there a way to view the number of cells in an `.h5m` file? (Discussion #811)
Just wondering if this volume code would be useful in the openmc.DAGMCUniverse class 👀
Are the volumes in a DAGMC file always sequential and start at 1? For example volume ids would be 1,2,3,4
—
Reply to this email directly, view it on GitHub<#811 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AASTUSTQXIXZK3KFEOIJTNLWAL3PDANCNFSM52T6XVOQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Is there a convenient way to 'inspect' an
.h5m
file? For example printing out how many cells it has?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions