Git Product home page Git Product logo

oxrse_unit_conv's People

Contributors

alitaqiengox avatar dwright3 avatar martinjrobins avatar mjaquiery avatar shahriartj avatar smangham avatar

Watchers

 avatar  avatar

oxrse_unit_conv's Issues

Add new unit conversion: Sverdrup

Name (Abbreviation) of the unit you want to create?

Sv

What is its base SI unit?

m^3 s^-1

Would you like to provide more information about your unit?

1 Sverdrup = 1 x10^6 m^3 s^-1
Common unit in oceanography

Contributor Guide

Code of Conduct

Code can't be imported

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.

Code can't be run as CLI

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.

  • Add CLI to pyproject.toml
  • Add documentation to README.md

Support stone(st) weight conversion

Name (Abbreviation) of the unit you want to create?

St

What is its base SI unit?

Kilogram

Would you like to provide more information about your unit?

Stone unit for weight conversion

Contributor Guide

Code of Conduct

Add new unit

Name (Abbreviation) of the unit you want to create?

Sparkles

What is its base SI unit?

Sp

Would you like to provide more information about your unit?

Sp = w/d * 2^3

Contributor Guide

Code of Conduct

Add milimeter

Name (Abbreviation) of the unit you want to create?

mm

What is its base SI unit?

Meter

Would you like to provide more information about your unit?

No response

Contributor Guide

Code of Conduct

Pounds (lb) (weight)

What is the name of the unit you want to create?

Pound

Does it have an abbreviation?

lb

What is its base SI unit?

Kilogram

Contributor Guide

Code of Conduct

Add Kelvin as a unit

Name (Abbreviation) of the unit you want to create?

K

What is its base SI unit?

Kelvin

Would you like to provide more information about your unit?

Kelvin is an absolute scale for temperature, so 0 kelvin is absolute zero.

kelvin

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:

Kelvin to Celsius

k_to_c = lambda k: k - 273.15

Celsius to Kelvin

c_to_k = lambda c: c + 273.15

Kelvin to Fahrenheit

k_to_f = lambda k: k * 9/5 - 459.67

Fahrenheit to Kelvin

f_to_k = lambda f: (f + 459.67) * 5/9

Contributor Guide

Code of Conduct

Sparkle Added

Name (Abbreviation) of the unit you want to create?

sparkle

What is its base SI unit?

candela

Would you like to provide more information about your unit?

No response

Contributor Guide

Code of Conduct

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.