src: modified by cleanup
This commit is contained in:
parent
6f3b586a3c
commit
fcbfa09f1f
@ -1,9 +1,8 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from dataclasses import dataclass
|
|
||||||
from enum import Enum, IntEnum
|
from enum import Enum, IntEnum
|
||||||
from typing import List, Optional, Union
|
from typing import List, Optional
|
||||||
|
|
||||||
import tabulate as tabulate_module
|
import tabulate as tabulate_module
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,6 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|||||||
|
|
||||||
from wireviz.wv_bom import (
|
from wireviz.wv_bom import (
|
||||||
BomHash,
|
BomHash,
|
||||||
BomHashList,
|
|
||||||
PartNumberInfo,
|
PartNumberInfo,
|
||||||
QtyMultiplierCable,
|
QtyMultiplierCable,
|
||||||
QtyMultiplierConnector,
|
QtyMultiplierConnector,
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from itertools import zip_longest
|
|
||||||
from typing import Any, List, Optional, Union
|
from typing import Any, List, Optional, Union
|
||||||
|
|
||||||
from wireviz import APP_NAME, APP_URL, __version__
|
from wireviz import APP_NAME, APP_URL, __version__
|
||||||
@ -15,8 +14,6 @@ from wireviz.wv_dataclasses import (
|
|||||||
Connector,
|
Connector,
|
||||||
MateComponent,
|
MateComponent,
|
||||||
MatePin,
|
MatePin,
|
||||||
Options,
|
|
||||||
PartNumberInfo,
|
|
||||||
ShieldClass,
|
ShieldClass,
|
||||||
WireClass,
|
WireClass,
|
||||||
)
|
)
|
||||||
@ -112,7 +109,9 @@ def gv_additional_component_table(component):
|
|||||||
[
|
[
|
||||||
Td(bom_bubble(subitem.bom_id)),
|
Td(bom_bubble(subitem.bom_id)),
|
||||||
Td(f"{subitem.bom_qty}", align="right"),
|
Td(f"{subitem.bom_qty}", align="right"),
|
||||||
Td(f"{subitem.qty.unit if subitem.qty.unit else 'x'}", align="left"),
|
Td(
|
||||||
|
f"{subitem.qty.unit if subitem.qty.unit else 'x'}", align="left"
|
||||||
|
),
|
||||||
Td(f"{subitem.description}", align="left"),
|
Td(f"{subitem.description}", align="left"),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|||||||
@ -8,7 +8,7 @@ from typing import List
|
|||||||
from graphviz import Graph
|
from graphviz import Graph
|
||||||
|
|
||||||
import wireviz.wv_colors
|
import wireviz.wv_colors
|
||||||
from wireviz.wv_bom import BomCategory, BomEntry, bom_list, print_bom_table
|
from wireviz.wv_bom import BomCategory, bom_list
|
||||||
from wireviz.wv_dataclasses import (
|
from wireviz.wv_dataclasses import (
|
||||||
AUTOGENERATED_PREFIX,
|
AUTOGENERATED_PREFIX,
|
||||||
AdditionalComponent,
|
AdditionalComponent,
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import re
|
import re
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import List, Optional
|
from typing import List
|
||||||
|
|
||||||
awg_equiv_table = {
|
awg_equiv_table = {
|
||||||
"0.09": "28",
|
"0.09": "28",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user