File IO Module#
- class nexus.fileio.TextFile(filepath=None)[source]#
Bases:
DevBaseMethods
append(value)class_error(message[, header, exit, trace, ...])Report an error relating to a class.
close()error(message[, header, exit, trace])Report an error inside a class.
find(*a, **kw)first()keys()list(*keys)open_log(filepath)save([fpath])sorted_keys()warn(msg[, indent])Warning from inside a Nexus class.
add
add_optional
check_required
check_types
check_types_optional
class_get
class_has
class_items
class_keys
class_log
class_set
class_set_optional
class_set_single
class_warn
clear
close_log
copy
copy_from
copy_to
data_repr
delete
delete_optional
delete_required
dict
extract
extract_optional
flush
get
get_optional
get_path
get_required
inverse
items
last
lines
list_optional
load
log
move
move_from
move_from_optional
move_to
move_to_optional
not_implemented
obj
open
path_exists
random_key
read
read_byte
readline
readtokens
readtokensf
resize
rfind
seek
select_random
serial
set
set_optional
set_path
shallow_copy
size
tell
to_dict
to_obj
tokens
transfer_from
transfer_to
tree
tuple
values
write
write_byte
- class nexus.fileio.StandardFile(filepath=None)[source]#
Bases:
DevBaseMethods
append(value)class_error(message[, header, exit, trace, ...])Report an error relating to a class.
error(message[, header, exit, trace])Report an error inside a class.
first()keys()list(*keys)open_log(filepath)save([fpath])sorted_keys()warn(msg[, indent])Warning from inside a Nexus class.
add
add_optional
check_required
check_types
check_types_optional
check_valid
class_get
class_has
class_items
class_keys
class_log
class_set
class_set_optional
class_set_single
class_warn
clear
close_log
copy
copy_from
copy_to
data_repr
delete
delete_optional
delete_required
dict
extract
extract_optional
get
get_optional
get_path
get_required
inverse
is_valid
items
last
list_optional
load
log
move_from
move_from_optional
move_to
move_to_optional
not_implemented
obj
path_exists
random_key
read
read_text
select_random
serial
set
set_optional
set_path
shallow_copy
to_dict
to_obj
transfer_from
transfer_to
tree
tuple
validity_checks
values
write
write_text
- sftype = ''#
- class nexus.fileio.XsfFile(filepath=None, order=None)[source]#
Bases:
StandardFileMethods
append(value)change_units(in_unit, out_unit)class_error(message[, header, exit, trace, ...])Report an error relating to a class.
error(message[, header, exit, trace])Report an error inside a class.
first()incorporate_structure(structure)interpolate_plane(r1, r2, r3[, density, ...])keys()line_data(dim[, density])list(*keys)norm([density, vnorm])open_log(filepath)read_text(text[, order])remove_ghost([density])save([fpath])sorted_keys()warn(msg[, indent])Warning from inside a Nexus class.
add
add_density
add_optional
add_to_image
check_required
check_types
check_types_optional
check_valid
class_get
class_has
class_items
class_keys
class_log
class_set
class_set_optional
class_set_single
class_warn
clear
close_log
copy
copy_from
copy_to
data_repr
delete
delete_optional
delete_required
dict
dimension
extract
extract_optional
get
get_density
get_optional
get_path
get_required
has_animation
has_bands
has_data
has_structure
initialized
inverse
is_valid
items
last
line_plot
list_optional
load
log
move_from
move_from_optional
move_to
move_to_optional
not_implemented
obj
path_exists
random_key
read
select_random
serial
set
set_optional
set_path
shallow_copy
to_dict
to_obj
transfer_from
transfer_to
tree
tuple
validity_checks
values
write
write_band
write_coord
write_data
write_vec
- sftype = 'xsf'#
- filetypes = {'axsf', 'bxsf', 'xsf'}#
- periodicities = {'crystal', 'molecule', 'polymer', 'slab'}#
- dimensions = crystal int molecule int polymer int slab int #
- class nexus.fileio.PoscarFile(filepath=None)[source]#
Bases:
StandardFileMethods
append(value)class_error(message[, header, exit, trace, ...])Report an error relating to a class.
error(message[, header, exit, trace])Report an error inside a class.
first()keys()list(*keys)open_log(filepath)save([fpath])sorted_keys()warn(msg[, indent])Warning from inside a Nexus class.
add
add_optional
assign_defaults
check_required
check_types
check_types_optional
check_valid
class_get
class_has
class_items
class_keys
class_log
class_set
class_set_optional
class_set_single
class_warn
clear
close_log
copy
copy_from
copy_to
data_repr
delete
delete_optional
delete_required
dict
extract
extract_optional
get
get_optional
get_path
get_required
incorporate_xsf
inverse
is_valid
items
last
list_optional
load
log
move_from
move_from_optional
move_to
move_to_optional
not_implemented
obj
path_exists
random_key
read
read_text
select_random
serial
set
set_optional
set_path
shallow_copy
to_dict
to_obj
transfer_from
transfer_to
tree
tuple
validity_checks
values
write
write_text
- sftype = 'POSCAR'#
- class nexus.fileio.ChgcarFile(filepath=None)[source]#
Bases:
StandardFileMethods
append(value)class_error(message[, header, exit, trace, ...])Report an error relating to a class.
error(message[, header, exit, trace])Report an error inside a class.
first()keys()list(*keys)open_log(filepath)save([fpath])sorted_keys()warn(msg[, indent])Warning from inside a Nexus class.
add
add_optional
check_required
check_types
check_types_optional
check_valid
class_get
class_has
class_items
class_keys
class_log
class_set
class_set_optional
class_set_single
class_warn
clear
close_log
copy
copy_from
copy_to
data_repr
delete
delete_optional
delete_required
dict
extract
extract_optional
get
get_optional
get_path
get_required
incorporate_xsf
inverse
is_valid
items
last
list_optional
load
log
move_from
move_from_optional
move_to
move_to_optional
not_implemented
obj
path_exists
random_key
read
read_text
select_random
serial
set
set_optional
set_path
shallow_copy
to_dict
to_obj
transfer_from
transfer_to
tree
tuple
validity_checks
values
write
write_text
- sftype = 'CHGCAR'#