UBC Solar Physics
UBC Solar's physics and environment models for simulating our groundbreaking solar cars.
The API is currently unstable, and backwards compatibility may not be maintained.
Requirements
Versions indicated are recommended
Installation
First, clone this repository.
git clone https://github.com/UBC-Solar/physics.git
Then, create and activate a virtual environment. Next, install dependencies in editable mode.
pip3 install -e .
Getting Started
Example of calculating solar arrays produced energy
from physics.models.arrays import BasicArray
import numpy as np
efficiency = 0.25 # 25.0% efficient
panel_size = 4.0 # 4.0m^2 of panels
tick = 1.0 # 1.0s interval
arrays = BasicArray(panel_efficiency=efficiency, panel_size=panel_size)
irradiance = np.full([5], 400.0) # 10 seconds of 400.0W/m^2 irradiance
solar_power_produced = arrays.calculate_produced_energy(solar_irradiance=irradiance, tick=tick)
assert np.array_equal(solar_power_produced, np.array([400.0, 400.0, 400.0, 400.0, 400.0]))
Appendix
Metadata
Release files for ubc-solar-physics 1.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ubc_solar_physics-1.9.1.tar.gz | 22.5 MB | Without provenance | Details for ubc_solar_physics-1.9.1.tar.gz |
Built distributions (wheels)
Total release size: 31.9 MB
Release files / ubc_solar_physics-1.9.1.tar.gz
| Download URL | ubc_solar_physics-1.9.1.tar.gz |
|---|---|
| Size | 22.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
594d11cdb3e92092834a9288a3c353dcf653cc717edb04e30ac2930f1789359d
|
|
BLAKE2b-256 checksum How to use checksums |
2d6dca790af6b0c9293c04a6bf78d6fb001f38568dd3240bbaa69e0587093d36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.23
|
Release files / ubc_solar_physics-1.9.1-cp313-cp313-win_amd64.whl
| Download URL | ubc_solar_physics-1.9.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 270.6 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9ce7a018abd8ac4c72a365cd347907a2c04c1ca3074c4b31ed900bd9e5beec85
|
|
BLAKE2b-256 checksum How to use checksums |
83a6b761f242388209e4f4825065738a12db8166806a8b74ca1addf7656b229e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / ubc_solar_physics-1.9.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ubc_solar_physics-1.9.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 429.3 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
a09e418c09c4371e65e3d46fca239bbde613559245d77527d9745cf9bee55d21
|
|
BLAKE2b-256 checksum How to use checksums |
90b5e46d0fd09e7b26924bdd1b39e26b0663a13f35d9fbcd4e6a239df32c29cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.23
|
Release files / ubc_solar_physics-1.9.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | ubc_solar_physics-1.9.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 414.8 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
2081c3cfdfed6ae98f1efef862f20dd2b89f18b0531f274f9d4fe65ad297f912
|
|
BLAKE2b-256 checksum How to use checksums |
3c392797b662d0dac4e9d5cbd876d57054f8246b74398ed6cc1ddf85bc06f967
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.23
|
Release files / ubc_solar_physics-1.9.1-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | ubc_solar_physics-1.9.1-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 377.8 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
124707ea07e91aff91ccc20bd910a208140cdd00aee675cfe1b6c9e2efca3ba4
|
|
BLAKE2b-256 checksum How to use checksums |
a26e170c96d2bc2a279b590f82a9308175f188fb791008761d54301013e9fcb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / ubc_solar_physics-1.9.1-cp313-cp313-macosx_10_13_x86_64.whl
| Download URL | ubc_solar_physics-1.9.1-cp313-cp313-macosx_10_13_x86_64.whl |
|---|---|
| Size | 387.2 kB |
| Tags | CPython 3.13 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
a2f16994df9b6c937f29b1a70a0c609af9b1f1f93ef383dfd1ed5da88ee9e6cd
|
|
BLAKE2b-256 checksum How to use checksums |
c99bf01dd2d00964266ecd1db89cca2131035fc4655051e35f4f5a58afc529ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / ubc_solar_physics-1.9.1-cp312-cp312-win_amd64.whl
| Download URL | ubc_solar_physics-1.9.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 270.6 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
16177e72589965a062bcdc57131bfa32def173377a962edbddaa5ffcfaa05a68
|
|
BLAKE2b-256 checksum How to use checksums |
82d1ba0de3f95a6d1bddce0eedccb6600aa8a73a206c628d48ca8994d42f4c43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / ubc_solar_physics-1.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ubc_solar_physics-1.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 429.3 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
97ee3edbb3fec08e1edab764ca39c3718cf77457a47812f809c38433c5823fec
|
|
BLAKE2b-256 checksum How to use checksums |
4690855c7e28ddf64346d69ea98ebb34d4c4e126b7bbfebbf2f4464debd34a6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.23
|
Release files / ubc_solar_physics-1.9.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | ubc_solar_physics-1.9.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 414.8 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
85fa00609f2271732fb6f80f6309aa55a0eeb6f97625bd7a62a63eaf706171d8
|
|
BLAKE2b-256 checksum How to use checksums |
8f08afa4058cab73cfab01b465968b1d79c3b36df1a6da9880540249d17bd034
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.23
|
Release files / ubc_solar_physics-1.9.1-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | ubc_solar_physics-1.9.1-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 377.8 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
897bf1df66b50e632d2cc1569a24faa7849b1ce55b2e44e9b21c9bfc58c8c0a9
|
|
BLAKE2b-256 checksum How to use checksums |
0e05dbfbfe49120a232c41511b77fb6af02b65179af26f3d69043b24a9737ff4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / ubc_solar_physics-1.9.1-cp312-cp312-macosx_10_12_x86_64.whl
| Download URL | ubc_solar_physics-1.9.1-cp312-cp312-macosx_10_12_x86_64.whl |
|---|---|
| Size | 387.2 kB |
| Tags | CPython 3.12 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
2c80e0067dc7e4cdc68ed1c1fdbbe7fd39c12358c93d7d4667f67b76cc4eeac3
|
|
BLAKE2b-256 checksum How to use checksums |
480ba603789d8bb98e94b9775d9dc3061605d8fa48f3260d748b135e9ae47bd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / ubc_solar_physics-1.9.1-cp311-cp311-win_amd64.whl
| Download URL | ubc_solar_physics-1.9.1-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 270.7 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
845240d7ee9420c7384faa623c8675218dc4a8de275842c27d4a209710fb7ebb
|
|
BLAKE2b-256 checksum How to use checksums |
a7543058641dfc2ac8645e12bea5c35e0f88c96886d6ee38a5abc9482ea6edb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / ubc_solar_physics-1.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ubc_solar_physics-1.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 429.3 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
796c8cbfaf23e765083640935f1ac9f28f309ad5985f1638326f56306a51fff6
|
|
BLAKE2b-256 checksum How to use checksums |
69e099aa6a69cbcf87ef4ba5097d248183b6c415b14df1fa6c186d581b3348e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.23
|
Release files / ubc_solar_physics-1.9.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | ubc_solar_physics-1.9.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 415.5 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
fb068dd59d2fd5fa2322b97501c6505ff2ac57fca46d696ec0da150226909248
|
|
BLAKE2b-256 checksum How to use checksums |
c6a91310d4e275c288427db4d503a3ed1d927ce3cc9756d590121b3dff49a57a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.23
|
Release files / ubc_solar_physics-1.9.1-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | ubc_solar_physics-1.9.1-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 377.4 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
69fae1f982a53f234ff75c93b3ba5cec57db83dbef0b476765e9ec92fa475350
|
|
BLAKE2b-256 checksum How to use checksums |
de19806e42a0e34c556fa380dc047ebdb6e01b7b36b901ce118e2865dbfe6d6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / ubc_solar_physics-1.9.1-cp311-cp311-macosx_10_12_x86_64.whl
| Download URL | ubc_solar_physics-1.9.1-cp311-cp311-macosx_10_12_x86_64.whl |
|---|---|
| Size | 387.1 kB |
| Tags | CPython 3.11 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
548cc0aaa53fddb4ababb4f10cf029e98f4511ac32f48819dfab370f2aa41e89
|
|
BLAKE2b-256 checksum How to use checksums |
b8a8da311b5221a8be157b7b6fd728f9b734d6ae7a81d4ed2154cd086cd4f4f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / ubc_solar_physics-1.9.1-cp310-cp310-win_amd64.whl
| Download URL | ubc_solar_physics-1.9.1-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 270.7 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c3d44793f74176ea4139ca5333ae8df4d9544c759f59ca752071729998814d44
|
|
BLAKE2b-256 checksum How to use checksums |
a1cadc37112c79c174c5a6bda471087199ba9d6d731149d3c97a47f4a77d35e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / ubc_solar_physics-1.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ubc_solar_physics-1.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 429.2 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
35f56a86127ad881ca180fc86e5dadd7e3c58b8d96fc97ffb59399d45826a472
|
|
BLAKE2b-256 checksum How to use checksums |
43471c6854528ae9fc247a173ae63f5db288862a0a094c8e4813f82c4ed68f2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.23
|
Release files / ubc_solar_physics-1.9.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | ubc_solar_physics-1.9.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 415.5 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
e9887ff61fb4e7db10030f100678af291ff07f11fb42413587ed104433a02f15
|
|
BLAKE2b-256 checksum How to use checksums |
aa0087175b1e2d3fbe77118ed2985151742aa5d862d3cc52ca218ca878e0e8e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.23
|
Release files / ubc_solar_physics-1.9.1-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | ubc_solar_physics-1.9.1-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 377.2 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c6c12305a9587c94857a80b745dec4785da80da6e964e1db8b39753c1ca8261c
|
|
BLAKE2b-256 checksum How to use checksums |
a11ecc49a16212a7d42df10f1216377a205552086131ab0b712d5f021a23c6e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / ubc_solar_physics-1.9.1-cp310-cp310-macosx_10_12_x86_64.whl
| Download URL | ubc_solar_physics-1.9.1-cp310-cp310-macosx_10_12_x86_64.whl |
|---|---|
| Size | 386.6 kB |
| Tags | CPython 3.10 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
e2b4d243edd943410cde05e595b4b9d9e2c7d2674808bf5fb75f9ac0bcb301ad
|
|
BLAKE2b-256 checksum How to use checksums |
c145b1b827bb14b64d4332022bd09c59485dc1a2191501b73d540895fc99c5cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / ubc_solar_physics-1.9.1-cp39-cp39-win_amd64.whl
| Download URL | ubc_solar_physics-1.9.1-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 270.9 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3d6904b4d4357571637e67155d4ab89f10e25a27665d70d75cb1f49427472a07
|
|
BLAKE2b-256 checksum How to use checksums |
d027f609faceefde73edfd97a0b64c2a671c1bf320d4d28c1ea686774fd5895c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / ubc_solar_physics-1.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ubc_solar_physics-1.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 429.6 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
43423d8b1bec391e659134722526666b5514e1572a3b63737984bc96e47a16cc
|
|
BLAKE2b-256 checksum How to use checksums |
9644efc2da372cd21ae2a5c46b1a2ab81d42107c0db326344b66136cacb02eab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.23
|
Release files / ubc_solar_physics-1.9.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | ubc_solar_physics-1.9.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 415.8 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
787a36a660edcc2138907939297840d3cc0bcf22390c3e1ef726f00b1efa4f1c
|
|
BLAKE2b-256 checksum How to use checksums |
234f62589c848e7d4825122da594502a1d1bd9ec7b3be4424e7acadbf4c6b6e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.23
|
Release files / ubc_solar_physics-1.9.1-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | ubc_solar_physics-1.9.1-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 377.4 kB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b398347cc25f527572be982ca986d6bf44291ff8af5cbd4abc13bf74ba06012f
|
|
BLAKE2b-256 checksum How to use checksums |
c7017346b66ad96e81e939169ba64f5821cf7c5cd2789b76ae3f14fbc7c472dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / ubc_solar_physics-1.9.1-cp39-cp39-macosx_10_12_x86_64.whl
| Download URL | ubc_solar_physics-1.9.1-cp39-cp39-macosx_10_12_x86_64.whl |
|---|---|
| Size | 387.2 kB |
| Tags | CPython 3.9 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
0b63bac4f27bc4719d2cd5199254d229cc228401f5165bc2cdbd7c0b3c81d30a
|
|
BLAKE2b-256 checksum How to use checksums |
186c3a21eef5467bbbc49e5a2ce77e54b802ee3221968ca614808d735064c6da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Security for ubc-solar-physics 1.9.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.