diff --git a/examples/python_linked_multi_process_step/project_setup.py b/examples/python_linked_multi_process_step/project_setup.py index 51c91ca34..6daaab6c9 100644 --- a/examples/python_linked_multi_process_step/project_setup.py +++ b/examples/python_linked_multi_process_step/project_setup.py @@ -1,22 +1,17 @@ -# ---------------------------------------------------------- -# Copyright (C) 2021 by -# ANSYS Switzerland GmbH -# www.ansys.com -# -# Author(s): R.Walker -# ---------------------------------------------------------- +""" +Python example with multiple dependent tasks and linked files in between. +Author(s): R.Walker +""" import argparse import logging import os import random -import sys from ansys.rep.client import REPError from ansys.rep.client.jms import ( Client, File, - FitnessDefinition, FloatParameterDefinition, Job, JobDefinition, @@ -32,8 +27,7 @@ def main(client, num_task_definitions, num_jobs, start, inactive): - """Python project implementing multiple process steps and linkage of files between process steps""" - + """Create project with multiple dependent Python tasks and linked files in between.""" log.debug("=== Project") proj = Project( name=f"py_linked_{num_task_definitions}td", diff --git a/examples/python_two_bar_truss_problem/project_setup.py b/examples/python_two_bar_truss_problem/project_setup.py index 951dbc81d..e0f41059f 100644 --- a/examples/python_two_bar_truss_problem/project_setup.py +++ b/examples/python_two_bar_truss_problem/project_setup.py @@ -1,15 +1,12 @@ -# ---------------------------------------------------------- -# Copyright (C) 2019 by -# ANSYS Switzerland GmbH -# www.ansys.com -# -# Author(s): F.Negri -# ---------------------------------------------------------- +""" +Python tow-bar truss example. + +Author(s): F.Negri +""" import argparse import logging import os import random -import sys from ansys.rep.client import REPError from ansys.rep.client.jms import ( @@ -30,11 +27,12 @@ def main(client, num_jobs): - """Example of Python project implementing the Two-Bar Truss example - from R.L. Fox, Optimization Methods in Engineering Design, Addison Wesley, 1971 - See e.g. https://static1.squarespace.com/static/53eacd17e4b0588f78eb723c/t/586ea636d482e91c7a76bd61/1483646550748/Optimization+Methods+in+Engineering+Design.pdf """ + Create project solving a Two-Bar Truss problem with Python. + from R.L. Fox, Optimization Methods in Engineering Design, Addison Wesley, 1971 + See e.g. https://static1.squarespace.com/static/53eacd17e4b0588f78eb723c/t/586ea636d482e91c7a76bd61/1483646550748/Optimization+Methods+in+Engineering+Design.pdf + """ # noqa log.debug("=== Project") proj = Project( name="two_bar_truss_problem", display_name="Two-bar Truss Problem", priority=1, active=True