Skip to content

Commit b172dd3

Browse files
authored
Strip p0 from all values (#447)
Fix p0 management.
1 parent ebd46c3 commit b172dd3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cubids/utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,9 +1001,10 @@ def assign_variants(summary, rename_cols):
10011001
# If the value is an actual float
10021002
elif isinstance(val, float):
10031003
val = str(val).replace(".", "p")
1004-
if val.endswith("p0"):
1005-
# Remove the trailing "p0"
1006-
val = val[:-2]
1004+
1005+
if val.endswith("p0"):
1006+
# Remove the trailing "p0"
1007+
val = val[:-2]
10071008

10081009
# Filter out non-alphanumeric characters
10091010
val = re.sub(r"[^a-zA-Z0-9]", "", val)

0 commit comments

Comments
 (0)