Coder Social home page Coder Social logo

buckingham's People

Contributors

mdipierro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

buckingham's Issues

quart conversion is wrong

I think it's supposed to be US gallons instead. Putting this into google yields 4 US quarts:

(473176473./125000000000) m^3 in quarts

question and doctest failure

Hello,

Nice to find libarary for dimensional analysis.
Is it possible to add dimension checking in function?
For example if calculating f=m*a in function f() then in the beginning there would be check that m is mass and a is acceleration.

I tired to run the doctest but got some failures. I think that all are related to division operation like below. I'm using python 3.5.2


File "buckingham.py", line 204, in main.Number
Failed example:
print(c.convert('kilometer/hour'))
Exception raised:
Traceback (most recent call last):
File "C:\Users\mikah\Anaconda3\lib\doctest.py", line 1321, in __run
compileflags, 1), test.globs)
File "<doctest main.Number[3]>", line 1, in
print(c.convert('kilometer/hour'))
File "buckingham.py", line 443, in convert
return self/other
TypeError: unsupported operand type(s) for /: 'Number' and 'Number'

pip install fails with IOError: [Errno 2] No such file or directory: 'README.md'

Full backtrace:

------------------------------------------------------------
/usr/bin/pip run on Wed Jan 27 20:39:11 2016
Downloading/unpacking buckingham
  Getting page https://pypi.python.org/simple/buckingham/
  URLs to search for versions for buckingham:
  * https://pypi.python.org/simple/buckingham/
  Analyzing links from page https://pypi.python.org/simple/buckingham/
    Found link https://pypi.python.org/packages/source/b/buckingham/buckingham-0.1.tar.gz#md5=c941019f7f0f554b94fe8168af0525fe (from https://pypi.python.org/simple/buckingham/), version: 0.1
  Downloading buckingham-0.1.tar.gz
  Downloading from URL https://pypi.python.org/packages/source/b/buckingham/buckingham-0.1.tar.gz#md5=c941019f7f0f554b94fe8168af0525fe (from https://pypi.python.org/simple/buckingham/)
  Running setup.py (path:/tmp/pip-build-L9zFtd/buckingham/setup.py) egg_info for package buckingham
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-L9zFtd/buckingham/setup.py", line 10, in <module>
        long_description=open("README.md").read(),
    IOError: [Errno 2] No such file or directory: 'README.md'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip-build-L9zFtd/buckingham/setup.py", line 10, in <module>

    long_description=open("README.md").read(),

IOError: [Errno 2] No such file or directory: 'README.md'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-L9zFtd/buckingham
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1230, in prepare_files
    req_to_install.run_egg_info()
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 326, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/usr/lib/python2.7/dist-packages/pip/util.py", line 716, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-L9zFtd/buckingham

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.