ubc-solar-physics 1.7.10__cp310-cp310-win_amd64.whl → 1.7.11__cp310-cp310-win_amd64.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
 
Binary file
@@ -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,6 +1,6 @@
1
- physics_rs.cp310-win_amd64.pyd,sha256=vBurKdf0Hm2xnqK9utMK-DGMfzesA-m-bLjUXPoXFXw,403968
1
+ physics_rs.cp310-win_amd64.pyd,sha256=tPzjm7Ur2FiwPbrkk44N199yUvie-YNPZcwbMQA2Lpg,403968
2
2
  physics/__init__.py,sha256=jRV9J_eGh0vNXEfFrILqcM6xxVjyqm3XwKAg1B1IPBs,183
3
- physics/_version.py,sha256=zbyvF0vz47l4h-H6959cL3Wr3-3fvCmzNwo4YNvowmQ,429
3
+ physics/_version.py,sha256=HRGXDoKiVvyY2WqCYXoS14uXeoAhguOg9D8CgX6rGAs,429
4
4
  physics/environment.rs,sha256=OghmBkvHLZvzzuVsXUmV2lR3X_tEwuB9sT2TGZLQC6E,36
5
5
  physics/lib.rs,sha256=bvDbtWtLCH-YGSgvzsdKj-S7QVySc3sree6GUqfs-m0,7332
6
6
  physics/models.rs,sha256=747ABP-D1XKxA6X_MNh1PbmST0zsxpxhP_pEWjbR46c,63
@@ -9,8 +9,8 @@ physics/environment/environment.rs,sha256=-VztdV2_GSlRbyIV_Pt6gKPVxpuNXpjLgAmoer
9
9
  physics/environment/gis.rs,sha256=9R7G0cjf5PxQAz-CSryA6-KGfrh1eSwRhJ6qF8KfjDE,12
10
10
  physics/environment/meteorology.rs,sha256=naWb7qYrtMkCE_tLAkM474fmxaufhCkyhy3TTUQ4Yw4,20
11
11
  physics/environment/gis/__init__.py,sha256=SjqhVjuDbZln636zOFROq1tWPfadghkuYz8aheflyxA,96
12
- physics/environment/gis/base_gis.py,sha256=BsrF-r67XMwhjeKqB3zuNOmiC4jFV7HXfpZ_g6ZPASE,1084
13
- physics/environment/gis/gis.py,sha256=jESOVeHvBRxA1SXTLrjbLo5eqH1AmMmHNm1FVLY5FTU,13580
12
+ physics/environment/gis/base_gis.py,sha256=uURk7bcbhMRT8Zoeqm8MJ_z4qnn3X1eG4owt3TpQb10,1118
13
+ physics/environment/gis/gis.py,sha256=jUO4iU9mWcx4wB8Mh4qJYVcTY8Ktyk7u2g4KTEa8Fmg,13728
14
14
  physics/environment/gis/gis.rs,sha256=nyCekzEJCJTpm4Zy6shIm0AEoGsk6TljP-j7KlLn-38,4978
15
15
  physics/environment/meteorology/__init__.py,sha256=mvjJw_0nNLIdh80F_yTaRC3Sw3oI-z1L0J5cOK_ei0k,157
16
16
  physics/environment/meteorology/base_meteorology.py,sha256=n0JsEXQLuciEatQp_S0QBXd_HQzCY5LeIQeVKgl5O-8,2487
@@ -50,8 +50,8 @@ physics/models/regen/base_regen.py,sha256=lY44jrTSHEo8Xv7hKCjo4C3Jx0PUgilyITHwQc
50
50
  physics/models/regen/basic_regen.py,sha256=SZl7nj75w-3uczfNfaZAMtcC4WO8M2mTmwbnB0HmrtU,2402
51
51
  physics/models/regen/regen.rs,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
52
  physics_rs/__init__.pyi,sha256=e34ADL3WjwR8ioVMwa0iDxgbgqUXrwNZvk_WVmrlkho,4346
53
- ubc_solar_physics-1.7.10.dist-info/LICENSE,sha256=1Vq7OikLHh7N0xsmTPHCmPkOxk1AXrMK9k1a1icQFlk,1087
54
- ubc_solar_physics-1.7.10.dist-info/METADATA,sha256=xDRYcUanrdpqeTSW_n1hoWM1GqM1TkJ740D_auWWH0s,5145
55
- ubc_solar_physics-1.7.10.dist-info/WHEEL,sha256=BTGB_zWzsHeUI4fhF6ubao5Zqn1dFwb9evsd--VEXVY,101
56
- ubc_solar_physics-1.7.10.dist-info/top_level.txt,sha256=jBZ5oyp1QQOrKodHG2UH9PMPEiZtza_q3y6fp3lEmQs,19
57
- ubc_solar_physics-1.7.10.dist-info/RECORD,,
53
+ ubc_solar_physics-1.7.11.dist-info/LICENSE,sha256=1Vq7OikLHh7N0xsmTPHCmPkOxk1AXrMK9k1a1icQFlk,1087
54
+ ubc_solar_physics-1.7.11.dist-info/METADATA,sha256=yV3QjsBa0ZhyT5A9_xokZtxzj3pkJzqvCIG955SsObo,5145
55
+ ubc_solar_physics-1.7.11.dist-info/WHEEL,sha256=BTGB_zWzsHeUI4fhF6ubao5Zqn1dFwb9evsd--VEXVY,101
56
+ ubc_solar_physics-1.7.11.dist-info/top_level.txt,sha256=jBZ5oyp1QQOrKodHG2UH9PMPEiZtza_q3y6fp3lEmQs,19
57
+ ubc_solar_physics-1.7.11.dist-info/RECORD,,