HDF5 classes from O2scl¶
Class hdf_file¶
- class o2sclpy.hdf_file(pointer=0)¶
Python interface for O2scl class
hdf_file
, See https://awsteiner.org/code/o2scl/html/class/hdf_file.html .- __init__(pointer=0)¶
Init function for class hdf_file
Parameters:pointerctypes.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)¶
- file_list(verbose)¶
- Parameters:verbose:
int
- find_object_by_name(name, otype, use_regex=False, verbose=0)¶
- Parameters:name: byte arrayotype:
std_string
objectuse_regex =false:bool
verbose =0:int
Returns: a Python int
- find_object_by_pattern(pattern, otype, use_regex=False, verbose=0)¶
- Parameters:pattern: byte arrayotype:
std_string
objectuse_regex =false:bool
verbose =0:int
Returns: a Python int
- find_object_by_type(otype, name, use_regex=False, verbose=0)¶
- Parameters:otype: byte arrayname:
std_string
objectuse_regex =false:bool
verbose =0:int
Returns: a Python int
- get_szt(name)¶
- Parameters:name: byte arrayReturns: a Python int, a Python int
- get_szt_def(name, deft)¶
- Parameters:name: byte arraydeft:
size_t
Returns: a Python int, a Python int
- get_szt_ten(name, t)¶
- get_szt_vec(name, v)¶
- getc(name)¶
- Parameters:name: byte arrayReturns: a Python int, a Python obj
- getc_def(name, deft)¶
- Parameters:name: byte arraydeft:
char
Returns: a Python int, a Python obj
- getd(name)¶
- Parameters:name: byte arrayReturns: a Python int, a Python float
- getd_def(name, deft)¶
- Parameters:name: byte arraydeft:
double
Returns: a Python int, a Python float
- getd_mat_copy(name, m)¶
- getd_ten(name, t)¶
- getd_vec(name, v)¶
- geti(name)¶
- Parameters:name: byte arrayReturns: a Python int, a Python int
- geti_def(name, deft)¶
- Parameters:name: byte arraydeft:
int
Returns: a Python int, a Python int
- geti_mat_copy(name, m)¶
- geti_ten(name, t)¶
- geti_vec(name, v)¶
- gets(name, s)¶
- gets_def(name, deft, s)¶
- gets_def_fixed(name, deft, s)¶
- gets_fixed(name, s)¶
- gets_var(name, s)¶
- gets_vec_copy(name, s)¶
- 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: byte arraywrite_access =false:
bool
err_on_fail =true:bool
- open_or_create(fname)¶
- Parameters:fname: byte array
- set_szt(name, u)¶
- Parameters:name: byte arrayu:
size_t
- set_szt_ten(name, t)¶
- set_szt_vec(name, v)¶
- setc(name, c)¶
- Parameters:name: byte arrayc:
char
- setd(name, d)¶
- Parameters:name: byte arrayd:
double
- setd_mat_copy(name, m)¶
- setd_ten(name, t)¶
- setd_vec(name, v)¶
- seti(name, i)¶
- Parameters:name: byte arrayi:
int
- seti_mat_copy(name, m)¶
- seti_ten(name, t)¶
- seti_vec(name, v)¶
- sets(name, s)¶
- Parameters:name: byte arrays: byte array
- sets_fixed(name, s)¶
- Parameters:name: byte arrays: byte array
- sets_vec_copy(name, s)¶
Class acol_manager¶
- class o2sclpy.acol_manager(pointer=0)¶
Python interface for O2scl class
acol_manager
, See https://awsteiner.org/code/o2scl/html/class/acol_manager.html .- __init__(pointer=0)¶
Init function for class acol_manager
Parameters:pointerctypes.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: byte array
- command_del(ltype)¶
- Parameters:ltype: byte array
- property double_obj¶
Property of type
ctypes.c_double
- get_color_spec()¶
Get byte array object.
- get_command_color()¶
Get byte array object.
- get_cont_obj()¶
Get object of type
std::vector
- get_def_args()¶
Get byte array object.
- get_default_color()¶
Get byte array object.
- get_doublev_obj()¶
Get object of type
std::vector
- get_env_var_name()¶
Get byte array object.
- get_exec_color()¶
Get byte array object.
- get_help_color()¶
Get byte array object.
- get_intv_obj()¶
Get object of type
std::vector
- get_param_color()¶
Get byte array object.
- 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 byte array object.
- get_stringv_obj()¶
Get object of type
std::vector
- 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 byte array object.
- get_type_color()¶
Get byte array object.
- get_ug_obj()¶
Get object of type
uniform_grid
- get_url_color()¶
Get byte array object.
- get_vvdouble_obj()¶
Get object of type
std::vector
- get_vvstring_obj()¶
Get object of type
std::vector
- help_found(arg1, arg2)¶
- Parameters:arg1: byte arrayarg2: byte arrayReturns: 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_color_spec(value)¶
Set object from byte array
- set_command_color(value)¶
Set object from byte array
- set_cont_obj(value)¶
Set object of type
std::vector
- set_def_args(value)¶
Set object from byte array
- set_default_color(value)¶
Set object from byte array
- set_doublev_obj(value)¶
Set object of type
std::vector
- set_env_var_name(value)¶
Set object from byte array
- set_exec_color(value)¶
Set object from byte array
- set_help_color(value)¶
Set object from byte array
- set_intv_obj(value)¶
Set object of type
std::vector
- set_param_color(value)¶
Set object from byte array
- 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 from byte array
- set_stringv_obj(value)¶
Set object of type
std::vector
- 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 from byte array
- set_type_color(value)¶
Set object from byte array
- set_ug_obj(value)¶
Set object of type
uniform_grid
- set_url_color(value)¶
Set object from byte array
- 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(pointer=0)¶
Python interface for O2scl class
cloud_file
, See https://awsteiner.org/code/o2scl/html/class/cloud_file.html .- __init__(pointer=0)¶
Init function for class cloud_file
Parameters:pointerctypes.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: byte arrayurl: byte arraydir =””: byte arrayReturns: a Python int
- get_file_hash(file, url, hash='', dir='')¶
- Parameters:file: byte arrayurl: byte arrayhash =””: byte arraydir =””: byte arrayReturns: a Python int
- property hash_type¶
Property of type
ctypes.c_int
- hdf5_open(hf, file, url, dir='')¶
- Parameters:hf:
hdf_file
objectfile: byte arrayurl: byte arraydir =””: byte arrayReturns: a Python int
- hdf5_open_hash(hf, file, url, hash='', dir='')¶
- Parameters:hf:
hdf_file
objectfile: byte arrayurl: byte arrayhash =””: byte arraydir =””: byte arrayReturns: 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(hf, t, name)¶
Function hdf_input_n_table¶
- o2sclpy.hdf_input_n_table(hf, t, name)¶
Function hdf_output_table¶
- o2sclpy.hdf_output_table(hf, t, name)¶
Function hdf_input_table_units¶
- o2sclpy.hdf_input_table_units(hf, t, name)¶
Function hdf_input_n_table_units¶
- o2sclpy.hdf_input_n_table_units(hf, t, name)¶
Function hdf_output_table_units¶
- o2sclpy.hdf_output_table_units(hf, t, name)¶
Function hdf_input_table3d¶
- o2sclpy.hdf_input_table3d(hf, t, name)¶
Function hdf_input_n_table3d¶
- o2sclpy.hdf_input_n_table3d(hf, t, name)¶
Function hdf_output_table3d¶
- o2sclpy.hdf_output_table3d(hf, t, name)¶
Function hdf_input_uniform_grid¶
- o2sclpy.hdf_input_uniform_grid(hf, t, name)¶
Function hdf_input_n_uniform_grid¶
- o2sclpy.hdf_input_n_uniform_grid(hf, t, name)¶
Function hdf_output_uniform_grid¶
- o2sclpy.hdf_output_uniform_grid(hf, t, name)¶
Function hdf_input_tensor_grid¶
- o2sclpy.hdf_input_tensor_grid(hf, t, name)¶
Function hdf_input_n_tensor_grid¶
- o2sclpy.hdf_input_n_tensor_grid(hf, t, name)¶
Function hdf_output_tensor_grid¶
- o2sclpy.hdf_output_tensor_grid(hf, t, name)¶
Function hdf_input_vector_contour_line¶
- o2sclpy.hdf_input_vector_contour_line(hf, v, name)¶
Function hdf_input_n_vector_contour_line¶
- o2sclpy.hdf_input_n_vector_contour_line(hf, v, name)¶
Function hdf_output_vector_contour_line¶
- o2sclpy.hdf_output_vector_contour_line(hf, v, name)¶
Function value_spec¶
- o2sclpy.value_spec(spec, d, verbose, err_on_fail)¶
- Parameters:spec: stringd:
double
verbose:int
err_on_fail:bool
Returns:ctypes.c_int
object
Function vector_spec¶
- o2sclpy.vector_spec(spec, v, verbose, err_on_fail)¶
- Parameters:spec: stringv:
std::vector
objectverbose:int
err_on_fail:bool
Returns:ctypes.c_int
object
Function strings_spec¶
- o2sclpy.strings_spec(spec, v, verbose, err_on_fail)¶
- Parameters:spec: stringv:
std::vector
objectverbose:int
err_on_fail:bool
Returns:ctypes.c_int
object
Function vector_spec_v¶
- o2sclpy.vector_spec_v(spec)¶
- Parameters:spec: stringReturns:
std_vector
object
Function mult_vector_spec¶
- o2sclpy.mult_vector_spec(spec, v, use_regex, verbose, err_on_fail)¶
- Parameters:spec: stringv:
std::vector
objectuse_regex:bool
verbose:int
err_on_fail:bool
Returns:ctypes.c_int
object