Skip to content
Commits on Source (5)
fast5 (0.6.5-1) unstable; urgency=medium
* New upstream version
* Standards-Version 4.1.3
* Debhelper compat 11
-- Afif Elghraoui <afif@debian.org> Sat, 17 Feb 2018 20:43:22 -0500
fast5 (0.6.4-2) unstable; urgency=low
* Allow stderr output in autpkgtests to ignore notes
......
......@@ -4,7 +4,7 @@ Priority: optional
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Uploaders: Afif Elghraoui <afif@debian.org>
Build-Depends:
debhelper (>= 9),
debhelper (>= 11),
dh-python,
libhdf5-dev,
libboost-python-dev,
......@@ -14,7 +14,7 @@ Build-Depends:
python3-setuptools,
cython,
cython3
Standards-Version: 4.1.2
Standards-Version: 4.1.3
Homepage: https://github.com/mateidavid/fast5
Vcs-Git: https://anonscm.debian.org/git/debian-med/fast5.git
Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/fast5.git
......
......@@ -26,17 +26,13 @@
#include <type_traits>
/// Original HDF5 C API.
namespace hdf5
{
#ifndef DOXY
#include <hdf5.h>
#endif
}
/// New C++ wrapper for the HDF5 C API.
namespace hdf5_tools
{
using namespace hdf5;
/// Exception class thrown by failed hdf5 operations.
class Exception
......@@ -2248,15 +2244,15 @@ public:
detail::HDF_Object_Holder src_attr_dtype_id_holder(
detail::Util::wrap(H5Aget_type, src_attr_id_holder.id),
detail::Util::wrapped_closer(H5Tclose));
if (hdf5::H5Tget_class(src_attr_dtype_id_holder.id) == H5T_INTEGER)
if (H5Tget_class(src_attr_dtype_id_holder.id) == H5T_INTEGER)
{
if (hdf5::H5Tget_sign(src_attr_dtype_id_holder.id) == H5T_SGN_NONE)
if (H5Tget_sign(src_attr_dtype_id_holder.id) == H5T_SGN_NONE)
{
unsigned long long tmp;
src_f.read(src_full_path, tmp);
dst_f.write_attribute(dst_full_path, tmp, src_attr_dtype_id_holder.id);
}
else if (hdf5::H5Tget_sign(src_attr_dtype_id_holder.id) == H5T_SGN_2)
else if (H5Tget_sign(src_attr_dtype_id_holder.id) == H5T_SGN_2)
{
long long tmp;
src_f.read(src_full_path, tmp);
......@@ -2267,17 +2263,17 @@ public:
throw Exception("error in H5Tget_sign");
}
}
else if (hdf5::H5Tget_class(src_attr_dtype_id_holder.id) == H5T_FLOAT)
else if (H5Tget_class(src_attr_dtype_id_holder.id) == H5T_FLOAT)
{
long double tmp;
src_f.read(src_full_path, tmp);
dst_f.write_attribute(dst_full_path, tmp, src_attr_dtype_id_holder.id);
}
else if (hdf5::H5Tget_class(src_attr_dtype_id_holder.id) == H5T_STRING)
else if (H5Tget_class(src_attr_dtype_id_holder.id) == H5T_STRING)
{
std::string tmp;
src_f.read(src_full_path, tmp);
auto is_varlen = hdf5::H5Tis_variable_str(src_attr_dtype_id_holder.id);
auto is_varlen = H5Tis_variable_str(src_attr_dtype_id_holder.id);
if (is_varlen < 0) throw Exception("error in H5Tis_variable_str");
if (is_varlen)
{
......@@ -2286,12 +2282,12 @@ public:
else
{
// not varlen; now deal with array-of-size-1 chars
int sz = hdf5::H5Tget_size(src_attr_dtype_id_holder.id);
int sz = H5Tget_size(src_attr_dtype_id_holder.id);
if (sz == 0) throw Exception("error in H5Tget_size");
detail::HDF_Object_Holder src_attr_dspace_id_holder(
detail::Util::wrap(H5Aget_space, src_attr_id_holder.id),
detail::Util::wrapped_closer(H5Sclose));
auto dspace_type = hdf5::H5Sget_simple_extent_type(src_attr_dspace_id_holder.id);
auto dspace_type = H5Sget_simple_extent_type(src_attr_dspace_id_holder.id);
if (dspace_type == H5S_SCALAR)
{
dst_f.write_attribute(dst_full_path, tmp, 0);
......
......@@ -12,7 +12,6 @@
#include <fast5/hdf5_tools.hpp>
using namespace std;
using namespace hdf5;
struct B
{
......