Skip to main content

UBC Solar Physics

Documentation Status

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

  • Git 1
  • Python >=3.9 2
  • Rustc >=1.79.0 3
  • Cargo >=1.79.0 4

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

  1. use git --version to verify version ↩

  2. use python3 --version to verify version ↩

  3. use rustc --version to verify version ↩

  4. use cargo --version to verify version ↩

Metadata

Release files for ubc-solar-physics 1.9.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for ubc-solar-physics 1.9.2
File Actions
ubc_solar_physics-1.9.2-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for ubc_solar_physics-1.9.2-cp313-cp313-win_amd64.whl
ubc_solar_physics-1.9.2-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for ubc_solar_physics-1.9.2-cp313-cp313-macosx_11_0_arm64.whl
ubc_solar_physics-1.9.2-cp313-cp313-macosx_10_13_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.13+ x86-64 Details for ubc_solar_physics-1.9.2-cp313-cp313-macosx_10_13_x86_64.whl
ubc_solar_physics-1.9.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for ubc_solar_physics-1.9.2-cp312-cp312-win_amd64.whl
ubc_solar_physics-1.9.2-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for ubc_solar_physics-1.9.2-cp312-cp312-macosx_11_0_arm64.whl
ubc_solar_physics-1.9.2-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details for ubc_solar_physics-1.9.2-cp312-cp312-macosx_10_12_x86_64.whl
ubc_solar_physics-1.9.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for ubc_solar_physics-1.9.2-cp311-cp311-win_amd64.whl
ubc_solar_physics-1.9.2-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for ubc_solar_physics-1.9.2-cp311-cp311-macosx_11_0_arm64.whl
ubc_solar_physics-1.9.2-cp311-cp311-macosx_10_12_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.12+ x86-64 Details for ubc_solar_physics-1.9.2-cp311-cp311-macosx_10_12_x86_64.whl
ubc_solar_physics-1.9.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for ubc_solar_physics-1.9.2-cp310-cp310-win_amd64.whl
ubc_solar_physics-1.9.2-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for ubc_solar_physics-1.9.2-cp310-cp310-macosx_11_0_arm64.whl
ubc_solar_physics-1.9.2-cp310-cp310-macosx_10_12_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.12+ x86-64 Details for ubc_solar_physics-1.9.2-cp310-cp310-macosx_10_12_x86_64.whl
ubc_solar_physics-1.9.2-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for ubc_solar_physics-1.9.2-cp39-cp39-win_amd64.whl
ubc_solar_physics-1.9.2-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for ubc_solar_physics-1.9.2-cp39-cp39-macosx_11_0_arm64.whl
ubc_solar_physics-1.9.2-cp39-cp39-macosx_10_12_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.12+ x86-64 Details for ubc_solar_physics-1.9.2-cp39-cp39-macosx_10_12_x86_64.whl

Total release size: 5.1 MB

Release files / ubc_solar_physics-1.9.2-cp313-cp313-win_amd64.whl

Download URL ubc_solar_physics-1.9.2-cp313-cp313-win_amd64.whl
Size 268.8 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
433337155a72d8137223c6ec50e6d19be0c7217a956b2ff38ee14970c9c74996
BLAKE2b-256 checksum
How to use checksums
b4431454ab3a3d0389d322118179f0a6688728913c199e952ce79df60621604e
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.2-cp313-cp313-macosx_11_0_arm64.whl

Download URL ubc_solar_physics-1.9.2-cp313-cp313-macosx_11_0_arm64.whl
Size 368.9 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2bad9b1ea6eed53b91353451df0309e6bdc45747c14c1b8a8304e6f759b15946
BLAKE2b-256 checksum
How to use checksums
21338f93fd52e21d4e54ae29d754bdec3d1835ab3317a212db715c6871eba2d6
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.2-cp313-cp313-macosx_10_13_x86_64.whl

Download URL ubc_solar_physics-1.9.2-cp313-cp313-macosx_10_13_x86_64.whl
Size 373.9 kB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
1f8f8e3de52855a2cb55d3d9804e2ea4e1d13240b10c4fbf1fa0ad288f6a310b
BLAKE2b-256 checksum
How to use checksums
1875e71d7d7f81dad9b148652e34e9ab5371d4ddc46f68ada76f362d4a43c115
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.2-cp312-cp312-win_amd64.whl

Download URL ubc_solar_physics-1.9.2-cp312-cp312-win_amd64.whl
Size 268.8 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
1b0effdd1a8d269a2b6282c201e7e7be95f200fa7e3837a4ffc1aa86a59acb64
BLAKE2b-256 checksum
How to use checksums
5eedbace81cb2dd931944dcdaaddbc8344ea0b2074236fccdc7ae8433c6edd0b
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.2-cp312-cp312-macosx_11_0_arm64.whl

