Skip to content
Snippets Groups Projects
Commit 374a02b4 authored by baigner's avatar baigner
Browse files

VISTOMS update: Full definition of an MDO problem is now possible within...

VISTOMS update: Full definition of an MDO problem is now possible within VISTOMS. Still needs some bug fixing!


Former-commit-id: 99a32f042982305d3f20e4e36e37a14fdc86ebec
parent 05e11173
No related branches found
No related tags found
No related merge requests found
Pipeline #192781 canceled
......@@ -457,6 +457,29 @@ def format_string_for_vistoms(string, prefix='', suffix=''):
return str(prefix) + string + str(suffix)
def format_string_for_vistoms_new(string, prefix='', suffix=''):
"""
Function to format a string such that it can be used in VISTOMS.
:param string: string to be formatted
:type string: str
:param prefix: prefix to be placed in front of the string
:type prefix: basestring
:param suffix: suffix to be appended to the string
:type suffix: basestring
:return: formatted string
:rtype: basestring
"""
replacement_list = ((' ', ''), ('_', '-'))
for repl in replacement_list:
string = string.replace(repl[0], repl[1])
string = re.sub("[\[].*?[\]]", "", string)
string = string.split('.')[0]
return str(prefix) + string + str(suffix)
def format_string_for_latex(string, prefix='', suffix=''):
"""
Function to format a string such that it can be used in LaTeX.
......
This diff is collapsed.
.panel-body {
background-color: white;
max-width: 1000px;
max-width: 1100px;
max-height: 1000px;
overflow-x: auto;
overflow-y: auto
......@@ -213,6 +213,7 @@ pointer-events: none;
div.treeDiv {
position: absolute;
background-color: white;
}
div.contextDiv {
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment