Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Fixed some documentation and fixed support for Python3 #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

abstract-base-method
Copy link

Hello there! I saw some issues with the py3 compatibility as well as some documentation quick hits so I figured I'd help out! Thanks for the awesome library!

James E. Bell Jr added 2 commits August 21, 2019 14:04
@jkreft-usgs jkreft-usgs requested a review from mbucknell August 21, 2019 20:39
@jkreft-usgs
Copy link
Contributor

The pywqp project lives!! Thanks so much for these changes- they look good, with the exception of the .idea files, which need to to be dropped before we merge.

@jkreft-usgs
Copy link
Contributor

Out of curiosity, what are you using pywqp for? Any time we can get a good user story about people using the Water Quality Portal, we like to share with project sponsors.

@jkreft-usgs
Copy link
Contributor

On second look, you kindly deleted .idea files that I committed five years ago. Thanks!

@jkreft-usgs jkreft-usgs self-requested a review August 21, 2019 20:50
Copy link
Contributor

@jkreft-usgs jkreft-usgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hurrah, thanks again

@abstract-base-method
Copy link
Author

@jkreft-usgs thanks! We are experimenting with the data sets to see if we can improve our analysis pipe corrosion for fire suppression and irrigation systems using these data sets. Currently our only data point is routine physical inspections (which are good and required) but we want to see if this data can help model a more intelligent decision around life cycle of the system.

@abstract-base-method
Copy link
Author

also I bumped the version to 0.1.5 to prevent breaking anyone. If you would like after this I can do some more work to get this into an egg (with the imports) so you could upload this to PyPi if you like?

@abstract-base-method
Copy link
Author

@mbucknell any chance this could get reviewed soon? I don't mind keeping my fork out there for our users, but I would rather them pull from the NWQMC source

@jkreft-usgs
Copy link
Contributor

@lemoney yep, various vacations and other distractions have pulled us away, but we will take a look, hopefully this week.

Copy link
Member

@mbucknell mbucknell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious as to whether you attempted to run the lettuce tests? Lettuce is not compatible with python3 (I think).

Can this still be run with python2.7? I would like to see a comment in the README.md about the supported versions of python.

@@ -0,0 +1,12 @@
from pywqp import pywqp_client
client_instance = pywqp_client.RESTClient()
from pprint import pprint
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer keeping import statements before any other statements in a python module.

import StringIO
import wqx_mappings
from io import StringIO
from . import wqx_mappings
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this import is for a local package, it should go after the others. In general, our import lists don't at the moment but should follow https://www.python.org/dev/peps/pep-0008/#imports .

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

Successfully merging this pull request may close these issues.

3 participants