Skip to content

Commit

Permalink
added placeholder for next checks (meteo forcings) #31
Browse files Browse the repository at this point in the history
  • Loading branch information
domeniconappo committed Sep 6, 2019
1 parent ded0cb7 commit 7ca92c6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def run(self):
author_email='[email protected]',
keywords=['lisflood', 'lisvap', 'efas', 'glofas', 'ecmwf'],
license='EUPL 1.2',
url='https://github.com/ec-jrc/lisflood-model',
url='https://github.com/ec-jrc/lisflood-code',
download_url='https://github.com/ec-jrc/lisflood-code/archive/{}.tar.gz'.format(__version__),
setup_requires=[
# Setuptools 18.0 properly handles Cython extensions.
Expand Down
2 changes: 1 addition & 1 deletion src/lisflood/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version = (2, 10, 0)
__authors__ = "Ad de Roo, Emiliano Gelati, Peter Burek, Johan van der Knijff, Niko Wanders"
__version__ = '.'.join(list(map(str, version)))
__date__ = "03/09/2019"
__date__ = "05/09/2019"
__copyright__ = "Copyright 2019, European Commission - Joint Research Centre"
__maintainer__ = "Emiliano Gelati, Domenico Nappo, Valerio Lorini, Lorenzo Mentaschi, Ad de Roo"
__status__ = "Operation"
7 changes: 7 additions & 0 deletions src/lisflood/global_modules/checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,10 @@ def check(cls, settings):
# some checks failed
raise LisfloodError('\n\nMissing files to run LisFlood according activated modules. '
'Please check your settings file {}'.format(settings.settings_path))


class MeteoForcings:
@classmethod
def check(cls, settings):
binding = settings.binding
pass
1 change: 1 addition & 0 deletions src/lisflood/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def lisfloodexe(lissettings=None):

try:
ModulesInputs.check(lissettings)
MeteoForcings.check(lissettings)
except LisfloodError as e:
print(e)
sys.exit(1)
Expand Down

0 comments on commit 7ca92c6

Please sign in to comment.