diff options
| author | George Steel <george.steel@gmail.com> | 2022-11-23 21:58:39 -0500 |
|---|---|---|
| committer | George Steel <george.steel@gmail.com> | 2022-11-23 21:58:39 -0500 |
| commit | 7cef2c9a094abe61282ac9bdc6bbfdc1e3e1d8c6 (patch) | |
| tree | 48fdfe574d8e1efb7e741aa3411003f71d18e44a /lib/elements/element.py | |
| parent | 08581d7eae58f08af6bc57fdc9a69e47f1f8768b (diff) | |
typo fixes
Diffstat (limited to 'lib/elements/element.py')
| -rw-r--r-- | lib/elements/element.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py index 8ff821e2..96949ca3 100644 --- a/lib/elements/element.py +++ b/lib/elements/element.py @@ -140,7 +140,7 @@ class EmbroideryElement(object): # if a single number is given in the param, it will apply to both returned values. # Not cached the cache will crash if the default is a numpy array. # The ppoperty calling this will need to cache itself and can safely do so since it has no parameters - def get_lr_float_param(self, param, default=(0, 0)): + def get_split_float_param(self, param, default=(0, 0)): default = np.array(default) # type coersion in case the default is a tuple raw = self.get_param(param, "") @@ -159,8 +159,8 @@ class EmbroideryElement(object): return default # not cached - def get_lr_mm_param_as_px(self, param, default): - return self.get_lr_float_param(param, default) * PIXELS_PER_MM + def get_split_mm_param_as_px(self, param, default): + return self.get_split_float_param(param, default) * PIXELS_PER_MM def set_param(self, name, value): param = INKSTITCH_ATTRIBS[name] |
