Skip to content

Commit

Permalink
Merge pull request #281 from dyson-ai/fix/empty_units
Browse files Browse the repository at this point in the history
Fix/empty units
  • Loading branch information
blooop authored Dec 4, 2023
2 parents 2c7a99f + b1a903c commit da3e7fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"python.testing.pytestEnabled": true,
"editor.formatOnSave": true,
"search.exclude": {
"/home/vscode/.local/lib/python3.10/site-packages/bencher/**": true
"/home/vscode/.local/lib/python3.10/site-packages/bencher/**": true,
"index.html": true,
},
"files.watcherExclude": {
"**/cachedir/**": true,
Expand Down
2 changes: 1 addition & 1 deletion bencher/variables/sweep_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def describe_variable(

if value is not None:
sampling_str.append(f"{indent}value: {value}")
if v.units != "ul":
if v.units != "ul" and len(v.units) > 0:
sampling_str.append(f"{indent}units: [{v.units}]")
if v.doc is not None:
sampling_str.append(f"{indent}docs: {v.doc}")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "holobench"
version = "0.4.0"
version = "0.4.1"

authors = [{ name = "Austin Gregg-Smith", email = "[email protected]" }]
description = "A package for benchmarking the performance of arbitrary functions"
Expand Down

0 comments on commit da3e7fc

Please sign in to comment.