Download URL ubc_solar_physics-1.9.2-cp312-cp312-macosx_11_0_arm64.whl
Size 368.9 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
fb32a4080fd8456cc605a85f70051e24f7d3be876bfb135f22a1759c9c553d50
BLAKE2b-256 checksum
How to use checksums
8f42fd9eda0b24c28b2643ed06d028c2fb9b17b740214c685d76af93950c33b1
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.2-cp312-cp312-macosx_10_12_x86_64.whl

Download URL ubc_solar_physics-1.9.2-cp312-cp312-macosx_10_12_x86_64.whl
Size 373.9 kB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
18a7f95512e4e551f54c4c879786de0e434e5b4e47af77bd30523d1587fe6f80
BLAKE2b-256 checksum
How to use checksums
89ac20524a26839ca2fcb21c478f4595566b1883f43c6ecf9b539aa45f1585d4
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.2-cp311-cp311-win_amd64.whl

Download URL ubc_solar_physics-1.9.2-cp311-cp311-win_amd64.whl
Size 269.4 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
9744133d4ec2ba481b6ccf8c6a929b6fc7d919f4cbea4d3f32596679ed5313c5
BLAKE2b-256 checksum
How to use checksums
93ecf86a901f8a9df1079d87633f441eab92e8066a5eaa3c1c4dcf66a963bc6a
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.2-cp311-cp311-macosx_11_0_arm64.whl

Download URL ubc_solar_physics-1.9.2-cp311-cp311-macosx_11_0_arm64.whl
Size 369.0 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
83b698083c2c0e08ff9a072ef5c0e33d1b78f9218e7d06b481a3d8f791f124f1
BLAKE2b-256 checksum
How to use checksums
083432b6401babc0c1fd497deabfac1d2d2b6b07c5d865656d3592ddaf8747cf
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.2-cp311-cp311-macosx_10_12_x86_64.whl

Download URL ubc_solar_physics-1.9.2-cp311-cp311-macosx_10_12_x86_64.whl
Size 375.2 kB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
282f1af2fdc3b12064e6dfa748c23acfa79b2e74189d97efac8efa62e19d0a1b
BLAKE2b-256 checksum
How to use checksums
daeeddfa328c2c323694d03bfb21748e516a81e15db6b97acfc0b7dde1fb637d
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.2-cp310-cp310-win_amd64.whl

Download URL ubc_solar_physics-1.9.2-cp310-cp310-win_amd64.whl
Size 268.6 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
77ea1ecbe4fdd9a3db0904dd62f3c333cfd64601aef081c8a771d9a2744846fb
BLAKE2b-256 checksum
How to use checksums
3a32fca09faf97c9c61896adc25c11611e7fc198567c63358b4b3d5d36d25b3c
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.2-cp310-cp310-macosx_11_0_arm64.whl

Download URL ubc_solar_physics-1.9.2-cp310-cp310-macosx_11_0_arm64.whl
Size 368.7 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
235220b0ff4517a3d48ad38ef4e07214cced96642299006cd34fd6dbeaba7d77
BLAKE2b-256 checksum
How to use checksums
8e4fea0607c26c24285f7cf899a7eca3883b68c4758130f34644704d5c17ac72
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.2-cp310-cp310-macosx_10_12_x86_64.whl

Download URL ubc_solar_physics-1.9.2-cp310-cp310-macosx_10_12_x86_64.whl
Size 374.4 kB
Tags CPython 3.10 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ff82d0014ee598c2e99d5d33209bbd3fc264dc3b7ab4fc507f44b8789a71902a
BLAKE2b-256 checksum
How to use checksums
ccef1cb15f22c56ba98cec21b3e8c91438c0927d11ab4215ee75ee427c1ee77c
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.2-cp39-cp39-win_amd64.whl

Download URL ubc_solar_physics-1.9.2-cp39-cp39-win_amd64.whl
Size 268.9 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
7d82eb7db2dc83bcd7e6fb7dc30a97255b056349fcfa20001483ae64a09c2a85
BLAKE2b-256 checksum
How to use checksums
a070e31ce04ef88c9710a08a1bdd0285eefd0f2e13f2d8514b8759c6fdd7b228
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.2-cp39-cp39-macosx_11_0_arm64.whl

Download URL ubc_solar_physics-1.9.2-cp39-cp39-macosx_11_0_arm64.whl
Size 368.9 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e15a26f95e9a5ad53d43d23b34724d49e11525a79209e862dc1688445e33c15a
BLAKE2b-256 checksum
How to use checksums
c418602751ae3cb3ca45a4ba83a7c791380b75a03a905b566c5a5f10399de8f1
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.2-cp39-cp39-macosx_10_12_x86_64.whl

Download URL ubc_solar_physics-1.9.2-cp39-cp39-macosx_10_12_x86_64.whl
Size 374.6 kB
Tags CPython 3.9 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8aeaf53c808ee88b5c04d8de590138138b0fd344cc7352afc015dfceb3ec5eb3
BLAKE2b-256 checksum
How to use checksums
30018589d7fd700c58d09e3946c5ee64d4c49f419a94758fcee4de6a26dee982
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.2

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.

Release history Release notifications | RSS feed

This release

1.9.2 This release

15 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page