diff --git a/jord/geopandas_utilities/serialisation/well_known_text.py b/jord/geopandas_utilities/serialisation/well_known_text.py index b9ba167..79184df 100755 --- a/jord/geopandas_utilities/serialisation/well_known_text.py +++ b/jord/geopandas_utilities/serialisation/well_known_text.py @@ -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): @@ -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( diff --git a/jord/qlive_utilities/serialisation.py b/jord/qlive_utilities/serialisation.py index 91db213..58ac427 100755 --- a/jord/qlive_utilities/serialisation.py +++ b/jord/qlive_utilities/serialisation.py @@ -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 diff --git a/jord/shapely_utilities/lines.py b/jord/shapely_utilities/lines.py index bfc4340..7ceabcd 100755 --- a/jord/shapely_utilities/lines.py +++ b/jord/shapely_utilities/lines.py @@ -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 ( @@ -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(