bird-house / flyingpigeon

WPS processes for climate model data, indices and extreme events
http://flyingpigeon.readthedocs.io/en/latest/
Apache License 2.0
19 stars 15 forks source link

fix: Subsetter.parse_resource generator now using is_opendap_url #305

Closed huard closed 4 years ago

huard commented 4 years ago

Overview

This PR fixes #304

Changes:

Related Issue / Discussion

Additional Information

Links to other issues or sources.

cehbrecht commented 4 years ago

@huard looks good to me. Feel free to merge.

I didn't know about the f-strings in python 3.x https://realpython.com/python-f-strings/#f-strings-a-new-and-improved-way-to-format-strings-in-python

Also there is a new exception pattern in python 3.x:

raise Exception(msg) from other_error

codacy is not aware hat we use python 3.x only code.

You could check the other codacy complains ... import netcdf4.

huard commented 4 years ago

f-strings really make string formatting cleaner.

I've removed 3.5 in the supported versions (xarray dropped support for it last month).