SMArt package¶
Subpackages¶
- SMArt.alchemy package
- SMArt.graph package
- SMArt.local_config package
- SMArt.md package
- SMArt.tests package
Submodules¶
SMArt.geometry module¶
-
SMArt.geometry.
add_ring_path_3D
(path2add, coord_df, anchor_point, temp_v, new_ap, v_fact, **kwargs)[source]¶
-
SMArt.geometry.
add_ring_path_simple
(path2add, coord_df, anchor_point, temp_v, new_ap, v_fact, **kwargs)[source]¶
SMArt.incl module¶
-
class
SMArt.incl.
DataDumping
[source]¶ Bases:
object
class providing pickle of yaml dump functionality
-
dump
(f_path, dump_format='pickle', **kwargs)[source]¶ dumps data in a file :param f_path: :param dump_format: (‘pickle’, ‘yaml’) :param kwargs:
mode: same as file open mode prep4dump - additional function to call before dumping post_dump_load - additional function to call after dumping (usually opposite from prep4dump) other kwargs from SMArt.incl.FileHandler
- Returns
-
-
class
SMArt.incl.
Defaults
[source]¶ Bases:
SMArt.incl.__VersionCompatibility
- takes care of default values:
normal defaults (instance based), where each instance is independent
class defaults where each instance inherit from the class, so change affects all instances
-
class
SMArt.incl.
FileHandler
(f_path, write=False, bck_num=False, pre=False, suf=False, flag_bck=True, **kwargs)[source]¶ Bases:
SMArt.incl.Defaults
-
class
SMArt.incl.
FileStream
(f_path, write=False, bck_num=False, pre=False, suf=False, flag_bck=True, **kwargs)[source]¶ Bases:
SMArt.incl.FileHandler
-
parse_line
(l)¶ removes comments
-
-
class
SMArt.incl.
GeneralContainer
[source]¶ Bases:
object
-
add2container
(item, replace=None, create=False, container_name=None, db_type=<class 'collections.OrderedDict'>, **kwargs)[source]¶ adds an item to a container, container name comes from the item, but can be passed as a variable kwargs: list_index - if the container is a list, the item will get inserted to the given index
item_id - can be passed if the item doesnt have its own it replace = (-1, 0, 1) -1 used to ignore if an item is already in the container, 0 raises an error flag_find_next_id
-
find_next_code
(container_name, c=1, pref=None, suf=None, create=False, **kwargs)[source]¶ finds the next available code in a dict (of e.g. bonds) :param kwargs:
id_type - defines the type
- Returns
-
get_container
(container_name, create=False, db_type=<class 'collections.OrderedDict'>, **kwargs)[source]¶ gets the container by the name kwargs: flag_item - searches for the container name from the item (e.g. flag_item = Bond())
flag_class - searches for the container name from the class (e.g. flag_item = Bond) flag_item and flag_class finds the container name that is usually defined from container2write pre_containers - list of pre_containers (e.g. top.ff with cont_name = bonds gives top.ff.bonds) cont_pref cont_suf
-
-
class
SMArt.incl.
StringStream
(s=None)[source]¶ Bases:
SMArt.incl.Defaults
-
f
= <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>¶
-
parse_line
(l)¶ removes comments
-
SMArt.mp_fnc module¶
Module contents¶
SimulationsModellingArt