flinventory 0.6.3__py3-none-any.whl → 0.6.5__py3-none-any.whl
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/signprinter_latex.py +4 -5
- {flinventory-0.6.3.dist-info → flinventory-0.6.5.dist-info}/METADATA +1 -1
- {flinventory-0.6.3.dist-info → flinventory-0.6.5.dist-info}/RECORD +6 -6
- {flinventory-0.6.3.dist-info → flinventory-0.6.5.dist-info}/WHEEL +0 -0
- {flinventory-0.6.3.dist-info → flinventory-0.6.5.dist-info}/entry_points.txt +0 -0
- {flinventory-0.6.3.dist-info → flinventory-0.6.5.dist-info}/licenses/LICENSE +0 -0
flinventory/signprinter_latex.py
CHANGED
@@ -13,8 +13,7 @@ from typing import Union, Iterable, Optional
|
|
13
13
|
|
14
14
|
from .box import BoxedThing
|
15
15
|
from .sign import Sign
|
16
|
-
import constant
|
17
|
-
|
16
|
+
from . import constant
|
18
17
|
from . import thingtemplate_latex
|
19
18
|
|
20
19
|
TEMPLATE_PACKAGE = thingtemplate_latex
|
@@ -137,10 +136,10 @@ class SignPrinterLaTeX:
|
|
137
136
|
try:
|
138
137
|
value = float(value)
|
139
138
|
except ValueError:
|
140
|
-
self.logger(f"{key} {value} is not a number. Use {backup} {UNIT} instead.")
|
139
|
+
self.logger.error(f"{key} {value} is not a number. Use {backup} {UNIT} instead.")
|
141
140
|
return backup
|
142
141
|
if value <= 0:
|
143
|
-
self.logger(
|
142
|
+
self.logger.error(
|
144
143
|
f"{key} {value} is non-positive and therefore not a valid sign {key}. "
|
145
144
|
f"Use {backup} {UNIT} instead."
|
146
145
|
)
|
@@ -544,7 +543,7 @@ class SignPrinterLaTeX:
|
|
544
543
|
file_svg = tex_hash + ".svg"
|
545
544
|
path_svg = os.path.join(self.output_dir, file_svg)
|
546
545
|
if os.path.isfile(path_tex) and os.path.isfile(path_svg):
|
547
|
-
self.logger(f"Do not regenerate {tex_hash}.")
|
546
|
+
self.logger.info(f"Do not regenerate {tex_hash}.")
|
548
547
|
return file_svg
|
549
548
|
with open(path_tex, mode="w") as file_tex_f:
|
550
549
|
file_tex_f.write(tex)
|
@@ -1,7 +1,7 @@
|
|
1
|
-
flinventory-0.6.
|
2
|
-
flinventory-0.6.
|
3
|
-
flinventory-0.6.
|
4
|
-
flinventory-0.6.
|
1
|
+
flinventory-0.6.5.dist-info/METADATA,sha256=H7LRbD0_D_yuRhxNPbqGxQCfPrM1uN45c7GBN9vPpNw,4907
|
2
|
+
flinventory-0.6.5.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
3
|
+
flinventory-0.6.5.dist-info/entry_points.txt,sha256=De3jjbHfy68_ZrwdjywlgrSUCn4QhqZGI0CJJt9S8_c,78
|
4
|
+
flinventory-0.6.5.dist-info/licenses/LICENSE,sha256=9c-AWlAEeFMmn1aODEfabsw2he-SpQeykurYw-KqSdw,34478
|
5
5
|
flinventory/__init__.py,sha256=0HTGxw9J-2KnbxQbzX6HH-Pztkp0BEjiHANhndfbtYM,270
|
6
6
|
flinventory/__main__.py,sha256=5U_RxWDlnhzlC98RaE8SkejjiYjv27OLdm5DPYgL4Gw,1295
|
7
7
|
flinventory/box.py,sha256=rk7yrAjVdxcrpvmTMt3jkMVOAoQNJfqoSig9U2S3yJ0,10480
|
@@ -12,7 +12,7 @@ flinventory/generate_labels.py,sha256=wjlyta9gowWOLvVfOVUQ8Ktpv3eg85JbAfDzI4Ok2V
|
|
12
12
|
flinventory/inventory_io.py,sha256=OWThcf9nzeZNqvNpzQiBhESQAnVXC7hUA8DEVzq-w-Y,12561
|
13
13
|
flinventory/location.py,sha256=UgJlbno16ipuFa4yUZK3SLrid70ACwE5He9Dd4P2SMU,16875
|
14
14
|
flinventory/sign.py,sha256=8G7fsne3Nsf8zZKKTUl40uWMNsWIv7FYV2KcqBR2MQI,5515
|
15
|
-
flinventory/signprinter_latex.py,sha256=
|
15
|
+
flinventory/signprinter_latex.py,sha256=f8v4wM5GguIpk6cxD_V4OeymFqPGwVsRgIFKvhq1zt8,24842
|
16
16
|
flinventory/thing.py,sha256=86fXj3RwTbkCdVVWrbyO-VEW_e5lKJlV8PPt1Xf8ejY,5079
|
17
17
|
flinventory/thingtemplate_latex/.gitignore,sha256=DTF250Ttj8O2lxrQBwMNrQ73rWPvdwCytipfZSLFtlU,51
|
18
18
|
flinventory/thingtemplate_latex/dummyImage.jpg,sha256=bIBH5Lrxlr5qJ42nP1cpJXPRNGLOwyEuzwXFSvNwTSk,147857
|
@@ -20,4 +20,4 @@ flinventory/thingtemplate_latex/sign.tex,sha256=cVlOjImuS97Gf19MGW27HiP6Uw8JNnob
|
|
20
20
|
flinventory/thingtemplate_latex/signlist-footer.tex,sha256=LcZw5__h8SqgMmYxs5oLbXLaFTQlx_X5rtYnpxwUh9Y,14
|
21
21
|
flinventory/thingtemplate_latex/signlist-header.tex,sha256=F1J4aSPq6QO_Ved4Zn7-rytP1vDkdWTqjjtGJpe_FDg,297
|
22
22
|
flinventory/thingtemplate_latex/signs-example.tex,sha256=J6eCcPhP0Xklgn8xnSenDOvjzmc_NGmakWU4RGbeUtM,3090
|
23
|
-
flinventory-0.6.
|
23
|
+
flinventory-0.6.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|