RDG-Networks 0.1.5__py3-none-any.whl → 0.1.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: RDG-Networks
3
- Version: 0.1.5
3
+ Version: 0.1.8
4
4
  Summary: Most of the code from the RDG Networks project
5
5
  Home-page: https://github.com/NiekMooij/RDG_networks
6
6
  Author: Niek Mooij
@@ -0,0 +1,13 @@
1
+ RDG_networks/Classes.py,sha256=_9X3JPHFAYYlaC8IZ_H9__sfz99G5l9UfPl65lL60_4,7977
2
+ RDG_networks/__init__.py,sha256=lbEZ5NwKERxQ4oLXTxWoe8q8f6c_iSx4ZQXDwgx_OP4,759
3
+ RDG_networks/draw_segments.py,sha256=U53N5GXmQHWKdM1Q1faP_EGKjc6enOu2mcsunzSFpP0,984
4
+ RDG_networks/generate_line_network.py,sha256=lJ4rhObim3WcEQoebomewRQKWNJC5phFyFYRW7qjXIg,1127
5
+ RDG_networks/generate_line_segments.py,sha256=QV8_k7q6TD5c7Hcb2Ms_apEdWYw4XdLr7rdJgh49v4Q,9004
6
+ RDG_networks/get_intersection_segments.py,sha256=mXB5qCy1oOps4Vu1mX6flW6v_4Xxc71YK41yOWjJX8o,2797
7
+ RDG_networks/sample_in_polygon.py,sha256=qpPpW-Da1vK8ZkVWMJ0zBsE8IgyMB619gCdybSkzKSQ,1605
8
+ RDG_Networks-0.1.8.dist-info/LICENSE.txt,sha256=Zlv8517YKFuHaaqksoTKeIiQBl9DGxhUdb_0kJg0NOE,1066
9
+ RDG_Networks-0.1.8.dist-info/METADATA,sha256=7oAfTrYytPyZIzFIQu5PhIvvJ_hn0G_BNqw8uAXC1uU,1756
10
+ RDG_Networks-0.1.8.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
11
+ RDG_Networks-0.1.8.dist-info/entry_points.txt,sha256=4LC5qJH7VKpjuuhDR3HpJulO4qy9K5UlAUOGBg6ctxA,268
12
+ RDG_Networks-0.1.8.dist-info/top_level.txt,sha256=4gUUYafD5Al9V8ZSiViVGYHpRMMCsCBcGgCNodk9Syg,13
13
+ RDG_Networks-0.1.8.dist-info/RECORD,,
@@ -1,7 +1,7 @@
1
1
  import matplotlib.pyplot as plt
2
2
  from typing import List, Optional
3
3
 
4
- from RDG_networks.Classes import LineSegment
4
+ from .Classes import LineSegment
5
5
 
6
6
  def draw_segments(segments: List[LineSegment], fig: Optional[plt.Figure] = None, ax: Optional[plt.Axes] = None) -> None:
7
7
  """
@@ -2,7 +2,7 @@ import networkx as nx
2
2
  import numpy as np
3
3
  from typing import List
4
4
 
5
- from RDG_networks.Classes import LineSegment
5
+ from .Classes import LineSegment
6
6
 
7
7
  def generate_line_network(line_segments: List[LineSegment]) -> List[List[int]]:
8
8
  """
@@ -4,8 +4,8 @@ import numpy as np
4
4
  import random
5
5
  from typing import List, Tuple, Union
6
6
 
7
- from RDG_networks.Classes import Line, LineSegment, Polygon
8
- from RDG_networks.sample_in_polygon import sample_in_polygon
7
+ from .Classes import Line, LineSegment, Polygon
8
+ from .sample_in_polygon import sample_in_polygon
9
9
 
10
10
  def doLinesIntersect(line1: Line, line2: Line) -> Tuple[bool, Union[Tuple[float, float], None]]:
11
11
  """
@@ -1,7 +1,7 @@
1
1
  import numpy as np
2
2
  from typing import List, Tuple
3
3
 
4
- from RDG_networks.Classes import LineSegment
4
+ from .Classes import LineSegment
5
5
 
6
6
  def order_points(points: List[Tuple[float, float]], segment_start: Tuple[float, float]) -> List[Tuple[float, float]]:
7
7
  """
@@ -54,9 +54,9 @@ def get_intersection_segments(line_segments: List[LineSegment]) -> List[LineSegm
54
54
  # Order intersection points
55
55
  ordered_intersection_points = {}
56
56
  for segment_id, points in intersection_points.items():
57
-
57
+
58
58
  ordered_points = order_points(points, points[0])
59
-
59
+ ordered_points = list(set(ordered_points))
60
60
  ordered_intersection_points[segment_id] = ordered_points
61
61
 
62
62
  # Generate intersection segments
@@ -1,13 +0,0 @@
1
- RDG_networks/Classes.py,sha256=_9X3JPHFAYYlaC8IZ_H9__sfz99G5l9UfPl65lL60_4,7977
2
- RDG_networks/__init__.py,sha256=lbEZ5NwKERxQ4oLXTxWoe8q8f6c_iSx4ZQXDwgx_OP4,759
3
- RDG_networks/draw_segments.py,sha256=ZHTQtu7szm4M3PWDRJa5WCetDN1yNQem9C0l8xfaTr8,996
4
- RDG_networks/generate_line_network.py,sha256=F8p7AFS0vYQEfTdTtTMhP0yK92VFq3FakaSte6K5AOw,1139
5
- RDG_networks/generate_line_segments.py,sha256=KeP8S0qQ85UK5kzsRT12q7_wJJ0YKTC-6uVwDu5YL2M,9028
6
- RDG_networks/get_intersection_segments.py,sha256=ldzcGCulfCQWfJT7ENXrTSRW3sworX2NwNiwsSFSnkU,2764
7
- RDG_networks/sample_in_polygon.py,sha256=qpPpW-Da1vK8ZkVWMJ0zBsE8IgyMB619gCdybSkzKSQ,1605
8
- RDG_Networks-0.1.5.dist-info/LICENSE.txt,sha256=Zlv8517YKFuHaaqksoTKeIiQBl9DGxhUdb_0kJg0NOE,1066
9
- RDG_Networks-0.1.5.dist-info/METADATA,sha256=sQ-56KfCaJx8Mf6NoC98uc9kaZ9ZRLf6u6wZOdhaqrc,1756
10
- RDG_Networks-0.1.5.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
11
- RDG_Networks-0.1.5.dist-info/entry_points.txt,sha256=4LC5qJH7VKpjuuhDR3HpJulO4qy9K5UlAUOGBg6ctxA,268
12
- RDG_Networks-0.1.5.dist-info/top_level.txt,sha256=4gUUYafD5Al9V8ZSiViVGYHpRMMCsCBcGgCNodk9Syg,13
13
- RDG_Networks-0.1.5.dist-info/RECORD,,