Skip to content

Commit 316cc5b

Browse files
chore: update pre-commit hooks (#493)
* chore: update pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.10 → v0.11.0](astral-sh/ruff-pre-commit@v0.9.10...v0.11.0) * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 681f6d4 commit 316cc5b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Diff for: .pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
- id: end-of-file-fixer
2020

2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: "v0.9.10"
22+
rev: "v0.11.0"
2323
hooks:
2424
- id: ruff
2525
args: ["--fix", "--show-fixes"]

Diff for: src/decaylanguage/modeling/amplitudechain.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def L_range(self, conserveParity=False):
178178
@property
179179
def L(self):
180180
if self.spinfactor:
181-
return "S P D F".split().index(self.spinfactor)
181+
return ["S", "P", "D", "F"].index(self.spinfactor)
182182
min_L, _ = self.L_range()
183183
return min_L # Ground state unless specified
184184

@@ -269,12 +269,10 @@ def read_ampgen(
269269

270270
# Make the partial lines and constants as dataframes
271271
parameters = pd.DataFrame(
272-
variables, columns="name fix value error".split()
272+
variables, columns=["name", "fix", "value", "error"]
273273
).set_index("name")
274274

275-
constants = pd.DataFrame(constants, columns="name value".split()).set_index(
276-
"name"
277-
)
275+
constants = pd.DataFrame(constants, columns=["name", "value"]).set_index("name")
278276

279277
# Convert the matches into AmplitudeChains
280278
line_arr = [cls.from_matched_line(c) for c in cplx_decay_lines]

0 commit comments

Comments
 (0)