Skip to content

Commit

Permalink
Fix typo in validation with us vs um (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnzl-777 authored Jul 25, 2023
1 parent 986e03e commit efb7179
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/BloqadeSchema/src/validate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function validate_lattice(positions,dc::DeviceCapabilities)
sorted_sites = sort(sites)
error_sites = join([site=>positions[site] for site in sorted_sites],", ")
push!(violations,
"positions {$(error_sites)} violate y minimum value of $vertical_resolution μs"
"positions {$(error_sites)} violate y minimum value of $vertical_resolution μm"
)

end
Expand Down
4 changes: 2 additions & 2 deletions lib/BloqadeSchema/test/validate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ end
atoms = [v_1,v_2]
violations = validate_lattice(atoms,dc)
@test violations == Set([
"positions {1 => $v_1, 2 => $v_2} violate y minimum value of $vertical_resolution μs",
"positions {1 => $v_1, 2 => $v_2} violate y minimum value of $vertical_resolution μm",
"positions 1 => $v_1 and 2 => $v_2 are a distance of $radial_spacing μm apart which is $(message(<)) value of $radial_spacing_min μm",
])

Expand All @@ -96,7 +96,7 @@ end
error_sites = join([site=>atoms[site] for site in [1,3,4]],", ")
violations = validate_lattice(atoms,dc)

@test violations == Set(["positions {$(error_sites)} violate y minimum value of $vertical_resolution μs"])
@test violations == Set(["positions {$(error_sites)} violate y minimum value of $vertical_resolution μm"])


end
Expand Down

0 comments on commit efb7179

Please sign in to comment.