Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize - remove qoi context string manipulation, update ciemss version #114

Merged
merged 4 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading