Skip to content

Commit c07ffa5

Browse files
committed
name of type change to ParticleIntensitiesDataType
1 parent 5bba343 commit c07ffa5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/io/APRWriter.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace AprTypes {
4545
const AprType NumberOfLevelXType = {H5T_NATIVE_INT, "x_num_"};
4646
const AprType NumberOfLevelYType = {H5T_NATIVE_INT, "y_num_"};
4747
const AprType NumberOfLevelZType = {H5T_NATIVE_INT, "z_num_"};
48-
const AprType DataTypeType = {H5T_NATIVE_INT64, "data_type"};
48+
const AprType ParticleIntensitiesDataType = {H5T_NATIVE_INT64, "data_type"};
4949
const AprType MapGlobalIndexType = {H5T_NATIVE_INT16, "map_global_index"};
5050
const AprType MapYendType = {H5T_NATIVE_INT16, "map_y_end"};
5151
const AprType MapYbeginType = {H5T_NATIVE_INT16, "map_y_begin"};
@@ -55,7 +55,7 @@ namespace AprTypes {
5555
const AprType MapZType = {H5T_NATIVE_INT16, "map_z"};
5656
const AprType ParticleCellType = {H5T_NATIVE_UINT8, "particle_cell_type"};
5757

58-
const char * const DataIntensities = "particle_intensities"; // type read from file
58+
const char * const ParticleIntensitiesType = "particle_intensities"; // type read from file
5959
}
6060

6161

@@ -157,11 +157,11 @@ class APRWriter {
157157
}
158158

159159
// ------------- read data ------------------------------
160-
hid_t data_type;
161-
readAttr(AprTypes::DataTypeType, groupId, &data_type);
160+
hid_t dataType;
161+
readAttr(AprTypes::ParticleIntensitiesDataType, groupId, &dataType);
162162
apr.particles_intensities.data.resize(apr.apr_access.total_number_particles);
163163
if (apr.particles_intensities.data.size() > 0) {
164-
readData({data_type, AprTypes::DataIntensities}, objectId, apr.particles_intensities.data.data());
164+
readData({dataType, AprTypes::ParticleIntensitiesType}, objectId, apr.particles_intensities.data.data());
165165
}
166166
apr.apr_access.y_num[apr.apr_access.level_max] = apr.apr_access.org_dims[0];
167167
apr.apr_access.x_num[apr.apr_access.level_max] = apr.apr_access.org_dims[1];
@@ -335,8 +335,8 @@ class APRWriter {
335335
apr_compressor.compress(apr,apr.particles_intensities);
336336
}
337337
hid_t type = Hdf5Type<ImageType>::type();
338-
writeAttr(AprTypes::DataTypeType, pr_groupid, &type);
339-
writeData({type, AprTypes::DataIntensities}, obj_id, apr.particles_intensities.data, blosc_comp_type, blosc_comp_level, blosc_shuffle);
338+
writeAttr(AprTypes::ParticleIntensitiesDataType, pr_groupid, &type);
339+
writeData({type, AprTypes::ParticleIntensitiesType}, obj_id, apr.particles_intensities.data, blosc_comp_type, blosc_comp_level, blosc_shuffle);
340340
write_timer.stop_timer();
341341

342342
write_timer.start_timer("access_data");

0 commit comments

Comments
 (0)