pswamp.gui.alarms.views.islanding

Attributes

config

Classes

IslandingResultKeeper

General application template.

IslandingAlarmView

Module Contents

class pswamp.gui.alarms.views.islanding.IslandingResultKeeper(*args, **kwargs)

Bases: pswamp.app_templates.snapshot_app.SnapshotApp

General application template.

New applications could be defined by inheriting from this template, and defining the “run_analysis” method.

Parameters:
  • io – Input/output object (normally connects to Kafka)

  • eval_freq – How often the evaluation of the application should be run (e.g., the part in “run_analysis”)

  • t_end – The application will stop running when this time is reached (but can be restarted)

  • t_start – The application will ask the io object (first argument) to search for t_start when initializing.

  • app_name – Name for the application.

  • input_decoder – This determines how the input is read/decoded (if no decoder is specified, a decoder for PMU data frames will be used.)

  • decoder_kwargs – Kwargs for initalizing the “input_decoder”.

  • report_status – If enabled, status messages will be emitted.

  • io_kwargs – Any other kwargs will be forwarded to the io object.

storage = []
get_input_data_rate()
get_time_stamp_from_frame(data_frame)
run_analysis(data_frame)
get_result(next_data_frame)
class pswamp.gui.alarms.views.islanding.IslandingAlarmView(config, *args, **kwargs)

Bases: pswamp.gui.alarms.views.interactive.InteractiveAlarmView

initialized = False
simplified_alarm_views
islanding_results
islanding_data_rate
pmu_data_rate
col_idx_freq
col_idx_mag = []
col_idx_ang = []
islanding_res_thread
phasor_ax
voltage_phasor_plots = []
grid_view_islanding_layers
grid_view_islanding_line_layers
define_layout()
update_plots(value)
close_view()
pswamp.gui.alarms.views.islanding.config