Skip to content

Commit

Permalink
batch_size to batchSize (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
techkuz authored Sep 16, 2020
1 parent 9cadda9 commit 39957d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hydrosdk/modelversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def _from_json(cluster: Cluster, modelversion_json: dict) -> 'ModelVersion':
model_id = modelversion_json["model"]["id"]
version = modelversion_json["modelVersion"]
model_contract = contract_dict_to_ModelContract(modelversion_json["modelContract"])
monitoring_configuration = MonitoringConfiguration(batch_size=modelversion_json["monitoringConfiguration"]["batch_size"])
monitoring_configuration = MonitoringConfiguration(batch_size=modelversion_json["monitoringConfiguration"]["batchSize"])

# external model deserialization handling
is_external = modelversion_json.get('isExternal', False)
Expand Down
4 changes: 2 additions & 2 deletions tests/common_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def modelversion_json():
"git.branch.head.author.email": "[email protected]"
},
"modelVersion": 1,
"monitoringConfiguration": {"batch_size": 100},
"monitoringConfiguration": {"batchSize": 100},
"runtime": {
"name": "hydrosphere/serving-runtime-python-3.6",
"tag": "2.3.2"
Expand Down Expand Up @@ -184,6 +184,6 @@ def external_modelversion_json():
"key": "value"
},
"modelVersion": 1,
"monitoringConfiguration": {"batch_size": 100},
"monitoringConfiguration": {"batchSize": 100},
"created": "2020-05-22T12:38:05.021Z"
}

0 comments on commit 39957d1

Please sign in to comment.