Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
FFroehlich committed Nov 9, 2024
1 parent c7c5d4b commit a514deb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,4 @@ repos:
- --config
- python/sdist/pyproject.toml

- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
args: ["--py310-plus"]

exclude: '^(ThirdParty|models)/'
16 changes: 16 additions & 0 deletions python/sdist/amici/jax.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,19 @@ def Jy(y, my, sigmay):
TPL_JY_EQ

return TPL_JY_RET

@property
def parameter_ids(self):
return TPL_P_IDS

@property
def fixed_parameter_ids(self):
return TPL_K_IDS

@property
def observable_ids(self):
return TPL_Y_IDS

@property
def state_ids(self):
return TPL_X_IDS

0 comments on commit a514deb

Please sign in to comment.