Skip to content

Commit

Permalink
Merge branch 'master' of github.com:GeoscienceAustralia/tcrm
Browse files Browse the repository at this point in the history
  • Loading branch information
wcarthur committed Apr 29, 2020
2 parents 61ee267 + 0f9e5eb commit 5a54388
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ Status
.. image:: https://landscape.io/github/GeoscienceAustralia/tcrm/develop/landscape.svg?style=flat
:target: https://landscape.io/github/GeoscienceAustralia/tcrm/v2.1
:alt: Code Health

.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3741493.svg
:target: https://doi.org/10.5281/zenodo.3741493

Screenshot
==========
Expand Down
4 changes: 4 additions & 0 deletions Utilities/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

import io
from configparser import RawConfigParser
import os.path

#from ast import literal_eval as eval

def parseBool(txt):
Expand Down Expand Up @@ -273,6 +275,8 @@ def read(self, filename):
return
if self.readonce:
return
if not os.path.exists(filename):
raise ValueError("config file does not exist: {}".format(filename))
RawConfigParser.read(self, filename)
self.readonce = True

Expand Down
2 changes: 1 addition & 1 deletion wind/windmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def secondDerivative(self):
assert d2Vm < 0.0
except AssertionError:
log.critical(("Pressure deficit: {0:.2f} hPa,"
" RMW: {1:%2f} km".format(dP/100., rMax/1000.)))
" RMW: {1:.2f} km".format(dP/100., rMax/1000.)))
raise

return d2Vm
Expand Down

0 comments on commit 5a54388

Please sign in to comment.