Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when passing unit kwarg into pressure(self, unit=None) #29

Closed
nickever opened this issue Mar 12, 2018 · 2 comments
Closed

Error when passing unit kwarg into pressure(self, unit=None) #29

nickever opened this issue Mar 12, 2018 · 2 comments

Comments

@nickever
Copy link

When attempting to pass the kwarg 'unit' into the pressure function:
envirophat.weather.pressure(unit='hPa')

I got the following error:
TypeError: pressure() got an unexpected keyword argument 'unit'

Is this the expected behaviour or should the function handle the unit keyword?

@Gadgetoid
Copy link
Member

This change is currently unreleased, you need to install the library from GitHub to use it.

git clone https://github.com/pimoroni/enviro-phat
cd enviro-phat/library
sudo python setup.py install

@nickever
Copy link
Author

Thanks @Gadgetoid - my installed version (v0.0.6) matches the init.py version, so I was under the impression I was working with the same version as appears in this repo. Thanks for the correction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants