RDG-Networks 0.2.0__tar.gz → 0.2.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (19) hide show
  1. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/PKG-INFO +1 -1
  2. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/RDG_Networks.egg-info/PKG-INFO +1 -1
  3. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/RDG_networks/generate_line_segments_dynamic.py +3 -2
  4. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/setup.py +1 -1
  5. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/LICENSE.txt +0 -0
  6. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/RDG_Networks.egg-info/SOURCES.txt +0 -0
  7. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/RDG_Networks.egg-info/dependency_links.txt +0 -0
  8. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/RDG_Networks.egg-info/entry_points.txt +0 -0
  9. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/RDG_Networks.egg-info/requires.txt +0 -0
  10. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/RDG_Networks.egg-info/top_level.txt +0 -0
  11. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/RDG_networks/Classes.py +0 -0
  12. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/RDG_networks/__init__.py +0 -0
  13. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/RDG_networks/draw_segments.py +0 -0
  14. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/RDG_networks/generate_line_network.py +0 -0
  15. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/RDG_networks/generate_line_segments.py +0 -0
  16. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/RDG_networks/get_intersection_segments.py +0 -0
  17. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/RDG_networks/sample_in_polygon.py +0 -0
  18. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/README.md +0 -0
  19. {RDG-Networks-0.2.0 → RDG-Networks-0.2.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: RDG-Networks
3
- Version: 0.2.0
3
+ Version: 0.2.1
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: RDG-Networks
3
- Version: 0.2.0
3
+ Version: 0.2.1
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
@@ -154,7 +154,7 @@ def transform_to_standard_lines(lines: List[Dict[str, Any]]) -> List[LineSegment
154
154
 
155
155
  return segments
156
156
 
157
- def generate_line_segments_dynamic(size: int, dt: float, epsilon: float, time: float) -> List[LineSegment]:
157
+ def generate_line_segments_dynamic(size: int, dt: float, epsilon: float, time: float, angles='uniform') -> List[LineSegment]:
158
158
  """
159
159
  Generate line segments dynamically based on growth and intersection conditions.
160
160
 
@@ -163,6 +163,7 @@ def generate_line_segments_dynamic(size: int, dt: float, epsilon: float, time: f
163
163
  dt (float): Time increment.
164
164
  epsilon (float): Growth rate of the lines.
165
165
  time (float): Interval at which new lines are added.
166
+ angles (str or List): The allowed angles in the system (default is 'uniform' for random angles).
166
167
 
167
168
  Returns:
168
169
  List[LineSegment]: A list of LineSegment objects representing standard line segments.
@@ -183,7 +184,7 @@ def generate_line_segments_dynamic(size: int, dt: float, epsilon: float, time: f
183
184
  else:
184
185
  number_of_lines_to_add = int(t - (t % time))
185
186
  for _ in range(number_of_lines_to_add):
186
- lines = add_new_line(lines, line_id, t_total)
187
+ lines = add_new_line(lines, line_id, t_total, angles=angles)
187
188
  line_id += 1
188
189
 
189
190
  t = 0
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='RDG-Networks',
5
- version='0.2.0',
5
+ version='0.2.1',
6
6
  author='Niek Mooij',
7
7
  author_email='mooij.niek@gmail.com',
8
8
  description='Most of the code from the RDG Networks project',
File without changes
File without changes
File without changes