Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GBenedett committed Jan 11, 2024
1 parent 73c9bed commit 7bfd49a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ceasiompy/EdgeRun/edgerun.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from ceasiompy.EdgeRun.func.edgeconfig import generate_edge_cfd_ainp
from ceasiompy.utils.ceasiomlogger import get_logger
from ceasiompy.utils.ceasiompyutils import (
get_reasonable_nb_cpu,
get_reasonable_nb_cpu,xed_cl_aeromap = cpacs.create_aeromap("aeroMap_fixedCL_SU2")
get_results_directory,
run_software,
)
Expand Down
2 changes: 1 addition & 1 deletion ceasiompy/EdgeRun/func/edgeconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def generate_edge_cfd_ainp(cpacs_path, cpacs_out_path, wkdir):
log.info("Configuration file for fixed CL calculation will be created.")

fixed_cl_aeromap = cpacs.create_aeromap("aeroMap_fixedCL_SU2")
fixed_cl_aeromap.description = f"AeroMap created for SU2 fixed CL value of {target_cl}"
# fixed_cl_aeromap.description = f"AeroMap created for SU2 fixed CL value of {target_cl}"

mach = get_value_or_default(cpacs.tixi, RANGE_XPATH + "/cruiseMach", 0.78)
alt = get_value_or_default(cpacs.tixi, RANGE_XPATH + "/cruiseAltitude", 12000)
Expand Down
10 changes: 4 additions & 6 deletions ceasiompy/EdgeRun/tests/test_edgerun_mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from pathlib import Path

# Add the ceasiompy module to the PYTHONPATH
ceasiompy_path = Path("/home/mengmeng/Documents/CEASIOMpy23/CEASIOMpy/ceasiompy")
sys.path.append(str(ceasiompy_path))
# ceasiompy_path = Path("/home/mengmeng/Documents/CEASIOMpy23/CEASIOMpy/ceasiompy")
# sys.path.append(str(ceasiompy_path))

# Now you can import and use the ceasiompy module
# import ceasiompy
Expand All @@ -47,9 +47,7 @@ class TestEdgeConfig(unittest.TestCase):

def test_generate_edge_cfd_ainp(self):
"""Test function for 'ceasiompy.EdgeRun.func.edgeconfig.py'."""
cpacs_path = Path(
"/home/mengmeng/Documents/CEASIOMpy23/CEASIOMpy/WKDIR/labARstraight_toolInput.xml"
)
cpacs_in_path = Path(MODULE_DIR / "ToolInput" / "ToolInput.xml")
cpacs_out_path = MODULE_DIR / "ToolOutput.xml"
wkdir = MODULE_DIR / "Results/Edge"

Expand All @@ -67,4 +65,4 @@ def test_generate_edge_cfd_ainp(self):
print("Test configfile.py")
print("To run test use the following command:")
print(">> pytest -v")
"""
"""

0 comments on commit 7bfd49a

Please sign in to comment.