Skip to content

Commit

Permalink
remove need for sorcery
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheider committed Apr 19, 2024
1 parent 53ace20 commit 378aa87
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
13 changes: 11 additions & 2 deletions jord/geopandas_utilities/serialisation/well_known_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

__all__ = ["load_wkts_from_csv", "csv_wkt_generator"]

from sorcery import assigned_names

# from sorcery import assigned_names


class WktTypeEnum(Enum):
Expand All @@ -22,7 +23,15 @@ class WktTypeEnum(Enum):
polygon,
multipolygon,
geometrycollection,
) = assigned_names()
) = (
"point",
"multipoint",
"linestring",
"multilinestring",
"polygon",
"multipolygon",
"geometrycollection",
) # assigned_names()


def load_wkts_from_csv(
Expand Down
4 changes: 2 additions & 2 deletions jord/qlive_utilities/serialisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

__all__ = ["build_package", "read_package"]

from sorcery import assigned_names
# from sorcery import assigned_names

from jord.qlive_utilities.procedures import QliveRPCMethodEnum, QliveRPCMethodMap


class SerialisationMethodEnum(Enum):
json, pickle = assigned_names()
json, pickle = "json", "pickle" # assigned_names()


SERIALISATION_METHOD = SerialisationMethodEnum.pickle
Expand Down
5 changes: 3 additions & 2 deletions jord/shapely_utilities/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
from shapely.geometry import LinearRing
from shapely.geometry.base import BaseGeometry
from shapely.ops import linemerge as shapely_linemerge
from sorcery import assigned_names

# from sorcery import assigned_names
from warg import Number, pairs

from .points import (
Expand Down Expand Up @@ -604,7 +605,7 @@ def linestring_azimuth(linestring: LineString, verbose: bool = False) -> float:
class ExtensionDirectionEnum(Enum):
""" """

start, end, both = assigned_names()
start, end, both = "start", "end", "both" # assigned_names()


def extend_line(
Expand Down

0 comments on commit 378aa87

Please sign in to comment.