Skip to content

Commit

Permalink
new function
Browse files Browse the repository at this point in the history
  • Loading branch information
Andiiiiiiyy committed Dec 10, 2024
1 parent 394ae6a commit a110e09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def piecewise_volume_conversion(
for x in sequence:
if ul <= x[0]:
# use that element to calculate the movement distance in mm
print(f"SEQUENCE: {x}")
return x[1] * ul + x[2]

# Compatibility with previous implementation of search.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
[995.8000,0.0010,14.5737],
[997.9200,0.0012,14.3030],
[999.6400,-0.0021,17.6281],
[1001.9200,0.0022,13.2996],
[1001.0400,0.0015,14.0155],
[1003.8000,-0.0006,16.1334],
[1101.2000,-0.0013,16.8462]
]
Expand All @@ -209,7 +209,7 @@
[995.8000,0.0010,14.5737],
[997.9200,0.0012,14.3030],
[999.6400,-0.0021,17.6281],
[1001.9200,0.0022,13.2996],
[1001.0400,0.0015,14.0155],
[1003.8000,-0.0006,16.1334],
[1101.2000,-0.0013,16.8462]
]
Expand Down

0 comments on commit a110e09

Please sign in to comment.