Skip to main content

GRLWEAP

VIKTOR's GRLWEAP integration requires a specific GRLWEAP worker which can be downloaded here.

Analyzing a GRLWEAP model in VIKTOR can be done using the GRLWeapAnalysis class (worker required). No binding is provided by VIKTOR for this module, which means that the input file has to be generated manually:

from viktor.external.grlweap import GRLWeapAnalysis

# Generate the input GWT file.
input_file = ...

# Run the analysis and obtain the output file.
analysis = GRLWeapAnalysis(input_file)
analysis.execute(timeout=10)
output_file = analysis.get_output_file()
caution

GRLWeapAnalysis.execute needs to be mocked within the context of (automated) testing.