Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,14 @@ dependencies = [
"shapely >= 2.0.0",
"matplotlib",
"numpy >= 2.0.0",
"pandas >= 2.0.0",
"scikit-spatial >= 8.1.0",
"pikepdf",
"parse",
"colour",
"pytest",
"networkx",
"numpy",
"rich",
"tomli-w",
"ezdxf",
"textalloc>=1.2.1",
"load-distribution>=0.1.7",
"rich>=14.2.0",
]


Expand All @@ -39,5 +34,6 @@ graphviz = [
dev = [
"black>=25.1.0",
"ipykernel>=6.30.1",
"pytest",
"pytest-check>=2.5.4",
]
19 changes: 0 additions & 19 deletions src/papermodels/datatypes/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
tag_parsed_annotations,
)
from ..geometry import geom_ops
import parse
import math
import tomli_w
import json


Expand Down Expand Up @@ -940,13 +938,6 @@ def _get_distributed_loads(self, precision: int) -> list[dict]:
else:
return []

def dump_toml(self, fp, precision=3):
"""
Dumps the .model attribute to a TOML file
"""
tomli_w.dump(self.model(precision), fp)
return fp

def dump_json(self, fp, precision=3):
"""
Dumps the .model attribute to a TOML file
Expand Down Expand Up @@ -1515,16 +1506,6 @@ def annotations_by_page(
return annots_by_page


def get_tag_type(this_element_tag: str) -> str:
"""
Returns the prefix portion of 'this_element_tag'. The prefix portion is the
alphabetical portion of the tag at the beginning.
"""
format = "{type_tag}{page_tag:d}.{enum_tag:d}"
result = parse.parse(format, this_element_tag)
return result.named["type_tag"]


def get_elements_by_page(elements: list[Element]) -> dict[int, list[Element]]:
"""
Returns 'elements' sorted by page
Expand Down
1 change: 0 additions & 1 deletion src/papermodels/paper/dxf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from papermodels.geometry import geom_ops
import shapely as shp
import pathlib
import parse
import numpy as np


Expand Down
2 changes: 0 additions & 2 deletions src/papermodels/paper/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
from typing import Optional, Any, Union
import pathlib

from colour import Color
from matplotlib.figure import Figure
from matplotlib.patches import Polygon
import numpy as np
import parse
from ..datatypes.annotation import Annotation
from shapely.ops import polylabel
import textalloc as ta
Expand Down
112 changes: 6 additions & 106 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading