oxfordrse / oxrse_unit_conv Goto Github PK
View Code? Open in Web Editor NEWPython unit conversion library for teaching collaborative GitHub techniques.
License: MIT License
Python unit conversion library for teaching collaborative GitHub techniques.
License: MIT License
Sv
m^3 s^-1
1 Sverdrup = 1 x10^6 m^3 s^-1
Common unit in oceanography
As per email chain.
Currently, the code can't be pip installed then imported, as all the imports are local (i.e. units
rather than oxrse_unit_conv.units
). It only runs on the command-line by running main.py
from src/oxrse_unit_convs
.
It needs switching to package-type imports.
Here is test body for the issue!
The code contains click
code to allow it to be run on the command line, but there's no documentation and it's not hooked up in the pyproject script as a CLI.
pyproject.toml
README.md
Add the conversion from metres to square metres
Remove lines 47 and 48 from main.py
St
Kilogram
Stone unit for weight conversion
lumen
lum
I have asked @fcooper8472 to add this.
Please revisit this @gurjeetjagwani
Here is test body for the issue!
Sparkles
Sp
Sp = w/d * 2^3
Mole is mass / molecular weight. This can be added to the units.py script.
mm
Meter
No response
Pound
lb
Kilogram
K
Kelvin
Kelvin is an absolute scale for temperature, so 0 kelvin is absolute zero.
kelvin = Unit(name='kelvin', abbr='K', si=kelvin)
K = kelvin
I'm not sure what lambda function to write for Kelvin but here are the conversions from Celsius and Fahrenheit:
k_to_c = lambda k: k - 273.15
c_to_k = lambda c: c + 273.15
k_to_f = lambda k: k * 9/5 - 459.67
f_to_k = lambda f: (f + 459.67) * 5/9
sparkle
candela
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.