Skip to content

Commit

Permalink
Remove repeated modes from cyclic reader (#295)
Browse files Browse the repository at this point in the history
* remove repeated modes

* revert to ansys-sphinx-theme v0.9.9

* use latest sphinx and doc action v4.0.29
  • Loading branch information
akaszynski authored Aug 1, 2023
1 parent 25ffebb commit 08d704c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing-and-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: pyvista/setup-headless-display-action@v2

- name: Build project documentation
uses: ansys/actions/doc-build@v4
uses: ansys/actions/doc-build@v4.0.29
with:
dependencies: 'pandoc'
skip-dependencies-cache: true
Expand Down
5 changes: 0 additions & 5 deletions ansys/mapdl/reader/cyclic_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,6 @@ def _add_cyclic_properties(self):
mask_b = np.isclose(self.time_values, np.roll(self.time_values, -1))
self._is_repeated_mode = np.logical_or(mask_a, mask_b)

# should not have repeated modes at harmonic index N/2
self._is_repeated_mode[
self._resultheader["hindex"] == self.n_sector // 2
] = False

# edge case for single pair of repeated modes
if self._is_repeated_mode.size == 2 and self._is_repeated_mode.all():
self._repeated_index = np.array([1, 0])
Expand Down

0 comments on commit 08d704c

Please sign in to comment.