Skip to content

Commit

Permalink
autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
blooop committed Nov 3, 2024
1 parent c2b17ec commit c301bf6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bencher/example/example_float3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ class VolumeSweep(bch.ParametrizedSweep):
)

def __call__(self, **kwargs) -> dict:
"""This function takes a 3D point as input and returns distance of that point to the origin.
"""
"""This function takes a 3D point as input and returns distance of that point to the origin."""
self.update_params_from_kwargs(**kwargs)
self.value = np.linalg.norm(np.array([self.x, self.y, self.z])) # distance to origin
self.occupancy = float(self.value < 0.5)
Expand Down Expand Up @@ -63,7 +62,7 @@ def example_floats3D(

bench.plot_sweep(
title="Float 3D Example",
input_vars=["x", "y", bch.p("z", max_level=4)],
input_vars=["x", "y", "z"],
result_vars=[
"value",
"occupancy",
Expand Down

0 comments on commit c301bf6

Please sign in to comment.