exdir icon indicating copy to clipboard operation
exdir copied to clipboard

Convert data to arrays if possible when creating datasets

Open simetenn opened this issue 7 years ago • 1 comments

Converts data to a numpy array if data is not a ndarray or None. Among other things this enables lists to directly be used when creating a dataset, similar to h5py.

This also enables other objects to be converted to numpy object arrays. This is in line with the current support for and handling of object arrays, but see issue #47.

simetenn avatar May 11 '18 08:05 simetenn

Codecov Report

Merging #48 into dev will increase coverage by 0.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##              dev     #48      +/-   ##
=========================================
+ Coverage   97.58%   97.6%   +0.01%     
=========================================
  Files          11      11              
  Lines        1369    1376       +7     
=========================================
+ Hits         1336    1343       +7     
  Misses         33      33
Impacted Files Coverage Δ
tests/test_dataset.py 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update edbdea9...eb479a5. Read the comment docs.

codecov[bot] avatar May 11 '18 08:05 codecov[bot]