ubc-solar-physics 1.3.0__tar.gz → 1.4.0__tar.gz
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.
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/PKG-INFO +2 -2
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/_version.py +9 -4
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/regen/basic_regen.py +14 -1
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/pyproject.toml +1 -1
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/ubc_solar_physics.egg-info/PKG-INFO +2 -2
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/ubc_solar_physics.egg-info/requires.txt +1 -1
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/.github/pull_request_template.md +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/.github/workflows/build_and_publish.yaml +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/.github/workflows/run_tests.yaml +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/.gitignore +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/.readthedocs.yaml +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/Cargo.lock +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/Cargo.toml +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/LICENSE +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/README.md +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/data.png +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/Makefile +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/_generate_version.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/docs_requirements.txt +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/make.bat +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/source/README.md +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/source/api.rst +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/source/conf.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/source/environment/gis.rst +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/source/environment/index.rst +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/source/environment/meteorology.rst +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/source/index.rst +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/source/models/arrays.rst +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/source/models/battery.rst +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/source/models/index.rst +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/source/models/lvs.rst +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/source/models/motor.rst +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/docs/source/models/regen.rst +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/battery_model_examples/battery_config.toml +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/battery_model_examples/battery_model_example.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/battery_model_examples/data_py.png +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/battery_model_examples/data_rust.png +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/data_query/current.csv +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/data_query/poetry.lock +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/data_query/pyproject.toml +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/data_query/query_data.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/data_query/voltage.csv +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/kalman_filter_examples/battery_config.toml +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/kalman_filter_examples/current.csv +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/kalman_filter_examples/kalman_filter_example.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/kalman_filter_examples/voltage.csv +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/__init__.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/__init__.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/environment.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/gis/__init__.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/gis/base_gis.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/gis/gis.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/gis/gis.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/gis.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/meteorology/__init__.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/meteorology/base_meteorology.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/meteorology/clouded_meteorology.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/meteorology/irradiant_meteorology.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/meteorology/meteorology.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/meteorology.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/lib.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/__init__.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/arrays/__init__.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/arrays/arrays.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/arrays/base_array.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/arrays/basic_array.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/arrays.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/battery/__init__.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/battery/base_battery.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/battery/basic_battery.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/battery/battery.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/battery/battery_config.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/battery/battery_config.toml +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/battery/battery_model.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/battery/kalman_filter.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/battery.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/constants.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/lvs/__init__.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/lvs/base_lvs.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/lvs/basic_lvs.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/lvs/lvs.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/lvs.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/motor/__init__.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/motor/base_motor.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/motor/basic_motor.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/motor/motor.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/motor.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/regen/__init__.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/regen/base_regen.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/regen/regen.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/regen.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models.rs +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/setup.cfg +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/tests/battery_config.toml +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/tests/kalman_filter_tests/current.csv +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/tests/kalman_filter_tests/test_basic_kalman_filter.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/tests/kalman_filter_tests/test_filter_real_data.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/tests/kalman_filter_tests/voltage.csv +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/tests/test_versioning.py +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/ubc_solar_physics.egg-info/SOURCES.txt +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/ubc_solar_physics.egg-info/dependency_links.txt +0 -0
- {ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/ubc_solar_physics.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: ubc-solar-physics
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.4.0
|
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>
|
@@ -42,7 +42,7 @@ License-File: LICENSE
|
|
42
42
|
Requires-Dist: backports.tarfile==1.2.0
|
43
43
|
Requires-Dist: certifi==2024.7.4
|
44
44
|
Requires-Dist: charset-normalizer==3.3.2
|
45
|
-
Requires-Dist: dill
|
45
|
+
Requires-Dist: dill>=0.3.8
|
46
46
|
Requires-Dist: haversine==2.8.1
|
47
47
|
Requires-Dist: idna==3.7
|
48
48
|
Requires-Dist: importlib_metadata==8.2.0
|
@@ -1,8 +1,13 @@
|
|
1
|
-
# file generated by
|
1
|
+
# file generated by setuptools-scm
|
2
2
|
# don't change, don't track in version control
|
3
|
+
|
4
|
+
__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
|
5
|
+
|
3
6
|
TYPE_CHECKING = False
|
4
7
|
if TYPE_CHECKING:
|
5
|
-
from typing import Tuple
|
8
|
+
from typing import Tuple
|
9
|
+
from typing import Union
|
10
|
+
|
6
11
|
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
7
12
|
else:
|
8
13
|
VERSION_TUPLE = object
|
@@ -12,5 +17,5 @@ __version__: str
|
|
12
17
|
__version_tuple__: VERSION_TUPLE
|
13
18
|
version_tuple: VERSION_TUPLE
|
14
19
|
|
15
|
-
__version__ = version = '1.
|
16
|
-
__version_tuple__ = version_tuple = (1,
|
20
|
+
__version__ = version = '1.4.0'
|
21
|
+
__version_tuple__ = version_tuple = (1, 4, 0)
|
@@ -12,6 +12,18 @@ class BasicRegen(BaseRegen):
|
|
12
12
|
self.vehicle_mass = vehicle_mass
|
13
13
|
self.kmh_to_mps = 0.278
|
14
14
|
|
15
|
+
def get_regen_efficiency(self, speed_array):
|
16
|
+
"""
|
17
|
+
Returns a numpy array of regen efficiency percentage based on the vehicle speed in m/s.
|
18
|
+
|
19
|
+
:param speed_array: a numpy array of speeds in m/s
|
20
|
+
:returns: numpy array of regen efficiency percentage
|
21
|
+
"""
|
22
|
+
# Efficiency polynomial, more details can be found in regen_analysis folder located in data_analysis
|
23
|
+
efficiency_poly = [0.022288416685942, 0.026545396753597]
|
24
|
+
|
25
|
+
return np.polyval(efficiency_poly, speed_array)
|
26
|
+
|
15
27
|
def calculate_produced_energy(self, speed_kmh, gis_route_elevations, min_regen_speed, max_power):
|
16
28
|
"""
|
17
29
|
Returns a numpy array containing the energy produced by regen
|
@@ -29,7 +41,8 @@ class BasicRegen(BaseRegen):
|
|
29
41
|
|
30
42
|
# create regen energy produced array
|
31
43
|
# if delta_energy is negative, we regen that energy back at the set efficiency rate; else 0 energy regen
|
32
|
-
|
44
|
+
efficiencies = self.get_regen_efficiency(speed_ms)
|
45
|
+
produced_energy = np.where(delta_energy < 0, abs(delta_energy) * efficiencies, 0)
|
33
46
|
|
34
47
|
# Regen does not occur below a certain speed
|
35
48
|
produced_energy = np.where(speed_ms >= min_regen_speed, produced_energy, 0)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: ubc-solar-physics
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.4.0
|
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>
|
@@ -42,7 +42,7 @@ License-File: LICENSE
|
|
42
42
|
Requires-Dist: backports.tarfile==1.2.0
|
43
43
|
Requires-Dist: certifi==2024.7.4
|
44
44
|
Requires-Dist: charset-normalizer==3.3.2
|
45
|
-
Requires-Dist: dill
|
45
|
+
Requires-Dist: dill>=0.3.8
|
46
46
|
Requires-Dist: haversine==2.8.1
|
47
47
|
Requires-Dist: idna==3.7
|
48
48
|
Requires-Dist: importlib_metadata==8.2.0
|
File without changes
|
{ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/.github/workflows/build_and_publish.yaml
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/battery_model_examples/data_py.png
RENAMED
File without changes
|
{ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/battery_model_examples/data_rust.png
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/kalman_filter_examples/current.csv
RENAMED
File without changes
|
File without changes
|
{ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/examples/kalman_filter_examples/voltage.csv
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/meteorology/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/environment/meteorology/meteorology.rs
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/battery/battery_config.py
RENAMED
File without changes
|
{ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/physics/models/battery/battery_config.toml
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/ubc_solar_physics.egg-info/dependency_links.txt
RENAMED
File without changes
|
{ubc_solar_physics-1.3.0 → ubc_solar_physics-1.4.0}/ubc_solar_physics.egg-info/top_level.txt
RENAMED
File without changes
|