### ===================================================================================================================
### syntax_wrapper_diana
### ===================================================================================================================
# Copyright ©VIIA 2025
### ===================================================================================================================
### 1. Import modules
### ===================================================================================================================
# References for functions and classes in the rhdhv_fem package
from rhdhv_fem.fem_tools import fem_convert_integer_list_to_string_diana
### ===================================================================================================================
### 2. Function to convert list of items to syntax required for DIANA
### ===================================================================================================================
[docs]def syntax_wrapper_diana(func):
"""This function is used to work as a wrapper to change list output to string in DIANA syntax"""
def function_wrapper(*args, **kwargs):
return [fem_convert_integer_list_to_string_diana(input_list) for input_list in func(*args, **kwargs)]
return function_wrapper
### ===================================================================================================================
### 3. End of script
### ===================================================================================================================