mdipierro / buckingham Goto Github PK
View Code? Open in Web Editor NEWA library for error propagation and metric conversions
A library for error propagation and metric conversions
Hello,
do you see possibilities to extend this to numpy arrays / pandas dataframes?
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
I think it's supposed to be US gallons instead. Putting this into google yields 4 US quarts:
(473176473./125000000000) m^3 in quarts
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'
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.