Skip to content

Commit 467c85e

Browse files
committed
Merge pull request #230 from ComputationalRadiationPhysics/dev
Release 1.4.0: SDC Global Attibute Path to "/"
2 parents 8c7b02d + 8773dc5 commit 467c85e

File tree

5 files changed

+23
-8
lines changed

5 files changed

+23
-8
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
Change Log for libSplash
22
================================================================
33

4+
Release 1.4.0
5+
-------------
6+
**Date:** 2016-04-12
7+
8+
The `SerialDataCollector` now also writes global attributes
9+
to `/`, allowing serial files to fulfill the openPMD standard.
10+
11+
**Interface Changes**
12+
13+
- `SerialDataCollector::writeGlobalAttribute` now writes to `/`
14+
instead of `/custom` (follow-up to #182) #229
15+
16+
417
Release 1.3.1
518
-------------
619
**Date:** 2016-04-12

src/DCGroup.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ namespace splash
103103
throw (DCException)
104104
{
105105
H5Handle newHandle;
106+
const bool is_basepath(path == std::string("/"));
106107

107-
if (checkExistence && !H5Lexists(base, path.c_str(), H5P_DEFAULT))
108+
if (checkExistence && !H5Lexists(base, path.c_str(), H5P_DEFAULT) &&
109+
!is_basepath)
108110
throw DCException(getExceptionString("Failed to open group", path));
109111

110112
newHandle = H5Gopen(base, path.c_str(), H5P_DEFAULT);

src/include/splash/sdc_defines.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace splash
2828
#define SDC_GROUP_HEADER "/header"
2929
#define SDC_GROUP_DATA "/data"
3030
#define SDC_GROUP_ITERATION "iteration"
31-
#define SDC_GROUP_CUSTOM "/custom"
31+
#define SDC_GROUP_CUSTOM "/"
3232
#define SDC_ATTR_DIM_LOCAL "dim_local"
3333
#define SDC_ATTR_DIM_GLOBAL "dim_global"
3434
#define SDC_ATTR_MAX_ID "max_id"

src/include/splash/version.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2013-2015 Felix Schmitt, Axel Huebl
2+
* Copyright 2013-2016 Felix Schmitt, Axel Huebl
33
*
44
* This file is part of libSplash.
55
*
@@ -25,14 +25,14 @@
2525

2626
/** the splash version reflects the changes in API */
2727
#define SPLASH_VERSION_MAJOR 1
28-
#define SPLASH_VERSION_MINOR 3
29-
#define SPLASH_VERSION_PATCH 1
28+
#define SPLASH_VERSION_MINOR 4
29+
#define SPLASH_VERSION_PATCH 0
3030

3131
/** we can always handle files from the same major release
3232
* changes in the minor number have to be backwards compatible
3333
*/
34-
#define SPLASH_FILE_FORMAT_MAJOR 3
35-
#define SPLASH_FILE_FORMAT_MINOR 3
34+
#define SPLASH_FILE_FORMAT_MAJOR 4
35+
#define SPLASH_FILE_FORMAT_MINOR 0
3636

3737
/** The version of HDF5 that was used to compile splash */
3838
#define SPLASH_HDF5_VERSION "${HDF5_VERSION}"

tests/readBoolChar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
f = h5py.File("h5/attributes_array_0_0_0.h5", "r")
5353

5454
# array attributes
55-
dg = f["custom"].attrs["testposition"]
55+
dg = f.attrs["testposition"]
5656
print(dg, type(dg), dg.dtype)
5757

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

0 commit comments

Comments
 (0)