MCPcopy Create free account
hub / github.com/bb12346/GaitGL / boolean_string

Function boolean_string

train.py:6–9  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

4
5
6def boolean_string(s):
7 if s.upper() not in {'FALSE', 'TRUE'}:
8 raise ValueError('Not a valid boolean string')
9 return s.upper() == 'TRUE'
10
11
12parser = argparse.ArgumentParser(description='Train')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected