Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added "DecadeCount" "OctaveCount" "ExponentialCount" in parametric sw… #3910

Merged
merged 3 commits into from
Dec 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions pyaedt/modules/DesignXPloration.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,8 @@
unit : str, optional
Variation units. Default is `None`.
variation_type : float or int
Variation Type. Admitted values are `"LinearCount"`, `"LinearStep"`, `"LogScale"`, `"SingleValue"`.
Variation Type. Admitted values are `"SingleValue", `"LinearCount"`, `"LinearStep"`, `"LogScale"`,
`"DecadeCount"`, `"OctaveCount"`, `"ExponentialCount"`.

Returns
-------
Expand All @@ -919,7 +920,13 @@
elif variation_type == "LinearStep":
sweep_range = "LIN {} {} {}".format(start_point, end_point, self._app.value_with_units(step, unit))
elif variation_type == "LogScale":
sweep_range = "DEC {} {} {}".format(start_point, end_point, self._app.value_with_units(step, unit))
sweep_range = "DEC {} {} {}".format(start_point, end_point, step)

Check warning on line 923 in pyaedt/modules/DesignXPloration.py

View check run for this annotation

Codecov / codecov/patch

pyaedt/modules/DesignXPloration.py#L923

Added line #L923 was not covered by tests
elif variation_type == "DecadeCount":
sweep_range = "DEC {} {} {}".format(start_point, end_point, step)

Check warning on line 925 in pyaedt/modules/DesignXPloration.py

View check run for this annotation

Codecov / codecov/patch

pyaedt/modules/DesignXPloration.py#L925

Added line #L925 was not covered by tests
elif variation_type == "OctaveCount":
sweep_range = "OCT {} {} {}".format(start_point, end_point, step)

Check warning on line 927 in pyaedt/modules/DesignXPloration.py

View check run for this annotation

Codecov / codecov/patch

pyaedt/modules/DesignXPloration.py#L927

Added line #L927 was not covered by tests
elif variation_type == "ExponentialCount":
sweep_range = "ESTP {} {} {}".format(start_point, end_point, step)

Check warning on line 929 in pyaedt/modules/DesignXPloration.py

View check run for this annotation

Codecov / codecov/patch

pyaedt/modules/DesignXPloration.py#L929

Added line #L929 was not covered by tests
elif variation_type == "SingleValue":
sweep_range = "{}".format(self._app.value_with_units(start_point, unit))
if not sweep_range:
Expand Down