MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / get_key

Function get_key

src/pyOpenMS/pyopenms/_dataframes.py:531–534  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

529
530 # get default value for each type in types to append if there are no hits in a PeptideIdentification
531 def get_key(val):
532 for key, value in switchDict.items():
533 if val == value:
534 return key
535 dmv = [default_missing_values[get_key(t)] for t in types]
536
537 decodedMVs = [m.decode("utf-8") for m in metavals]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected