Skip to content

Commit 8f95075

Browse files
committed
Merged with release_proposal_v4.2.0
2 parents fba1b62 + a24b3d1 commit 8f95075

File tree

425 files changed

+154672
-277
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

425 files changed

+154672
-277
lines changed

.coveragerc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[run]
2+
omit =
3+
src/lisflood/hydrological_modules/compile_kinematic_wave_parallel_tools.py
4+
tests/*

.dockerignore

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.mypy_cache/
2+
.pytest_cache/
3+
**/.mypy_cache/
4+
.git/
5+
**/__pycache__/
6+
build/**
7+
dist/**
8+
lisflood.egg-info/**
9+
lisflood_model.egg-info
10+
*.py[c|o]
11+
.eggs
12+
.tox
13+
tox.ini
14+
*.tox.ini
15+
MANIFEST.in
16+
.gitignore
17+
.gitattributes
18+
*.so
19+
*.c
20+
*.html
21+
.coverage
22+
tests/data/LF_ETRS89_UseCase/out/*

.gitattributes

100644100755
File mode changed.

.numba_config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DISABLE_JIT: False

Dockerfile

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# docker build -t jrce1/lisflood .
2+
# docker push jrce1/lisflood
3+
4+
FROM continuumio/miniconda3
5+
LABEL maintainer="Stefania Grimaldi, Cinzia Mazzetti, Carlo Russo, Valerio Lorini, Ad de Roo"
6+
7+
ENV DEBIAN_FRONTEND=noninteractive
8+
9+
# Install requirements
10+
RUN apt-get update && \
11+
apt-get -y install gcc g++ && \
12+
rm -rf /var/lib/apt/lists/*
13+
14+
# Create conda "lisflood" environment:
15+
COPY environment.yml .
16+
RUN conda update -n base -c defaults conda
17+
RUN conda env create -n lisflood -f environment.yml
18+
#RUN conda install -n lisflood -c conda-forge GDAL==`conda run -n lisflood gdal-config --version`
19+
20+
#COPY requirements.txt /
21+
#RUN conda run -n lisflood pip install -r /requirements.txt --ignore-installed
22+
23+
# Copy source code
24+
COPY src/lisflood/. /lisflood/
25+
COPY src/lisf1.py /
26+
COPY src/lisfloodSettings_reference.xml /
27+
COPY LICENSE /
28+
COPY VERSION /
29+
30+
# Compile kwpt
31+
RUN cd /lisflood/hydrological_modules && conda run -n lisflood python compile_kinematic_wave_parallel_tools.py build_ext --inplace
32+
33+
# RUN Tests
34+
COPY tests/. /tests/
35+
COPY pytest.ini /tests
36+
RUN conda run -n lisflood python -m pytest /tests -x -l -ra
37+
38+
COPY docker-entrypoint.sh /
39+
ENTRYPOINT ["/docker-entrypoint.sh"]

LICENSE

+273
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,273 @@
1+
European Union Public Licence V. 1.2
2+
3+
EUPL © the European Union 2007, 2016
4+
5+
This European Union Public Licence (the ‘EUPL’) applies to the Work (as
6+
defined below) which is provided under the terms of this Licence. Any use of
7+
the Work, other than as authorised under this Licence is prohibited (to the
8+
extent such use is covered by a right of the copyright holder of the Work).
9+
10+
The Work is provided under the terms of this Licence when the Licensor (as
11+
defined below) has placed the following notice immediately following the
12+
copyright notice for the Work: “Licensed under the EUPL”, or has expressed by
13+
any other means his willingness to license under the EUPL.
14+
15+
1. Definitions
16+
17+
In this Licence, the following terms have the following meaning:
18+
‘The Licence’: this Licence.
19+
‘The Original Work’: the work or software distributed or communicated by the
20+
‘Licensor under this Licence, available as Source Code and also as
21+
‘Executable Code as the case may be.
22+
‘Derivative Works’: the works or software that could be created by the
23+
‘Licensee, based upon the Original Work or modifications thereof. This
24+
‘Licence does not define the extent of modification or dependence on the
25+
‘Original Work required in order to classify a work as a Derivative Work;
26+
‘this extent is determined by copyright law applicable in the country
27+
‘mentioned in Article 15.
28+
‘The Work’: the Original Work or its Derivative Works.
29+
‘The Source Code’: the human-readable form of the Work which is the most
30+
convenient for people to study and modify.
31+
32+
‘The Executable Code’: any code which has generally been compiled and which
33+
is meant to be interpreted by a computer as a program.
34+
‘The Licensor’: the natural or legal person that distributes or communicates
35+
the Work under the Licence.
36+
‘Contributor(s)’: any natural or legal person who modifies the Work under
37+
the Licence, or otherwise contributes to the creation of a Derivative Work.
38+
‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of
39+
the Work under the terms of the Licence.
40+
‘Distribution’ or ‘Communication’: any act of selling, giving, lending,
41+
renting, distributing, communicating, transmitting, or otherwise making
42+
available, online or offline, copies of the Work or providing access to its
43+
essential functionalities at the disposal of any other natural or legal
44+
person.
45+
46+
2. Scope of the rights granted by the Licence
47+
48+
The Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
49+
sublicensable licence to do the following, for the duration of copyright
50+
vested in the Original Work:
51+
52+
use the Work in any circumstance and for all usage,
53+
reproduce the Work,
54+
modify the Work, and make Derivative Works based upon the Work,
55+
communicate to the public, including the right to make available or display
56+
the Work or copies thereof to the public and perform publicly, as the case
57+
may be, the Work,
58+
distribute the Work or copies thereof,
59+
lend and rent the Work or copies thereof,
60+
sublicense rights in the Work or copies thereof.
61+
62+
Those rights can be exercised on any media, supports and formats, whether now
63+
known or later invented, as far as the applicable law permits so.
64+
65+
In the countries where moral rights apply, the Licensor waives his right to
66+
exercise his moral right to the extent allowed by law in order to make
67+
effective the licence of the economic rights here above listed.
68+
69+
The Licensor grants to the Licensee royalty-free, non-exclusive usage rights
70+
to any patents held by the Licensor, to the extent necessary to make use of
71+
the rights granted on the Work under this Licence.
72+
73+
3. Communication of the Source Code
74+
75+
The Licensor may provide the Work either in its Source Code form, or as
76+
Executable Code. If the Work is provided as Executable Code, the Licensor
77+
provides in addition a machine-readable copy of the Source Code of the Work
78+
along with each copy of the Work that the Licensor distributes or indicates,
79+
in a notice following the copyright notice attached to the Work, a repository
80+
where the Source Code is easily and freely accessible for as long as the
81+
Licensor continues to distribute or communicate the Work.
82+
83+
4. Limitations on copyright
84+
85+
Nothing in this Licence is intended to deprive the Licensee of the benefits
86+
from any exception or limitation to the exclusive rights of the rights owners
87+
in the Work, of the exhaustion of those rights or of other applicable
88+
limitations thereto.
89+
90+
5. Obligations of the Licensee
91+
92+
The grant of the rights mentioned above is subject to some restrictions and
93+
obligations imposed on the Licensee. Those obligations are the following:
94+
95+
Attribution right: The Licensee shall keep intact all copyright, patent or
96+
trademarks notices and all notices that refer to the Licence and to the
97+
disclaimer of warranties. The Licensee must include a copy of such notices and
98+
a copy of the Licence with every copy of the Work he/she distributes or
99+
communicates. The Licensee must cause any Derivative Work to carry prominent
100+
notices stating that the Work has been modified and the date of modification.
101+
102+
Copyleft clause: If the Licensee distributes or communicates copies of the
103+
Original Works or Derivative Works, this Distribution or Communication will be
104+
done under the terms of this Licence or of a later version of this Licence
105+
unless the Original Work is expressly distributed only under this version of
106+
the Licence for example by communicating ‘EUPL v. 1.2 only’. The Licensee
107+
(becoming Licensor) cannot offer or impose any additional terms or conditions
108+
on the Work or Derivative Work that alter or restrict the terms of the
109+
Licence.
110+
111+
Compatibility clause: If the Licensee Distributes or Communicates Derivative
112+
Works or copies thereof based upon both the Work and another work licensed
113+
under a Compatible Licence, this Distribution or Communication can be done
114+
under the terms of this Compatible Licence. For the sake of this clause,
115+
‘Compatible Licence’ refers to the licences listed in the appendix attached to
116+
this Licence. Should the Licensee's obligations under the Compatible Licence
117+
conflict with his/her obligations under this Licence, the obligations of the
118+
Compatible Licence shall prevail.
119+
120+
Provision of Source Code: When distributing or communicating copies of the
121+
Work, the Licensee will provide a machine-readable copy of the Source Code or
122+
indicate a repository where this Source will be easily and freely available
123+
for as long as the Licensee continues to distribute or communicate the Work.
124+
125+
Legal Protection: This Licence does not grant permission to use the trade
126+
names, trademarks, service marks, or names of the Licensor, except as required
127+
for reasonable and customary use in describing the origin of the Work and
128+
reproducing the content of the copyright notice.
129+
130+
6. Chain of Authorship
131+
132+
The original Licensor warrants that the copyright in the Original Work granted
133+
hereunder is owned by him/her or licensed to him/her and that he/she has the
134+
power and authority to grant the Licence.
135+
136+
Each Contributor warrants that the copyright in the modifications he/she
137+
brings to the Work are owned by him/her or licensed to him/her and that he/she
138+
has the power and authority to grant the Licence.
139+
140+
Each time You accept the Licence, the original Licensor and subsequent
141+
Contributors grant You a licence to their contributions to the Work, under the
142+
terms of this Licence.
143+
144+
7. Disclaimer of Warranty
145+
146+
The Work is a work in progress, which is continuously improved by numerous
147+
Contributors. It is not a finished work and may therefore contain defects or
148+
‘bugs’ inherent to this type of development.
149+
150+
For the above reason, the Work is provided under the Licence on an ‘as is’
151+
basis and without warranties of any kind concerning the Work, including
152+
without limitation merchantability, fitness for a particular purpose, absence
153+
of defects or errors, accuracy, non-infringement of intellectual property
154+
rights other than copyright as stated in Article 6 of this Licence.
155+
156+
This disclaimer of warranty is an essential part of the Licence and a
157+
condition for the grant of any rights to the Work.
158+
159+
8. Disclaimer of Liability
160+
161+
Except in the cases of wilful misconduct or damages directly caused to natural
162+
persons, the Licensor will in no event be liable for any direct or indirect,
163+
material or moral, damages of any kind, arising out of the Licence or of the
164+
use of the Work, including without limitation, damages for loss of goodwill,
165+
work stoppage, computer failure or malfunction, loss of data or any commercial
166+
damage, even if the Licensor has been advised of the possibility of such
167+
damage. However, the Licensor will be liable under statutory product liability
168+
laws as far such laws apply to the Work.
169+
170+
9. Additional agreements
171+
172+
While distributing the Work, You may choose to conclude an additional
173+
agreement, defining obligations or services consistent with this Licence.
174+
However, if accepting obligations, You may act only on your own behalf and on
175+
your sole responsibility, not on behalf of the original Licensor or any other
176+
Contributor, and only if You agree to indemnify, defend, and hold each
177+
Contributor harmless for any liability incurred by, or claims asserted against
178+
such Contributor by the fact You have accepted any warranty or additional
179+
liability.
180+
181+
10. Acceptance of the Licence
182+
183+
The provisions of this Licence can be accepted by clicking on an icon ‘I
184+
agree’ placed under the bottom of a window displaying the text of this Licence
185+
or by affirming consent in any other similar way, in accordance with the rules
186+
of applicable law. Clicking on that icon indicates your clear and irrevocable
187+
acceptance of this Licence and all of its terms and conditions.
188+
189+
Similarly, you irrevocably accept this Licence and all of its terms and
190+
conditions by exercising any rights granted to You by Article 2 of this
191+
Licence, such as the use of the Work, the creation by You of a Derivative Work
192+
or the Distribution or Communication by You of the Work or copies thereof.
193+
194+
11. Information to the public
195+
196+
In case of any Distribution or Communication of the Work by means of
197+
electronic communication by You (for example, by offering to download the Work
198+
from a remote location) the distribution channel or media (for example, a
199+
website) must at least provide to the public the information requested by the
200+
applicable law regarding the Licensor, the Licence and the way it may be
201+
accessible, concluded, stored and reproduced by the Licensee.
202+
203+
12. Termination of the Licence
204+
205+
The Licence and the rights granted hereunder will terminate automatically upon
206+
any breach by the Licensee of the terms of the Licence. Such a termination
207+
will not terminate the licences of any person who has received the Work from
208+
the Licensee under the Licence, provided such persons remain in full
209+
compliance with the Licence.
210+
211+
13. Miscellaneous
212+
213+
Without prejudice of Article 9 above, the Licence represents the complete
214+
agreement between the Parties as to the Work.
215+
216+
If any provision of the Licence is invalid or unenforceable under applicable
217+
law, this will not affect the validity or enforceability of the Licence as a
218+
whole. Such provision will be construed or reformed so as necessary to make it
219+
valid and enforceable.
220+
221+
The European Commission may publish other linguistic versions or new versions
222+
of this Licence or updated versions of the Appendix, so far this is required
223+
and reasonable, without reducing the scope of the rights granted by the
224+
Licence. New versions of the Licence will be published with a unique version
225+
number.
226+
227+
All linguistic versions of this Licence, approved by the European Commission,
228+
have identical value. Parties can take advantage of the linguistic version of
229+
their choice.
230+
231+
14. Jurisdiction
232+
233+
Without prejudice to specific agreement between parties,
234+
any litigation resulting from the interpretation of this License, arising
235+
between the European Union institutions, bodies, offices or agencies, as a
236+
Licensor, and any Licensee, will be subject to the jurisdiction of the Court
237+
of Justice of the European Union, as laid down in article 272 of the Treaty
238+
on the Functioning of the European Union,
239+
any litigation arising between other parties and resulting from the
240+
interpretation of this License, will be subject to the exclusive
241+
jurisdiction of the competent court where the Licensor resides or conducts
242+
its primary business.
243+
244+
15. Applicable Law
245+
246+
Without prejudice to specific agreement between parties,
247+
this Licence shall be governed by the law of the European Union Member State
248+
where the Licensor has his seat, resides or has his registered office,
249+
this licence shall be governed by Belgian law if the Licensor has no seat,
250+
residence or registered office inside a European Union Member State.
251+
252+
Appendix
253+
254+
‘Compatible Licences’ according to Article 5 EUPL are:
255+
GNU General Public License (GPL) v. 2, v. 3
256+
GNU Affero General Public License (AGPL) v. 3
257+
Open Software License (OSL) v. 2.1, v. 3.0
258+
Eclipse Public License (EPL) v. 1.0
259+
CeCILL v. 2.0, v. 2.1
260+
Mozilla Public Licence (MPL) v. 2
261+
GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
262+
Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
263+
works other than software
264+
European Union Public Licence (EUPL) v. 1.1, v. 1.2
265+
Québec Free and Open-Source Licence Reciprocity (LiLiQ-R) or
266+
Strong Reciprocity (LiLiQ-R+)
267+
268+
The European Commission may update this Appendix to later versions of the
269+
above licences without producing a new version of the EUPL, as long as they
270+
provide the rights granted in Article 2 of this Licence and protect the
271+
covered Source Code from exclusive appropriation.
272+
All other changes or additions to this Appendix require the production of a
273+
new EUPL version.

MANIFEST.in

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include src/lisflood/hydrological_modules/kinematic_wave_parallel_tools.pyx
2+
include requirements.txt
3+
include *.xml
4+
include VERSION

0 commit comments

Comments
 (0)