MCPcopy
hub / github.com/keystone-engine/keypatch / get_opts

Method get_opts

keypatch.py:1007–1017  ·  view source on GitHub ↗
(self, name=None)

Source from the content-addressed store, hash-verified

1005
1006 # get Patcher/FillRange options
1007 def get_opts(self, name=None):
1008 names = self.c_opt_chk.children_names
1009 val = self.c_opt_chk.value
1010 opts = {}
1011 for i in range(len(names)):
1012 opts[names[i]] = val & (2**i)
1013
1014 if name != None:
1015 opts[name] = val
1016
1017 return opts
1018
1019
1020# Fill Range form

Callers 2

patcherMethod · 0.80
fill_rangeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected