Skip to content

Commit

Permalink
<0.005
Browse files Browse the repository at this point in the history
  • Loading branch information
GBenedett committed Dec 4, 2023
1 parent c4a264f commit 3d7a708
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ceasiompy/CPACS2SUMO/cpacs2sumo.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,17 +305,17 @@ def convert_cpacs_to_sumo(cpacs_path, cpacs_out_path):
* fus_transf.scaling.z
)

# if body_frm_height < 0.01:
# body_frm_height = 0.01
if body_frm_height < 0.005:
body_frm_height = 0.005
body_frm_width = (
prof_size_y
* 2
* elem_transf.scaling.y
* sec_transf.scaling.y
* fus_transf.scaling.y
)
# if body_frm_width < 0.01:
# body_frm_width = 0.01
if body_frm_width < 0.005:
body_frm_width = 0.005

# Convert the profile points in the SMX format
prof_str = ""
Expand Down Expand Up @@ -1027,8 +1027,8 @@ def convert_cpacs_to_sumo(cpacs_path, cpacs_out_path):
frame_xpath = body_xpath + "/BodyFrame[" + str(i_sec + 1) + "]"

diam = (ycontours[i_sec] + zsectransl) * 2
# if diam < 0.01:
# diam = 0.01
if diam < 0.005:
diam = 0.005

sumo.addTextAttribute(
frame_xpath, "center", sumo_str_format(xcontours[i_sec], 0, 0)
Expand Down Expand Up @@ -1067,8 +1067,8 @@ def convert_cpacs_to_sumo(cpacs_path, cpacs_out_path):
frame_xpath = body_xpath + "/BodyFrame[" + str(i_sec + 1) + "]"

diam = (ycontours[i_sec] + zsectransl) * 2
# if diam < 0.01:
# diam = 0.01
if diam < 0.005:
diam = 0.005

sumo.addTextAttribute(
frame_xpath, "center", sumo_str_format(xcontours[i_sec], 0, 0)
Expand Down

0 comments on commit 3d7a708

Please sign in to comment.