Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 14, 2025
1 parent 41ca7ba commit f84ce94
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/ansys/dyna/core/lib/duplicate_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,7 @@ def _check_type(value):

class DuplicateCard(Card):
def __init__(
self,
fields: typing.List[Field],
length_func,
active_func=None,
name=None,
format=format_type.default,
**kwargs
self, fields: typing.List[Field], length_func, active_func=None, name=None, format=format_type.default, **kwargs
):
super().__init__(fields, active_func)
self._format = [(field.offset, field.width) for field in self._fields]
Expand Down Expand Up @@ -97,7 +91,7 @@ def _initialize(self):
self._initialize_data(initial_size)

if handle_first_row:
for k,v in self._first_row.items():
for k, v in self._first_row.items():
self._table.loc[0, k] = v

self._first_row = None
Expand Down

0 comments on commit f84ce94

Please sign in to comment.