Skip to content

Commit

Permalink
Optimize - remove qoi context string manipulation, update ciemss vers…
Browse files Browse the repository at this point in the history
…ion (#114)

* remove qoi string manipulation

* update optimize test

* need to do a lot of testing with this update.

* update pyciemss version.
  • Loading branch information
Tom-Szendrey authored Sep 3, 2024
1 parent 05f8e46 commit b3bed37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ httpx = "^0.24.1"


[tool.poe.tasks]
install-pyciemss = "pip install --no-cache-dir git+https://github.com/ciemss/pyciemss.git@f5c5bec731441377b845a3b702f01927113bf462 --use-pep517"
install-pyciemss = "pip install --no-cache-dir git+https://github.com/ciemss/pyciemss.git@e224fd5737e96a7a64ed9b0512ca4084eb7a4c87 --use-pep517"


[tool.pytest.ini_options]
Expand Down
2 changes: 1 addition & 1 deletion service/models/operations/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class QOI(BaseModel):
contexts: List[str] = []

def gen_call(self):
contexts = [context + "_state" for context in self.contexts]
contexts = self.contexts
qoi_map = {
QOIMethod.day_average: lambda samples: obs_nday_average_qoi(
samples, contexts, 1
Expand Down
2 changes: 1 addition & 1 deletion tests/examples/optimize/input/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"end": 90
},
"qoi": {
"contexts": ["Infected"],
"contexts": ["Infected_state"],
"method": "day_average"
},
"risk_bound": 10.0,
Expand Down

0 comments on commit b3bed37

Please sign in to comment.