MCPcopy Create free account
hub / github.com/chibohe/text_recognition_toolbox / __init__

Method __init__

flags.py:28–32  ·  view source on GitHub ↗
(self, config_file)

Source from the content-addressed store, hash-verified

26class Flags():
27
28 def __init__(self, config_file):
29 with open(config_file, 'r') as f:
30 d = yaml.safe_load(f)
31
32 self.flags = dict_to_namedtuple(d)
33
34 def get(self):
35 return self.flags

Callers

nothing calls this directly

Calls 1

dict_to_namedtupleFunction · 0.85

Tested by

no test coverage detected