diff options
author | Picca Frédéric-Emmanuel <picca@debian.org> | 2021-01-06 14:10:23 +0100 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@debian.org> | 2021-01-06 14:10:23 +0100 |
commit | 002ed7b38ea6faabaf5c38d72b7feb613a06bf18 (patch) | |
tree | 95017e251453fea7bc4cdee1f8c7948db5bcbb1e /silx/io/commonh5.py | |
parent | 67d50044ca7c19d729e97856afdbb820554de27f (diff) | |
parent | b3bea947efa55d2c0f198b6c6795b3177be27f45 (diff) |
Update upstream source from tag 'upstream/0.14.0+dfsg'
Update to upstream version '0.14.0+dfsg'
with Debian dir 4d37469f6d6ee58a6bdbac36ff5fed8399b69383
Diffstat (limited to 'silx/io/commonh5.py')
-rw-r--r-- | silx/io/commonh5.py | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/silx/io/commonh5.py b/silx/io/commonh5.py index b624816..57232d8 100644 --- a/silx/io/commonh5.py +++ b/silx/io/commonh5.py @@ -1,6 +1,6 @@ # coding: utf-8 # /*########################################################################## -# Copyright (C) 2016-2019 European Synchrotron Radiation Facility +# Copyright (C) 2016-2020 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -376,6 +376,24 @@ class Dataset(Node): There is no chunks.""" return None + @property + def is_virtual(self): + """Checks virtual data as provided by `h5py.Dataset`""" + return False + + def virtual_sources(self): + """Returns virtual dataset sources as provided by `h5py.Dataset`. + + :rtype: list""" + raise RuntimeError("Not a virtual dataset") + + @property + def external(self): + """Returns external sources as provided by `h5py.Dataset`. + + :rtype: list or None""" + return None + def __array__(self, dtype=None): # Special case for (0,)*-shape datasets if numpy.product(self.shape) == 0: @@ -958,7 +976,7 @@ class Group(Node): raise TypeError("Path are not supported") if data is None: if dtype is None: - dtype = numpy.float + dtype = numpy.float64 data = numpy.empty(shape=shape, dtype=dtype) elif dtype is not None: data = data.astype(dtype) |