Skip to content

Commit

Permalink
Merge pull request #230 from ComputationalRadiationPhysics/dev
Browse files Browse the repository at this point in the history
Release 1.4.0: SDC Global Attibute Path to "/"
  • Loading branch information
ax3l committed Apr 13, 2016
2 parents 8c7b02d + 8773dc5 commit 467c85e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
Change Log for libSplash
================================================================

Release 1.4.0
-------------
**Date:** 2016-04-12

The `SerialDataCollector` now also writes global attributes
to `/`, allowing serial files to fulfill the openPMD standard.

**Interface Changes**

- `SerialDataCollector::writeGlobalAttribute` now writes to `/`
instead of `/custom` (follow-up to #182) #229


Release 1.3.1
-------------
**Date:** 2016-04-12
Expand Down
4 changes: 3 additions & 1 deletion src/DCGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ namespace splash
throw (DCException)
{
H5Handle newHandle;
const bool is_basepath(path == std::string("/"));

if (checkExistence && !H5Lexists(base, path.c_str(), H5P_DEFAULT))
if (checkExistence && !H5Lexists(base, path.c_str(), H5P_DEFAULT) &&
!is_basepath)
throw DCException(getExceptionString("Failed to open group", path));

newHandle = H5Gopen(base, path.c_str(), H5P_DEFAULT);
Expand Down
2 changes: 1 addition & 1 deletion src/include/splash/sdc_defines.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace splash
#define SDC_GROUP_HEADER "/header"
#define SDC_GROUP_DATA "/data"
#define SDC_GROUP_ITERATION "iteration"
#define SDC_GROUP_CUSTOM "/custom"
#define SDC_GROUP_CUSTOM "/"
#define SDC_ATTR_DIM_LOCAL "dim_local"
#define SDC_ATTR_DIM_GLOBAL "dim_global"
#define SDC_ATTR_MAX_ID "max_id"
Expand Down
10 changes: 5 additions & 5 deletions src/include/splash/version.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2013-2015 Felix Schmitt, Axel Huebl
* Copyright 2013-2016 Felix Schmitt, Axel Huebl
*
* This file is part of libSplash.
*
Expand All @@ -25,14 +25,14 @@

/** the splash version reflects the changes in API */
#define SPLASH_VERSION_MAJOR 1
#define SPLASH_VERSION_MINOR 3
#define SPLASH_VERSION_PATCH 1
#define SPLASH_VERSION_MINOR 4
#define SPLASH_VERSION_PATCH 0

/** we can always handle files from the same major release
* changes in the minor number have to be backwards compatible
*/
#define SPLASH_FILE_FORMAT_MAJOR 3
#define SPLASH_FILE_FORMAT_MINOR 3
#define SPLASH_FILE_FORMAT_MAJOR 4
#define SPLASH_FILE_FORMAT_MINOR 0

/** The version of HDF5 that was used to compile splash */
#define SPLASH_HDF5_VERSION "${HDF5_VERSION}"
Expand Down
2 changes: 1 addition & 1 deletion tests/readBoolChar.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
f = h5py.File("h5/attributes_array_0_0_0.h5", "r")

# array attributes
dg = f["custom"].attrs["testposition"]
dg = f.attrs["testposition"]
print(dg, type(dg), dg.dtype)

ref_dg = np.array([17, 12, -99], dtype="int")
Expand Down

0 comments on commit 467c85e

Please sign in to comment.