MCPcopy
hub / github.com/vladmandic/sdnext / get_default

Method get_default

modules/options_handler.py:123–126  ·  view source on GitHub ↗

returns the default value for the key

(self, key)

Source from the content-addressed store, hash-verified

121 return True
122
123 def get_default(self, key):
124 """returns the default value for the key"""
125 data_label = self.data_labels.get(key)
126 return data_label.default if data_label is not None else None
127
128 def list(self):
129 """list all visible options"""

Callers 7

get_custom_argsFunction · 0.80
create_setting_componentFunction · 0.80
get_default_valuesFunction · 0.80
reset_quicksettingsFunction · 0.80
print_optionsMethod · 0.80
print_optionsMethod · 0.80
initializeMethod · 0.80

Calls 1

getMethod · 0.45

Tested by 1

initializeMethod · 0.64