RDG-Networks 0.0.1__py3-none-any.whl → 0.1.1__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.
@@ -0,0 +1,59 @@
1
+ Metadata-Version: 2.1
2
+ Name: RDG-Networks
3
+ Version: 0.1.1
4
+ Summary: Most of the code from the RDG Networks project
5
+ Home-page: https://github.com/NiekMooij/RDG_networks
6
+ Author: Niek Mooij
7
+ Author-email: mooij.niek@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ License-File: LICENSE.txt
12
+ Requires-Dist: networkx
13
+ Requires-Dist: numpy
14
+ Requires-Dist: scipy
15
+ Requires-Dist: shapely
16
+ Requires-Dist: typing
17
+
18
+ ## Overview
19
+
20
+ This Python package provides code regarding the RDG networks project.
21
+
22
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
23
+ [![Python Version](https://img.shields.io/badge/python-3.6%2B-blue.svg)](https://www.python.org/downloads/)
24
+
25
+ ## Table of Contents
26
+
27
+ - [Features](#features)
28
+ - [Installation](#installation)
29
+ - [Usage](#usage)
30
+ - [Configuration](#configuration)
31
+ - [License](#license)
32
+ - [Contact](#contact)
33
+
34
+ ## Features
35
+
36
+ - **generate_line_segments:** Function that determines the linesegments of a RDG network.
37
+ - **generate_line_network:** Function that makes the underlying network of the linesegments.
38
+ - **get_intersection_segments:** Function that determines the intersection segments of a RDG network.
39
+ - **draw_segments:** Function that draws the segments.
40
+
41
+
42
+ ## Installation
43
+ You can install the package using pip:
44
+
45
+ ```bash
46
+ pip install RDG-networks
47
+ ```
48
+
49
+ ## Usage
50
+ To use the package, import the relevant script from the functions folder based on the algorithm you'd like to apply.
51
+
52
+ ## Configuration
53
+ No specific configuration is required.
54
+
55
+ ## License
56
+ This package is distributed under the MIT license.
57
+
58
+ ## Contact
59
+ You can contact me at mooij.niek@gmail.com for any questions or suggestions.
@@ -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=S2NqJA23yFGUosuHdTAIUyRAqL3fBsK0N6wWEj4eF50,8959
6
+ RDG_networks/get_intersection_segments.py,sha256=u7u0B6pCKUe1UwBwbuECA-WSF9-b1snvYrikJ7O5x1U,2468
7
+ RDG_networks/sample_in_polygon.py,sha256=qpPpW-Da1vK8ZkVWMJ0zBsE8IgyMB619gCdybSkzKSQ,1605
8
+ RDG_Networks-0.1.1.dist-info/LICENSE.txt,sha256=Zlv8517YKFuHaaqksoTKeIiQBl9DGxhUdb_0kJg0NOE,1066
9
+ RDG_Networks-0.1.1.dist-info/METADATA,sha256=xP5_ZDe5_vXqKKJh_CxBmxZSXKOC_d3Xp87pUjFueTA,1756
10
+ RDG_Networks-0.1.1.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
11
+ RDG_Networks-0.1.1.dist-info/entry_points.txt,sha256=4LC5qJH7VKpjuuhDR3HpJulO4qy9K5UlAUOGBg6ctxA,268
12
+ RDG_Networks-0.1.1.dist-info/top_level.txt,sha256=4gUUYafD5Al9V8ZSiViVGYHpRMMCsCBcGgCNodk9Syg,13
13
+ RDG_Networks-0.1.1.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 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 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 Classes import Line, LineSegment, Polygon
8
- from 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 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
  """
@@ -1,17 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: RDG-Networks
3
- Version: 0.0.1
4
- Summary: Most of the code from the RDG Networks project
5
- Home-page: https://github.com/NiekMooij/RDG_networks
6
- Author: Niek Mooij
7
- Author-email: mooij.niek@gmail.com
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Operating System :: OS Independent
11
- License-File: LICENSE.txt
12
- Requires-Dist: networkx
13
- Requires-Dist: numpy
14
- Requires-Dist: scipy
15
- Requires-Dist: shapely
16
- Requires-Dist: typing
17
-
@@ -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=0jc1H_8YUUH7YSCtIfzgZdeIZRTX--FZUUGo2m45Lxo,983
4
- RDG_networks/generate_line_network.py,sha256=4sEQNMPD2Wo0CKxyZx-j837SZyTWFIkfDFym0KJQfKY,1126
5
- RDG_networks/generate_line_segments.py,sha256=24PZ2igK06aiwhv6mgrtvEJdDDI__hWJ5ldaVXLNeaw,8957
6
- RDG_networks/get_intersection_segments.py,sha256=4y8vx19OUx0lBgKbS5Gd8h7mAO-B52H7Df1fpRuVlps,2467
7
- RDG_networks/sample_in_polygon.py,sha256=qpPpW-Da1vK8ZkVWMJ0zBsE8IgyMB619gCdybSkzKSQ,1605
8
- RDG_Networks-0.0.1.dist-info/LICENSE.txt,sha256=Zlv8517YKFuHaaqksoTKeIiQBl9DGxhUdb_0kJg0NOE,1066
9
- RDG_Networks-0.0.1.dist-info/METADATA,sha256=FCjNA3ZA58InXcrgA-QeTkg6RYycES-LYj7K7Rk0Rn4,503
10
- RDG_Networks-0.0.1.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
11
- RDG_Networks-0.0.1.dist-info/entry_points.txt,sha256=4LC5qJH7VKpjuuhDR3HpJulO4qy9K5UlAUOGBg6ctxA,268
12
- RDG_Networks-0.0.1.dist-info/top_level.txt,sha256=4gUUYafD5Al9V8ZSiViVGYHpRMMCsCBcGgCNodk9Syg,13
13
- RDG_Networks-0.0.1.dist-info/RECORD,,