-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spool add global config for configuration of hardcoded spool quadtree params #94
base: master
Are you sure you want to change the base?
Conversation
Any comments @miili regarding the concept of that? I just rebased. I experience it now fairly often-also with others that it is necessary to have finer Quadtrees... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for rebasing this PR. Can you please remove all the dead code. I think we can get away with a very simplistic config.
class ConfigBase(Object): | ||
@classmethod | ||
def default(cls): | ||
return cls() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed imo. Implement in KiteConfig
x = op.expanduser(op.expandvars(x)) | ||
return x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x = op.expanduser(op.expandvars(x)) | |
return x | |
return op.expanduser(op.expandvars(x)) |
|
||
kite_dir_tmpl = os.environ.get( | ||
'KITE_DIR', | ||
os.path.join('~', '.kite')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use pathlib.Path
throughout.
class PathWithPlaceholders(String): | ||
'''Path, possibly containing placeholders.''' | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never used.
class VisibleLengthSetting(Object): | ||
class __T(TBase): | ||
def regularize_extra(self, val): | ||
if isinstance(val, list): | ||
return self.cls(key=val[0], value=val[1]) | ||
|
||
return val | ||
|
||
def to_save(self, val): | ||
return (val.key, val.value) | ||
|
||
def to_save_xml(self, val): | ||
raise NotImplementedError() | ||
|
||
key = String.T() | ||
value = Float.T() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never used.
No description provided.