Skip to content

Commit

Permalink
CLN: Remove default name for a new axis
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Stevens-Haas committed Jan 5, 2024
1 parent 62d12ea commit 341f15c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pysindy/utils/axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ def remove_axis(self, axis: Union[Collection[int], int, None] = None):
new_axes[ax_dec_name].append(old_ax_dec - 1)
return self._compat_axes(new_axes)

# TODO: delete default kwarg value
def insert_axis(self, axis: Union[Collection[int], int], new_name: str = "ax_unk"):
def insert_axis(self, axis: Union[Collection[int], int], new_name: str):
"""Create an axes dict from self with specified axis or axes
added and all greater axes incremented.
Expand Down
4 changes: 2 additions & 2 deletions test/utils/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def test_insert_multiple_AxisMapping():
},
6,
)
result = ax_map.insert_axis([1, 4])
result = ax_map.insert_axis([1, 4], new_name="ax_unk")
expected = {
"ax_a": [0, 2],
"ax_unk": [1, 4],
Expand All @@ -404,7 +404,7 @@ def test_insert_misordered_AxisMapping():
},
6,
)
result = ax_map.insert_axis([4, 1])
result = ax_map.insert_axis([4, 1], new_name="ax_unk")
expected = {
"ax_a": [0, 2],
"ax_unk": [1, 4],
Expand Down

0 comments on commit 341f15c

Please sign in to comment.