Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into scons-target-support
Browse files Browse the repository at this point in the history
  • Loading branch information
fredyshox committed Aug 30, 2023
2 parents 98a097f + e32658e commit b01b961
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml
[tool.ruff]
select = ["E", "F", "W"]
ignore = ["W292", "E741"]
select = ["E", "F", "W", "PIE", "C4", "ISC", "RUF100", "A"]
ignore = ["W292", "E741", "E402", "C408", "ISC003"]
line-length = 160
target-version="py311"
target-version="py311"
flake8-implicit-str-concat.allow-multiline=false
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 b01b961

Please sign in to comment.