Skip to content

Commit

Permalink
fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewb1 committed Aug 29, 2023
1 parent 0e2305c commit 80799b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rednose/helpers/ekf_sym.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def gen_code(folder, name, f_sym, dt_sym, x_sym, obs_eqs, dim_x, dim_err, eskf_p
for group, kinds in func_lists.items():
post_code += f" .{group}s = {{\n"
for kind in kinds:
str_kind = f"\"{kind}\"" if type(kind) == str else kind
str_kind = f"\"{kind}\"" if isinstance(kind, str) else kind
post_code += f" {{ {str_kind}, {name}_{group}_{kind} }},\n"
post_code += " },\n"
post_code += " .extra_routines = {\n"
Expand Down
3 changes: 2 additions & 1 deletion rednose/helpers/kalmanfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class KalmanFilter:
Q = np.zeros((0, 0))
obs_noise: Dict[int, Any] = {}

filter = None # Should be initialized when initializating a KalmanFilter implementation
# Should be initialized when initializating a KalmanFilter implementation
filter = None # noqa: A003

@property
def x(self):
Expand Down

0 comments on commit 80799b4

Please sign in to comment.