Skip to content

Commit ab5c303

Browse files
committed
removed unused helpers
1 parent 3fce61e commit ab5c303

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

src/sparging/helpers.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,4 @@ def get_git_hash():
3737
return "no-git"
3838

3939

40-
def string_to_ramp(t, start, end):
41-
(t, start, end) = to_comparable_magnitude([t, start, end])
42-
return np.clip((t - start) / (end - start), 0, 1)
43-
44-
45-
def string_to_step(t, start):
46-
(t, start) = to_comparable_magnitude([t, start])
47-
return np.heaviside(t - start, 1)
48-
49-
50-
def to_comparable_magnitude(quantities: list):
51-
quantities = [ureg.Quantity(q) for q in quantities]
52-
base_units = [q.to_base_units().units for q in quantities]
53-
if len(set(base_units)) > 1:
54-
raise ValueError(f"Quantities have different base units: {base_units}")
55-
return tuple([q.to_base_units().magnitude for q in quantities])
40+
s

0 commit comments

Comments
 (0)