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

test: fix regression by DMAS change #40

Merged
merged 1 commit into from
Jul 31, 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
6 changes: 3 additions & 3 deletions doc/source/Code_Examples/Discover_Locations.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ onc.getLocations(params)

### Get all locations with instruments that have a specific device category and a specific property

Return all locations with at least one instrument that has the device category "**BPR**" and property code "*
*totalpressure**".
Return all locations with at least one instrument that has the device category "**BPR**" and property code
"**totalpressure**".

```python
params = {
"deviceCategoryCode": "BPR",
"propertyCode": "pressure",
"propertyCode": "totalpressure",
}
onc.getLocations(params)
```
Expand Down
8 changes: 4 additions & 4 deletions src/onc/onc.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,10 +732,10 @@ def getDataProducts(self, filters: dict | None = None):
"dataProductOptions": [
{
"allowableRange": {
"lowerBound": "-160",
"lowerBound": "-160.0",
"onlyIntegers": False,
"unitOfMeasure": None,
"upperBound": "140",
"upperBound": "140.0",
},
"allowableValues": ["-1000"],
"defaultValue": "-1000",
Expand All @@ -757,10 +757,10 @@ def getDataProducts(self, filters: dict | None = None):
},
{
"allowableRange": {
"lowerBound": "-160",
"lowerBound": "-160.0",
"onlyIntegers": False,
"unitOfMeasure": None,
"upperBound": "140",
"upperBound": "140.0",
},
"allowableValues": ["-1000"],
"defaultValue": "-1000",
Expand Down
8 changes: 4 additions & 4 deletions tests/regression/doctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ def test_get_data_products(requester):
"dataProductOptions": [
{
"allowableRange": {
"lowerBound": "-160",
"lowerBound": "-160.0",
"onlyIntegers": False,
"unitOfMeasure": None,
"upperBound": "140",
"upperBound": "140.0",
},
"allowableValues": ["-1000"],
"defaultValue": "-1000",
Expand All @@ -239,10 +239,10 @@ def test_get_data_products(requester):
},
{
"allowableRange": {
"lowerBound": "-160",
"lowerBound": "-160.0",
"onlyIntegers": False,
"unitOfMeasure": None,
"upperBound": "140",
"upperBound": "140.0",
},
"allowableValues": ["-1000"],
"defaultValue": "-1000",
Expand Down
Loading