mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
sampler options rewrite
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -38,6 +38,17 @@ def apply_processing(p, x, xs):
|
||||
shared.log.debug(f'XYZ grid apply processing-arg: type={found} {k}={type(v)}:{v} ')
|
||||
|
||||
|
||||
def apply_options(p, x, xs):
|
||||
for section in x.split(';'):
|
||||
k, v = section.split('=')
|
||||
k, v = k.strip(), v.strip()
|
||||
if v.replace('.','',1).isdigit():
|
||||
v = float(v) if '.' in v else int(v)
|
||||
found = 'existing' if v in shared.opts.data else 'new'
|
||||
shared.opts.data[k] = v
|
||||
shared.log.debug(f'XYZ grid apply options: type={found} {k}={type(v)}:{v} ')
|
||||
|
||||
|
||||
def apply_setting(field):
|
||||
def fun(p, x, xs):
|
||||
shared.log.debug(f'XYZ grid apply setting: {field}={x}')
|
||||
|
||||
Reference in New Issue
Block a user