Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Add version information to CUDS HDF5 file #180

Merged
merged 7 commits into from
Jul 13, 2015
Merged

Conversation

nathanfranklin
Copy link
Member

This PR addresses #156 by adding version information to the CUDS HDF5 file. Specifically, a 'cuds_version' was added as an HDF5-attribute of type int to:

  • "1. Top level version of the main group (i.e. root) where the container types are grouped. This is the expected layout of the file as defined in H5CUDS."
  • "2. The CUDS container hdf5 layout version separate for each CUDS container. "

Only a single individual version (the latest) is supported and an exception is thrown when reading files containing a different version.

See discussions in issue #156 for more detail on versioning. In general, when a developer changes the top level layout (i.e. root), then the top level 'cuds-version' should be incremented for that release of SimPhoNy. When a developer changes the layout of the CUDS container components, that's 'cuds_version' should be incremented for that release of SimPhony and the top-level version (i.e. root) should also be incremented.

This PR doesn't update the UML images (see #179)

Nathan Franklin added 6 commits July 7, 2015 17:35
@nathanfranklin
Copy link
Member Author

@itziakos @roigcarlo @tuopuu @SGGgarcia , this is ready to be reviewed and merged. thanks.

(i am out of the office till tuesday)

@@ -4,6 +4,8 @@
from simphony.io.h5_mesh import H5Mesh
from simphony.io.h5_lattice import H5Lattice

_file_version = 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to capitalize and probably rename to H5FILE_VERSION

@itziakos
Copy link
Member

one minor comment from me

@SGGgarcia
Copy link
Contributor

Looks ok 👍 Same suggestion as Ioannis.

@nathanfranklin
Copy link
Member Author

@itziakos , @SGGgarcia : Thanks. Made the change.

roigcarlo added a commit that referenced this pull request Jul 13, 2015
Add version information to CUDS HDF5 file
@roigcarlo roigcarlo merged commit 7980f9b into master Jul 13, 2015
@roigcarlo roigcarlo deleted the add-version-to-file branch July 13, 2015 08:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants