HDF5 classes from O2scl

O2sclpy

Class hdf_file

class o2sclpy.hdf_file(link, pointer=0)

Python interface for O2scl class hdf_file, See https://awsteiner.org/code/o2scl/html/class/hdf_file.html .

__init__(link, pointer=0)

Init function for class hdf_file

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class hdf_file

__copy__()

Shallow copy function for class hdf_file

Returns: hdf_file object

close()
property compr_type

Property of type ctypes.c_int

copy(verbose, hf2)
Parameters:
verbose: int
hf2: hdf_file object
file_list(verbose)
Parameters:
verbose: int
find_object_by_name(name, type, use_regex=False, verbose=0)
Parameters:
name: string
type: std_string object
use_regex =false: bool
verbose =0: int
Returns: a Python int
find_object_by_pattern(pattern, type, use_regex=False, verbose=0)
Parameters:
pattern: string
type: std_string object
use_regex =false: bool
verbose =0: int
Returns: a Python int
find_object_by_type(type, name, use_regex=False, verbose=0)
Parameters:
type: string
name: std_string object
use_regex =false: bool
verbose =0: int
Returns: a Python int
get_szt(name)
Parameters:
name: string
Returns: a Python int, a Python int
get_szt_def(name, deft)
Parameters:
name: string
deft: size_t
Returns: a Python int, a Python int
get_szt_ten(name, t)
Parameters:
name: string
t: tensor_size_t object
Returns: a Python int
get_szt_vec(name, v)
Parameters:
name: string
Returns: a Python int
getc(name)
Parameters:
name: string
Returns: a Python int, a Python obj
getc_def(name, deft)
Parameters:
name: string
deft: char
Returns: a Python int, a Python obj
getd(name)
Parameters:
name: string
Returns: a Python int, a Python float
getd_def(name, deft)
Parameters:
name: string
deft: double
Returns: a Python int, a Python float
getd_mat_copy(name, m)
Parameters:
name: string
m: ublas_matrix object
Returns: a Python int
getd_ten(name, t)
Parameters:
name: string
t: tensor object
Returns: a Python int
getd_vec(name, v)
Parameters:
name: string
v: std_vector object
Returns: a Python int
geti(name)
Parameters:
name: string
Returns: a Python int, a Python int
geti_def(name, deft)
Parameters:
name: string
deft: int
Returns: a Python int, a Python int
geti_mat_copy(name, m)
Parameters:
name: string
Returns: a Python int
geti_ten(name, t)
Parameters:
name: string
t: tensor_int object
Returns: a Python int
geti_vec(name, v)
Parameters:
name: string
v: std_vector_int object
Returns: a Python int
gets(name, s)
Parameters:
name: string
s: std_string object
Returns: a Python int
gets_def(name, deft, s)
Parameters:
name: string
deft: string
s: std_string object
Returns: a Python int
gets_def_fixed(name, deft, s)
Parameters:
name: string
deft: string
s: std_string object
Returns: a Python int
gets_fixed(name, s)
Parameters:
name: string
s: std_string object
Returns: a Python int
gets_var(name, s)
Parameters:
name: string
s: std_string object
Returns: a Python int
gets_vec_copy(name, s)
Parameters:
name: string
Returns: a Python int
has_write_access()
Returns: a Python boolean
property min_compr_size

Property of type ctypes.c_size_t

open(fname, write_access=False, err_on_fail=True)
Parameters:
fname: string
write_access =false: bool
err_on_fail =true: bool
open_or_create(fname)
Parameters:
fname: string
set_szt(name, u)
Parameters:
name: string
u: size_t
set_szt_ten(name, t)
Parameters:
name: string
t: tensor_size_t object
Returns: a Python int
set_szt_vec(name, v)
Parameters:
name: string
Returns: a Python int
setc(name, c)
Parameters:
name: string
c: char
setd(name, d)
Parameters:
name: string
d: double
setd_mat_copy(name, m)
Parameters:
name: string
m: ublas_matrix object
Returns: a Python int
setd_ten(name, t)
Parameters:
name: string
t: tensor object
Returns: a Python int
setd_vec(name, v)
Parameters:
name: string
v: std_vector object
Returns: a Python int
seti(name, i)
Parameters:
name: string
i: int
seti_mat_copy(name, m)
Parameters:
name: string
Returns: a Python int
seti_ten(name, t)
Parameters:
name: string
t: tensor_int object
Returns: a Python int
seti_vec(name, v)
Parameters:
name: string
v: std_vector_int object
Returns: a Python int
sets(name, s)
Parameters:
name: string
s: string
sets_fixed(name, s)
Parameters:
name: string
s: string
sets_vec_copy(name, s)
Parameters:
name: string
Returns: a Python int

Class acol_manager

class o2sclpy.acol_manager(link, pointer=0)

Python interface for O2scl class acol_manager, See https://awsteiner.org/code/o2scl/html/class/acol_manager.html .

__init__(link, pointer=0)

Init function for class acol_manager

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class acol_manager

__copy__()

Shallow copy function for class acol_manager

Returns: acol_manager object

property char_obj

Property of type ctypes.c_char

command_add(new_type)
Parameters:
new_type: string
command_del(ltype)
Parameters:
ltype: string
property double_obj

Property of type ctypes.c_double

get_cl()

Get object of type cli

get_color_spec()

Get object of type std::string

get_command_color()

Get object of type std::string

get_cont_obj()

Get object of type std::vector

get_def_args()

Get object of type std::string

get_default_color()

Get object of type std::string

get_doublev_obj()

Get object of type std::vector

get_env_var_name()

Get object of type std::string

get_exec_color()

Get object of type std::string

get_help_color()

Get object of type std::string

get_hist_2d_obj()

Get object of type hist_2d

get_hist_obj()

Get object of type hist

get_intv_obj()

Get object of type std::vector

get_param_color()

Get object of type std::string

get_pdma_obj()

Get object of type prob_dens_mdim_amr

get_pdmg_obj()

Get object of type prob_dens_mdim_gaussian

get_size_tv_obj()

Get object of type std::vector

get_string_obj()

Get object of type std::string

get_stringv_obj()

Get object of type std::vector

get_table3d_obj()

Get object of type table3d

get_table_obj()

Get object of type table_units

get_tensor_grid_obj()

Get object of type tensor_grid

get_tensor_int_obj()

Get object of type tensor

get_tensor_obj()

Get object of type tensor

get_tensor_size_t_obj()

Get object of type tensor

get_type()

Get object of type std::string

get_type_color()

Get object of type std::string

get_ug_obj()

Get object of type uniform_grid

get_url_color()

Get object of type std::string

get_vvdouble_obj()

Get object of type std::vector

get_vvstring_obj()

Get object of type std::vector

help_found(arg1, arg2)
Parameters:
arg1: string
arg2: string
Returns: a Python boolean
property int_obj

Property of type ctypes.c_int

parse_vec_string(args)
Parameters:
args: std_vector_string object
run_empty()
Returns: a Python int
set_cl(value)

Set object of type cli

set_color_spec(value)

Set object of type std::string

set_command_color(value)

Set object of type std::string

set_cont_obj(value)

Set object of type std::vector

set_def_args(value)

Set object of type std::string

set_default_color(value)

Set object of type std::string

set_doublev_obj(value)

Set object of type std::vector

set_env_var_name(value)

Set object of type std::string

set_exec_color(value)

Set object of type std::string

set_help_color(value)

Set object of type std::string

set_hist_2d_obj(value)

Set object of type hist_2d

set_hist_obj(value)

Set object of type hist

set_intv_obj(value)

Set object of type std::vector

set_param_color(value)

Set object of type std::string

set_pdma_obj(value)

Set object of type prob_dens_mdim_amr

set_pdmg_obj(value)

Set object of type prob_dens_mdim_gaussian

set_size_tv_obj(value)

Set object of type std::vector

set_string_obj(value)

Set object of type std::string

set_stringv_obj(value)

Set object of type std::vector

set_table3d_obj(value)

Set object of type table3d

set_table_obj(value)

Set object of type table_units

set_tensor_grid_obj(value)

Set object of type tensor_grid

set_tensor_int_obj(value)

Set object of type tensor

set_tensor_obj(value)

Set object of type tensor

set_tensor_size_t_obj(value)

Set object of type tensor

set_type(value)

Set object of type std::string

set_type_color(value)

Set object of type std::string

set_ug_obj(value)

Set object of type uniform_grid

set_url_color(value)

Set object of type std::string

set_vvdouble_obj(value)

Set object of type std::vector

set_vvstring_obj(value)

Set object of type std::vector

property size_t_obj

Property of type ctypes.c_size_t

validate_interp_type()
Returns: a Python int
property verbose

Property of type ctypes.c_int

Class cloud_file

class o2sclpy.cloud_file(link, pointer=0)

Python interface for O2scl class cloud_file, See https://awsteiner.org/code/o2scl/html/class/cloud_file.html .

__init__(link, pointer=0)

Init function for class cloud_file

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class cloud_file

__copy__()

Shallow copy function for class cloud_file

Returns: cloud_file object

property allow_curl

Property of type ctypes.c_bool

property allow_wget

Property of type ctypes.c_bool

get_file(file, url, dir='')
Parameters:
file: string
url: string
dir =””: string
Returns: a Python int
get_file_hash(file, url, hash='', dir='')
Parameters:
file: string
url: string
hash =””: string
dir =””: string
Returns: a Python int
property hash_type

Property of type ctypes.c_int

hdf5_open(hf, file, url, dir='')
Parameters:
hf: hdf_file object
file: string
url: string
dir =””: string
Returns: a Python int
hdf5_open_hash(hf, file, url, hash='', dir='')
Parameters:
hf: hdf_file object
file: string
url: string
hash =””: string
dir =””: string
Returns: a Python int
property throw_on_fail

Property of type ctypes.c_bool

property verbose

Property of type ctypes.c_int

Function hdf_input_table

o2sclpy.hdf_input_table(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: table object
name: string

Function hdf_input_n_table

o2sclpy.hdf_input_n_table(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: table object
name: std::string object

Function hdf_output_table

o2sclpy.hdf_output_table(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: table object
name: string

Function hdf_input_table_units

o2sclpy.hdf_input_table_units(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: table_units object
name: string

Function hdf_input_n_table_units

o2sclpy.hdf_input_n_table_units(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: table_units object
name: std::string object

Function hdf_output_table_units

o2sclpy.hdf_output_table_units(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: table_units object
name: string

Function hdf_input_table3d

o2sclpy.hdf_input_table3d(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: table3d object
name: string

Function hdf_input_n_table3d

o2sclpy.hdf_input_n_table3d(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: table3d object
name: std::string object

Function hdf_output_table3d

o2sclpy.hdf_output_table3d(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: table3d object
name: string

Function hdf_input_uniform_grid

o2sclpy.hdf_input_uniform_grid(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: uniform_grid object
name: string

Function hdf_input_n_uniform_grid

o2sclpy.hdf_input_n_uniform_grid(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: uniform_grid object
name: std::string object

Function hdf_output_uniform_grid

o2sclpy.hdf_output_uniform_grid(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: uniform_grid object
name: string

Function hdf_input_tensor_grid

o2sclpy.hdf_input_tensor_grid(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: tensor_grid object
name: string

Function hdf_input_n_tensor_grid

o2sclpy.hdf_input_n_tensor_grid(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: tensor_grid object
name: std::string object

Function hdf_output_tensor_grid

o2sclpy.hdf_output_tensor_grid(link, hf, t, name)
Parameters:
link linker object
hf: hdf_file object
t: tensor_grid object
name: string

Function hdf_input_vector_contour_line

o2sclpy.hdf_input_vector_contour_line(link, hf, v, name)
Parameters:
link linker object
hf: hdf_file object
v: std::vector object
name: string

Function hdf_input_n_vector_contour_line

o2sclpy.hdf_input_n_vector_contour_line(link, hf, v, name)
Parameters:
link linker object
hf: hdf_file object
v: std::vector object
name: std::string object

Function hdf_output_vector_contour_line

o2sclpy.hdf_output_vector_contour_line(link, hf, v, name)
Parameters:
link linker object
hf: hdf_file object
v: std::vector object
name: string

Function value_spec

o2sclpy.value_spec(link, spec, d, verbose, err_on_fail)
Parameters:
link linker object
spec: string
d: double
verbose: int
err_on_fail: bool
Returns: ctypes.c_int object

Function vector_spec

o2sclpy.vector_spec(link, spec, v, verbose, err_on_fail)
Parameters:
link linker object
spec: string
v: std::vector object
verbose: int
err_on_fail: bool
Returns: ctypes.c_int object

Function strings_spec

o2sclpy.strings_spec(link, spec, v, verbose, err_on_fail)
Parameters:
link linker object
spec: string
v: std::vector object
verbose: int
err_on_fail: bool
Returns: ctypes.c_int object

Function vector_spec_v

o2sclpy.vector_spec_v(link, spec)
Parameters:
link linker object
spec: string
Returns: std_vector object

Function mult_vector_spec

o2sclpy.mult_vector_spec(link, spec, v, use_regex, verbose, err_on_fail)
Parameters:
link linker object
spec: string
v: std::vector object
use_regex: bool
verbose: int
err_on_fail: bool
Returns: ctypes.c_int object