Defaults
Tessif’s defaults.
defaults is a tessif subpackage providing
frequently needed defaults. Everything loosely associated with fallback
values as well as filter and sorting templates is aggregated here.
- tessif.frused.defaults.nxgrph_node_shapes = {'bus': 'o', 'commodity_source': 'o', 'connector': 'o', 'default_source': 'o', 'sink': '8', 'solar': 's', 'storage': 's', 'transformer': '8', 'wind': 'h'}
nxgrphnode shape visualization defaults.
- tessif.frused.defaults.dcgrph_node_shapes = {'bus': 'ellipse', 'commodity_source': 'round-rectangle', 'connector': 'rectangle', 'default_source': 'round-rectangle', 'sink': 'ellipse', 'solar': 'round-diamond', 'storage': 'round-hexagon', 'transformer': 'round-octagon', 'wind': 'diamond'}
dcgrphnode shape visualization defaults.
- tessif.frused.defaults.nxgrph_visualize_defaults = {'edge_arrowsize': 7, 'edge_arrowstyle': 'simple', 'edge_cmap': <matplotlib.colors.LinearSegmentedColormap object>, 'edge_color': 'black', 'edge_labels': None, 'edge_len': 1.0, 'edge_minimum_grey': 0.15, 'edge_minimum_weight': 0.1, 'edge_minimum_width': 0.1, 'edge_vmax': 1.0, 'edge_vmin': 0.0, 'edge_width': 1, 'legend_bbox_to_anchor': (1.0, 1), 'legend_borderaxespad': 0, 'legend_labelspacing': 1, 'legend_loc': 'best', 'legend_title': None, 'node_alpha': 1.0, 'node_color': '#AFAFAF', 'node_color_map': ['#AFAFAF'], 'node_fill_size': 3000, 'node_font_size': 11, 'node_font_weight': 'light', 'node_labels': None, 'node_minimum_size': 300.0, 'node_shape': 'o', 'node_size': 3000, 'node_variable_size_scaling': 0.5}
nxgrphdrawing defaults.
- tessif.frused.defaults.dcgrph_visualize_defaults = {'edge_arrow_color': 'black', 'edge_arrowsize': 1, 'edge_arrowstyle': 'triangle', 'edge_color': 'black', 'edge_dot_repl_pattern': [6, 6], 'edge_labels': None, 'edge_linestyle': 'solid', 'edge_minimum_grey': 0.15, 'edge_minimum_weight': 0.1, 'edge_minimum_width': 0.5, 'edge_style': 'bezier', 'edge_width': 7, 'edge_width_basic': 1, 'node_border_color': 'black', 'node_border_style': None, 'node_border_width': 0, 'node_color': '#AFAFAF', 'node_fill_border_width': 1.5, 'node_font_size': 15, 'node_font_weight': 550, 'node_label_position': 'center', 'node_labels': None, 'node_minimum_size': 1, 'node_shape': 'ellipse', 'node_size': 90, 'node_variable_size': 40}
dcgrphdrawing defaults.
- tessif.frused.defaults.nxgrph_visualize_tags = AttributeGroupings(node='node_', edge='edge_', legend='legend_')
tessif-visualize.nxgrphattribute tags. UsingAttributeGroupingsfor sub categorization as well as easy to maintain and expand code.Currently used tags:
- tessif.frused.defaults.nxgrph_visualize_xcptns = AttributeGroupings(node=['node_size', 'node_color', 'node_shape', 'node_fill_size'], edge=['edge_labels', 'edge_color', 'edge_vmin', 'edge_vmax', 'edge_cmap'], legend=[])
tessif-visualize.nxgrphfilter exceptions. UsingAttributeGroupingsfor sub categorization as well as easy to maintain and expand code.Currently used exceptions:
- tessif.frused.defaults.nx_label_kwargs = {'edge_labels': ['ax', 'alpha', 'edge_labels', 'label_pos', 'font_size', 'font_color', 'font_weight', 'font_family', 'bbox', 'clip_on', 'horizontalalignment', 'verticalalignment'], 'edges': ['edglist', 'width', 'edge_color', 'style', 'alpha', 'edge_cmap', 'edge_vmin', 'edge_vmax', 'ax', 'arrows', 'arrowstyle', 'arrowsize', 'connectionstyle', 'label', 'min_source_margin', 'min_target_margin', 'node_shape', 'node_size', 'nodelist'], 'labels': ['labels', 'font_size', 'font_color', 'font_family', 'font_weight', 'alpha', 'horizontalalignment', 'verticalalignment', 'ax'], 'nodes': ['ax', 'nodelist', 'node_size', 'node_fill_size', 'node_color', 'node_shape', 'alpha', 'cmap', 'vmin', 'vmax', 'linewidts', 'edgecolors', 'label']}
Registered
nxgrph.draw_graphkey word arguments keyed by respective sub drawing utility name. Used for filtering out incompatible key word arguments. Explicitly stated here for easily maintained and expanded code.Currently used exceptions:
- tessif.frused.defaults.energy_system_nodes = {'accumulated_maximum': inf, 'accumulated_minimum': 0.0, 'active': 1, 'already_installed': 0.0, 'back_pressure': False, 'carrier': None, 'characteristic_value': None, 'chp_back_pressure': None, 'chp_efficiency': {}, 'component': None, 'costs_for_being_active': 0.0, 'efficiency': 1.0, 'el_efficiency_wo_dist_heat': MinMax(min=None, max=None), 'emissions': 0.0, 'enthalpy_loss': MinMax(min=None, max=None), 'exogenously_set': False, 'exogenously_set_value': 0, 'expandable': False, 'expansion_costs': 0.0, 'final_soc': None, 'fine_region': 'Default Region', 'fixed_expansion_ratios': True, 'flow_costs': 0.0, 'gain_rate': 0.0, 'ideal': False, 'initial_soc': 0.0, 'initial_status': 1, 'input': None, 'installed_capacity': 0.0, 'interfaces': None, 'latitude': 0.0, 'longitude': 0.0, 'loss_rate': 0.0, 'maximum': inf, 'maximum_efficiency': 1.0, 'maximum_expansion': inf, 'maximum_flow_rate': inf, 'maximum_shutdowns': inf, 'maximum_startups': inf, 'milp': False, 'min_condenser_load': None, 'minimum': 0.0, 'minimum_downtime': 0, 'minimum_efficiency': 0.01, 'minimum_expansion': 0.0, 'minimum_flow_rate': 0.0, 'minimum_uptime': 0, 'name': 'unspecified', 'negative_gradient': inf, 'negative_gradient_costs': 0.0, 'node_type': None, 'number_of_connections': 1, 'output': None, 'positive_gradient': inf, 'positive_gradient_costs': 0.0, 'power_loss_index': None, 'power_wo_dist_heat': MinMax(min=None, max=None), 'region': None, 'sector': None, 'shutdown_costs': 0.0, 'startup_costs': 0.0, 'storage_capacity': 0.0, 'timeseries': None, 'unspecified': 'Unspecified', 'variable_capacity': None}
Fallback defaults for creating energy system nodes.
- tessif.frused.defaults.registered_component_types = {'bus': ('bus',), 'connector': ('connector', 'link', 'line', 'connection'), 'sink': ('sink', 'demand', 'export', 'excess'), 'source': ('source', 'renewables', 'export', 'import', 'backup', 'commodity'), 'storage': ('storage', 'generic_storage'), 'transformer': ('transformer', 'mimo_transformer')}
Default energy system component identifiers and all types associated with them.
Used to
reorderan energy system mapping duringparsing.Currently registered component types and their identifiers.
- tessif.frused.defaults.addon_component_types = {'generic_chp': ('generic_chp',), 'siso_nonlinear_transformer': ('offset_transformer', 'siso_nonlinear_transformer'), 'sito_flex_transformer': ('sito_flex_transformer',)}
Added speciality energy system component identifiers and types associated with them.
Currently registered component types and their identifiers as added components.
Note
Expand this dictionary when adding new speciality components that are not quite parseable using tessif’s ESSMOS plugins but where a specialised parsers exists or can be added.
- tessif.frused.defaults.registered_essmos = {'cllp': ['CALIOPE', 'CALLIOPE', 'Caliope', 'Calliope', 'Cllp', 'Clp', 'caliope', 'calliope', 'cllp', 'clp'], 'fine': ['FINE', 'Fine', 'Fn', 'fine', 'fn'], 'omf': ['OMF', 'Oemof', 'Omf', 'oemof', 'omf'], 'ppsa': ['PPSA', 'PYPSA', 'Ppsa', 'PyPSA', 'PyPsa', 'Pyppsa', 'Pypsa', 'ppsa', 'pypsa']}
Registered Energy Supply System Modelling and Optimization Software (ESSMOS) and their recognized spelling variations.
See also
SupportedESSMOS
- tessif.frused.defaults.registered_plugins = {'calliope': 'tessif-calliope-0-6-6post1', 'calliope-0-6-6post1': 'tessif-calliope-0-6-6post1', 'calliope-latest': 'tessif-calliope-0-6-6post1', 'cllp': 'tessif-calliope-0-6-6post1', 'fine': 'tessif-fine-2-2-2', 'fine-2-2-2': 'tessif-fine-2-2-2', 'fine-latest': 'tessif-fine-2-2-2', 'fn': 'tessif-fine-2-2-2', 'oemof': 'tessif-oemof-4-4', 'oemof-4.4': 'tessif-oemof-4-4', 'omeof-latest': 'tessif-oemof-4-4', 'omf': 'tessif-oemof-4-4', 'ppsa': 'tessif-pypsa-0-19-3', 'pypsa': 'tessif-pypsa-0-19-3', 'pypsa-0-19-3': 'tessif-pypsa-0-19-3', 'pypsa-latest': 'tessif-pypsa-0-19-3', 'tessif-calliope-0-6-6post1': 'tessif-calliope-0-6-6post1', 'tessif-fine-2-2-2': 'tessif-fine-2-2-2', 'tessif-oemof-4-4': 'tessif-oemof-4-4', 'tessif-pypsa-0-19-3': 'tessif-pypsa-0-19-3'}
Registered Energy Supply System Modelling and Optimization Software (ESSMOS) and their recognized spelling variations.