ubc-solar-physics 1.7.10__cp312-cp312-macosx_10_12_x86_64.whl → 1.7.11__cp312-cp312-macosx_10_12_x86_64.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.
physics/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.7.10'
16
- __version_tuple__ = version_tuple = (1, 7, 10)
15
+ __version__ = version = '1.7.11'
16
+ __version_tuple__ = version_tuple = (1, 7, 11)
@@ -33,6 +33,7 @@ class BaseGIS(ABC):
33
33
  average_lap_speeds: ArrayLike,
34
34
  simulation_dt: int,
35
35
  driving_allowed: ArrayLike,
36
- idle_time: int
36
+ idle_time: int,
37
+ laps_per_speed: int
37
38
  ) -> NDArray[float]:
38
39
  raise NotImplementedError
@@ -88,7 +88,8 @@ class GIS(BaseGIS):
88
88
  average_lap_speeds: ArrayLike,
89
89
  simulation_dt: int,
90
90
  driving_allowed: ArrayLike,
91
- idle_time: int
91
+ idle_time: int,
92
+ laps_per_speed: int
92
93
  ) -> NDArray[float]:
93
94
  """
94
95
  Generate valid driving speeds as a simulation-time array given a set of average speeds for each
@@ -105,6 +106,7 @@ class GIS(BaseGIS):
105
106
  are allowed to drive, and `False` is when we are not. Requires that (at least) the first element is
106
107
  `False` due to the race beginning in the morning before we are allowed to drive.
107
108
  :param idle_time: The length of time to pause driving upon processing a "0m/s" average speed.
109
+ :param laps_per_speed: The amount of laps that we expect to use with each speed value.
108
110
  :return: A simulation-time array of driving speeds in m/s, or an error if there weren't enough
109
111
  laps provided to fill the entire simulation time.
110
112
  """
@@ -112,7 +114,7 @@ class GIS(BaseGIS):
112
114
  np.array(average_lap_speeds).astype(np.float64),
113
115
  simulation_dt,
114
116
  np.array(driving_allowed).astype(bool),
115
- self.path_length,
117
+ self.path_length * laps_per_speed,
116
118
  idle_time
117
119
  )
118
120
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ubc-solar-physics
3
- Version: 1.7.10
3
+ Version: 1.7.11
4
4
  Summary: UBC Solar's Simulation Environment
5
5
  Author: Fisher Xue, Mihir Nimgade, Chris Chang, David Widjaja, Justin Hua, Ilya Veksler, Renu Rajamagesh, Ritchie Xia, Erik Langille, Chris Aung, Nicolas Ric, Ishaan Trivedi, Jason Liang, Felix Toft, Mack Wilson, Jonah Lee, Tamzeed Quazi, Joshua Riefman
6
6
  Author-email: UBC Solar <strategy@ubcsolar.com>
@@ -1,11 +1,11 @@
1
1
  physics_rs.cpython-312-darwin.so,sha256=z6Z6k79cqaMIciw2HJKzV02ykoLmXxXE91tTBiq0am0,678100
2
+ ubc_solar_physics-1.7.11.dist-info/RECORD,,
3
+ ubc_solar_physics-1.7.11.dist-info/LICENSE,sha256=DAej6EJNqQWTair3XPAQiqoJbly4BAT1JMOsZxoZvH0,1066
4
+ ubc_solar_physics-1.7.11.dist-info/WHEEL,sha256=21fdHO2SyBOt18Wu0xihlb6XwWRW98FLg_zmZNNaTTs,111
5
+ ubc_solar_physics-1.7.11.dist-info/top_level.txt,sha256=jBZ5oyp1QQOrKodHG2UH9PMPEiZtza_q3y6fp3lEmQs,19
6
+ ubc_solar_physics-1.7.11.dist-info/METADATA,sha256=dvnlQ8xbJnPWDzpvhi3MU6UIDqI2CzQlm1BQMV0-uhI,5003
2
7
  physics_rs/__init__.pyi,sha256=bMMIbLFgpSYq37i9xHpvdoVlMuI7IRZ9bdbLCcIBeO8,4235
3
- ubc_solar_physics-1.7.10.dist-info/RECORD,,
4
- ubc_solar_physics-1.7.10.dist-info/LICENSE,sha256=DAej6EJNqQWTair3XPAQiqoJbly4BAT1JMOsZxoZvH0,1066
5
- ubc_solar_physics-1.7.10.dist-info/WHEEL,sha256=21fdHO2SyBOt18Wu0xihlb6XwWRW98FLg_zmZNNaTTs,111
6
- ubc_solar_physics-1.7.10.dist-info/top_level.txt,sha256=jBZ5oyp1QQOrKodHG2UH9PMPEiZtza_q3y6fp3lEmQs,19
7
- ubc_solar_physics-1.7.10.dist-info/METADATA,sha256=KgEXXHqyRjc7hEyItaK-Jt7Spql8AogcahYgildjhGY,5003
8
- physics/_version.py,sha256=BcMHo4x9krobfBaTHQOg-i0s8jUuLIhj-_tcl9epPPg,413
8
+ physics/_version.py,sha256=TBdoKbRERu0RLmgOlLn0qO1c9vmbdCN_H7OMlZVRf8o,413
9
9
  physics/lib.rs,sha256=BGgj8jwbWQ7mkBDfKyTqH5jZGKAAb9U0sSByUaI-Los,7169
10
10
  physics/models.rs,sha256=N5342VhLaLSlPLHZ7s1VDIEPY76-rQN03lY_wd2HS1A,59
11
11
  physics/__init__.py,sha256=7939mrehCy0ogupHq26hUk1MkAjh2xmbD30GscdC_D8,169
@@ -51,7 +51,7 @@ physics/environment/meteorology/base_meteorology.py,sha256=d5TDNLUIBmTkLtJhv9qUq
51
51
  physics/environment/meteorology/irradiant_meteorology.py,sha256=1kqX4nEOUw-CYrLTusG6BdoZbZt_GEpfKMyey8YzLr0,5615
52
52
  physics/environment/meteorology/clouded_meteorology.py,sha256=aEqlozaMOyhhxGK7CCD6BVHAn_HZDpSAUwGUngikkp4,27665
53
53
  physics/environment/meteorology/meteorology.rs,sha256=Q3toiZv8M1updhoAnFDZ87YPy1afC9chUkF2IP9uA-I,5004
54
- physics/environment/gis/base_gis.py,sha256=eVr4G7wAGlx6VsrCt2OuI8WzUMM50h2sHHvw8BOBur8,1046
54
+ physics/environment/gis/base_gis.py,sha256=hoykIc-ZicJBTklI2vaucsvocjqDab9dvxY4pwvlKcc,1079
55
55
  physics/environment/gis/__init__.py,sha256=Kp85UC1WvcAMBxbgvwaMTEk8ELYzwUJLCtP0e1hnMvM,90
56
56
  physics/environment/gis/gis.rs,sha256=_vXYMr7vNCC8Ip3CpQdyl6FA_3tCvOZeJd0-J5t4Eps,4865
57
- physics/environment/gis/gis.py,sha256=EAFDudUmLWCBtM5A_LO3-MV-98tj-Q3s7S2WaoJjUGg,13209
57
+ physics/environment/gis/gis.py,sha256=Y-pznuK5f0HRTiiI29fm7YeHiGFjOuTivnNMp6AlKTQ,13355