Skip to content

Commit

Permalink
Fix style, test, and extraneous import
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Guinther committed Sep 26, 2023
1 parent d6f01a0 commit d41d3d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/sparsezoo/api/query_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

DEFAULT_MODELS_FIELDS = ["modelId", "stub"]

DEFAULT_FILES_FIELDS = [
"displayName", "downloadUrl", "fileSize", "fileType", "modelId"
]
DEFAULT_FILES_FIELDS = ["displayName", "downloadUrl", "fileSize", "fileType", "modelId"]

DEFAULT_TRAINING_RESULTS_FIELDS = [
"datasetName",
Expand Down
2 changes: 1 addition & 1 deletion src/sparsezoo/model/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
ValidationResult,
)
from sparsezoo.objects import Directory, File, NumpyDirectory, OnnxGz, Recipes
from sparsezoo.utils import BASE_API_URL, convert_to_bool, save_numpy
from sparsezoo.utils import convert_to_bool, save_numpy


__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion tests/sparsezoo/api/test_query_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
"fields": (
"modelId displayName benchmarkResults "
"{ batchSize deviceInfo numCores recordedUnits recordedValue } "
"files { displayName fileSize modelId fileType } "
"files { displayName downloadUrl fileSize fileType modelId } "
),
},
),
Expand Down

0 comments on commit d41d3d3

Please sign in to comment.