MCPcopy
hub / github.com/mne-tools/mne-python / _prettify_pin

Function _prettify_pin

tools/hooks/sync_dependencies.py:36–49  ·  view source on GitHub ↗
(pin)

Source from the content-addressed store, hash-verified

34
35
36def _prettify_pin(pin):
37 if pin is None:
38 return ""
39 pins = pin.split(",")
40 replacements = {
41 "<=": " ≤ ",
42 ">=": " ≥ ",
43 "<": " < ",
44 ">": " > ",
45 }
46 for old, new in replacements.items():
47 pins = [p.replace(old, new) for p in pins]
48 pins = reversed(pins)
49 return ",".join(pins)
50
51
52# get the dependency info

Callers 1

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected