leconfig package¶
Submodules¶
leconfig.leconfig module¶
Analyzis Editor static parameters
- class leconfig.leconfig.LEConfig¶
Bases:
object
Static data class
- classmethod add_region(color, name, dim, step, boundary, not_used)¶
Add region
- classmethod add_shapes_to_region(is_fracture, layer_id, layer_name, topology_idx, regions)¶
Add shape to region
- classmethod changed()¶
is file changed
- config = <leconfig.leconfig._Config object>¶
Serialized variables
- classmethod confront_file_timestamp()¶
Compare file timestamp with file time and if is diferent show dialog, and reload file content. :return: if file is reloaded
- curr_file = None¶
Name of open file
- curr_file_timestamp = None¶
Timestamp of opened file, if editor text is imported or new timestamp is None
- diagram = None¶
Current diagram data
- classmethod diagram_id()¶
Return current diagram id
- diagrams = []¶
List of diagram data
- geomop_root = '/home/jb/workspace/GeoMop/src'¶
Path to the root directory of the GeoMop installation.
- classmethod get_curr_diagram()¶
Get id of diagram that is edited.
- classmethod get_curr_surfaces()¶
Get current surface id from surface panel
- static get_current_view(location)¶
Return current view
- classmethod get_shapes_from_region(is_fracture, layer_id)¶
Get shapes from region
- classmethod get_shortcut(name)¶
Locate a keyboard shortcut by its action name.
- Parameters
name (str) – name of the shortcut
- Returns
the assigned shortcut
- Return type
helpers.keyboard_shortcuts.KeyboardShortcut
orNone
- history = None¶
History for current geometry data
- classmethod init()¶
Init class with static method
- classmethod insert_diagrams(diagrams, id, oper)¶
Insert diagrams after set diagram and move topologies accoding oper
- classmethod insert_diagrams_copies(dup, oper)¶
Insert diagrams after set diagram and move topologies accoding oper
- layer_heads = None¶
- layers = None¶
Layers structure
- le_serializer = None¶
Data from geometry file
- logger = <Logger GeoMop-LayerEditor (WARNING)>¶
root context logger
- main_window = None¶
parent of dialogs
- classmethod make_middle_diagram(dup)¶
return interpolated new diagram in set elevation
- classmethod new_file()¶
Open new empty file
- classmethod open_file(file)¶
save file name and timestamp
- classmethod open_recent_file(file_name)¶
read file from recent files
return: if file have good format (boolean)
- classmethod open_shape_file(file)¶
Open and add shape file
- classmethod reinit()¶
Release all diagram data
- classmethod reload_surfaces(id=None)¶
Reload surface panel
- classmethod remove_and_save_diagram(idx)¶
Remove diagram from list and save it in history variable
- classmethod save_file(file=None)¶
save to json file
- classmethod set_curr_diagram(i)¶
Set i diagram as edited. Return old diagram id
- classmethod set_main(main_window)¶
Init class wit static method