flinventory 0.6.4__tar.gz → 0.6.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {flinventory-0.6.4 → flinventory-0.6.6}/PKG-INFO +1 -1
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/defaulted_data.py +1 -1
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/signprinter_latex.py +6 -4
- {flinventory-0.6.4 → flinventory-0.6.6}/pyproject.toml +1 -1
- {flinventory-0.6.4 → flinventory-0.6.6}/LICENSE +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/README.md +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/__init__.py +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/__main__.py +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/box.py +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/constant.py +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/datacleanup.py +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/generate_labels.py +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/inventory_io.py +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/location.py +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/sign.py +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/thing.py +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/thingtemplate_latex/.gitignore +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/thingtemplate_latex/dummyImage.jpg +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/thingtemplate_latex/sign.tex +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/thingtemplate_latex/signlist-footer.tex +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/thingtemplate_latex/signlist-header.tex +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/flinventory/thingtemplate_latex/signs-example.tex +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/tests/__init__.py +0 -0
- {flinventory-0.6.4 → flinventory-0.6.6}/tests/test_defaulted_data.py +0 -0
@@ -106,7 +106,7 @@ class DefaultedDict(SuperDict):
|
|
106
106
|
return tuple(self._lists)
|
107
107
|
|
108
108
|
@property
|
109
|
-
def default_order(self) -> tuple[str]:
|
109
|
+
def default_order(self) -> tuple[str, ...]:
|
110
110
|
"""Default order of keys. Not changable."""
|
111
111
|
return tuple(self._default_order)
|
112
112
|
|
@@ -136,10 +136,12 @@ class SignPrinterLaTeX:
|
|
136
136
|
try:
|
137
137
|
value = float(value)
|
138
138
|
except ValueError:
|
139
|
-
self.logger(
|
139
|
+
self.logger.error(
|
140
|
+
f"{key} {value} is not a number. Use {backup} {UNIT} instead."
|
141
|
+
)
|
140
142
|
return backup
|
141
143
|
if value <= 0:
|
142
|
-
self.logger(
|
144
|
+
self.logger.error(
|
143
145
|
f"{key} {value} is non-positive and therefore not a valid sign {key}. "
|
144
146
|
f"Use {backup} {UNIT} instead."
|
145
147
|
)
|
@@ -543,8 +545,8 @@ class SignPrinterLaTeX:
|
|
543
545
|
file_svg = tex_hash + ".svg"
|
544
546
|
path_svg = os.path.join(self.output_dir, file_svg)
|
545
547
|
if os.path.isfile(path_tex) and os.path.isfile(path_svg):
|
546
|
-
self.logger(f"Do not regenerate {tex_hash}.")
|
547
|
-
return
|
548
|
+
self.logger.info(f"Do not regenerate {tex_hash}.")
|
549
|
+
return path_svg
|
548
550
|
with open(path_tex, mode="w") as file_tex_f:
|
549
551
|
file_tex_f.write(tex)
|
550
552
|
try:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|