Commit d967800
[PROTON] Correct misuse of
The `strip` method removes characters that match the input argument, but
it does not remove substrings that match the full input. For example,
previously, `"num_samples (inc)".strip("inc")` would result in
`um_samples` because the character `n` is part of the input argument.
Instead of using `strip`, the `replace` method can be used. However, in
this case, we can simply output the original metric name (i.e.,
"num_samples (inc)") since it’s more useful to know whether the metric
is inclusive or exclusive.strip (triton-lang#5716)1 parent dd6bf87 commit d967800
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
0 commit comments