rex.rechunk_h5.combine_h5.CombineH5

class CombineH5(combined_h5, *source_h5, axis=1, overwrite=True)[source]

Bases: object

Class to combine multiple .h5 files

Parameters
  • combined_h5 (str) – Path to save combined .h5 file to

  • source_h5 (str) – Path to source .h5 files

  • axis (int, optional) – axis to combine datasets along, by default 1

  • overwrite (bool, optional) – Flag to overwrite an existing h5_dst file, by default True

Methods

close()

Close h5 instance

combine([process_size])

Combine source .h5 files

run(combined_h5, *source_h5[, axis, ...])

Combine source .h5 files

Attributes

combined_h5

Path to combined .h5 file

datasets

Datasets to combine

source_h5

Paths to source .h5 files

close()[source]

Close h5 instance

property combined_h5

Path to combined .h5 file

Returns

str

property source_h5

Paths to source .h5 files

Returns

tuple

property datasets

Datasets to combine

Returns

list

combine(process_size=None)[source]

Combine source .h5 files

Parameters

process_size (int, optional) – Ammount of data to be transfered at a time, by default None

classmethod run(combined_h5, *source_h5, axis=1, overwrite=True, process_size=None)[source]

Combine source .h5 files

Parameters
  • combined_h5 (str) – Path to save combined .h5 file to

  • source_h5 (str) – Path to source .h5 files

  • axis (int, optional) – axis to combine datasets along, by default 1

  • overwrite (bool, optional) – Flag to overwrite an existing h5_dst file, by default True

  • process_size (int, optional) – Ammount of data to be transfered at a time, by default None