Skip to content

Commit

Permalink
[TestDataAccess] activate test
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrewe committed Apr 5, 2020
1 parent 1034c28 commit 899ca95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/util/dataAccess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ string getDimensionUnit(const Dimension &dim) {
break;
case DimensionType::DataFrame: {
DataFrameDimension df_dim = dim.asDataFrameDimension();
unit = df_dim.unit();
unit = "none";
if (df_dim.columnIndex()) {
unit = df_dim.unit();
}
if (unit.empty()) {
unit = "none";
}
Expand Down Expand Up @@ -316,7 +319,7 @@ void getOffsetAndCount(const MultiTag &tag, const DataArray &array, const vector
NDSize temp_count(positions.dataExtent().size(), static_cast<NDSize::value_type>(1));

int dim_index = dimension_count > 1 ? 1 : 0;
size_t count = dimension_count > 1 ? position_size[dim_index] : 1;
ndsize_t count = dimension_count > 1 ? position_size[dim_index] : 1;
temp_count[dim_index] = static_cast<NDSize::value_type>(count);

vector<vector<double>> start_positions(dimension_count);
Expand Down
1 change: 1 addition & 0 deletions test/hdf5/TestDataAccessHDF5.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class TestDataAccessHDF5 : public BaseTestDataAccess {
CPPUNIT_TEST(testDataView);
CPPUNIT_TEST(testDataSlice);
CPPUNIT_TEST(testFlexibleTagging);
CPPUNIT_TEST(testGetDimensionUnit);
CPPUNIT_TEST_SUITE_END ();

public:
Expand Down

0 comments on commit 899ca95

Please sign in to comment.