diff --git a/generate_dfn.py b/generate_dfn.py index ecb5f78..eda4607 100644 --- a/generate_dfn.py +++ b/generate_dfn.py @@ -7,8 +7,6 @@ from typing import List, Optional -import numpy as np - from common import format_float as ff from common import format_ipc_dimension as fd from common import init_cache, now, save_cache @@ -202,7 +200,7 @@ def _generate_footprint(key: str, name: str, pad_extension: float) -> None: # Measure clearance pad-exposed pad clearance = abs(pad_pos_x) - (pad_length / 2) - (exposed_length / 2) - if np.around(clearance, decimals=2) < MIN_CLEARANCE: + if round(clearance, ndigits=2) < MIN_CLEARANCE: print("Warning: minimal clearance violated in {}: {:.4f} < {:.2f}".format(full_name, clearance, MIN_CLEARANCE)) # Create Silk Screen (lines and dot only) @@ -215,7 +213,7 @@ def _generate_footprint(key: str, name: str, pad_extension: float) -> None: silk_top_line_height = config.length / 2 if make_exposed: silk_clearance = silk_top_line_height - (SILKSCREEN_LINE_WIDTH / 2) - (config.exposed_width / 2) - if np.around(silk_clearance, decimals=2) < SILKSCREEN_OFFSET: + if round(silk_clearance, ndigits=2) < SILKSCREEN_OFFSET: silk_top_line_height = silk_top_line_height + (SILKSCREEN_OFFSET - silk_clearance) silk_down = silk_down + (SILKSCREEN_OFFSET - silk_clearance) print("Increasing exp-silk clearance from {:.4f} to {:.2f}".format(silk_clearance, SILKSCREEN_OFFSET)) diff --git a/requirements.txt b/requirements.txt index 2e985a2..8249acd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ pytest~=6.2.5 flake8~=4.0.1 mypy==1.5.1 -numpy~=1.22 isort~=5.10.1 cadquery==2.3.1