Skip to content

Commit

Permalink
Fix codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys committed Jan 17, 2025
1 parent 79276d1 commit 9d0a80d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,17 +443,18 @@ def main(extension_args):
input_file_1meter = Path(original.toolkit_directory) / "Shielding_Sphere1meter.csv"

Check warning on line 443 in src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py#L443

Added line #L443 was not covered by tests

list_data = [[frequency_units, "V_per_meter"]]

Check warning on line 445 in src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py#L445

Added line #L445 was not covered by tests
for cont in range(len(frequencies)):
list_data.append([frequencies[cont], shielding_1meter_db[cont]])

for idx, frequency in enumerate(frequencies):
list_data.append([frequency, shielding_1meter_db[idx]])

Check warning on line 448 in src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py#L447-L448

Added lines #L447 - L448 were not covered by tests

write_csv(str(input_file_1meter), list_data, delimiter=",")

Check warning on line 450 in src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py#L450

Added line #L450 was not covered by tests

# Sphere 3 meters
input_file_3meters = Path(original.toolkit_directory) / "Shielding_Sphere3meters.csv"

Check warning on line 453 in src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py#L453

Added line #L453 was not covered by tests

list_data = [[frequency_units, "V_per_meter"]]
for cont in range(len(frequencies)):
list_data.append([frequencies[cont], shielding_3meters_db[cont]])
for idx, frequency in enumerate(frequencies):
list_data.append([frequency, shielding_3meters_db[idx]])

Check warning on line 457 in src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py#L455-L457

Added lines #L455 - L457 were not covered by tests

write_csv(str(input_file_3meters), list_data, delimiter=",")

Check warning on line 459 in src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/workflows/hfss/shielding_effectiveness.py#L459

Added line #L459 was not covered by tests

Expand Down

0 comments on commit 9d0a80d

Please sign in to comment.