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)
output_file = analysis.get_output_file()
GRLWeapAnalysis.execute needs to be mocked within
the context of (automated) testing.