ubc-solar-physics 1.7.9__cp313-cp313-macosx_10_13_x86_64.whl → 1.7.11__cp313-cp313-macosx_10_13_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 +2 -2
- physics/environment/gis/base_gis.py +2 -1
- physics/environment/gis/gis.py +4 -2
- {ubc_solar_physics-1.7.9.dist-info → ubc_solar_physics-1.7.11.dist-info}/METADATA +1 -1
- {ubc_solar_physics-1.7.9.dist-info → ubc_solar_physics-1.7.11.dist-info}/RECORD +8 -8
- {ubc_solar_physics-1.7.9.dist-info → ubc_solar_physics-1.7.11.dist-info}/LICENSE +0 -0
- {ubc_solar_physics-1.7.9.dist-info → ubc_solar_physics-1.7.11.dist-info}/WHEEL +0 -0
- {ubc_solar_physics-1.7.9.dist-info → ubc_solar_physics-1.7.11.dist-info}/top_level.txt +0 -0
physics/_version.py
CHANGED
physics/environment/gis/gis.py
CHANGED
@@ -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.
|
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-313-darwin.so,sha256=ml-PX5_XS-lk5Z4e3v3qtO1_sj7S_g0YD2Sr9wMEM8c,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=5Q_oLTPS1iW6Jo23q21fLUCtOhnuNqPo6_z8823-Gdg,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
|
-
|
4
|
-
ubc_solar_physics-1.7.9.dist-info/LICENSE,sha256=DAej6EJNqQWTair3XPAQiqoJbly4BAT1JMOsZxoZvH0,1066
|
5
|
-
ubc_solar_physics-1.7.9.dist-info/WHEEL,sha256=5Q_oLTPS1iW6Jo23q21fLUCtOhnuNqPo6_z8823-Gdg,111
|
6
|
-
ubc_solar_physics-1.7.9.dist-info/top_level.txt,sha256=jBZ5oyp1QQOrKodHG2UH9PMPEiZtza_q3y6fp3lEmQs,19
|
7
|
-
ubc_solar_physics-1.7.9.dist-info/METADATA,sha256=IPcO2oDrlSGVbRG725DqFx-PHqYZMUSCml95POqMPBk,5002
|
8
|
-
physics/_version.py,sha256=ODwgXLJxyAG069GuB0hTip534M1pf6WoBdbcnmuVFy0,411
|
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=
|
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=
|
57
|
+
physics/environment/gis/gis.py,sha256=Y-pznuK5f0HRTiiI29fm7YeHiGFjOuTivnNMp6AlKTQ,13355
|
File without changes
|
File without changes
|
File without changes
|