Skip to content

Commit e488d1b

Browse files
committed
wip documentation
1 parent 00cae8e commit e488d1b

File tree

4 files changed

+35
-9
lines changed

4 files changed

+35
-9
lines changed

doc/about.rst

+5-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ environments used for building and running computational models and the ones
2424
used for processing and analysing simulation results. It also encourages
2525
building new models from re-usable components and avoid reinventing the wheel.
2626

27-
The design of this tool is mainly focused on fast development and simulation
28-
setting(s), which would ultimately optimize the iterative, back-and-forth
29-
process between ideas on how to model a particular phenomenon and insights
30-
from the exploration of model behavior.
27+
The design of this tool is mainly focused on fast model development and easy
28+
creation of various simulation settings. Ultimately, this would optimize the
29+
iterative back-and-forth process between ideas that we have on how to model a
30+
particular phenomenon and insights that we get from the exploration of model
31+
behavior.
3132

3233
Sources of inspiration
3334
----------------------

doc/create_model.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
Creating models
44
===============
55

6-
(WIP)
7-
8-
The framework provides a few Python base classes, e.g.,
6+
xarray-simlab's framework provides a few Python base classes, e.g.,
97
:class:`~xrsimlab.Variable`, :class:`~xrsimlab.Process` and
108
:class:`~xrsimlab.Model` that can used togheter to create fully operational
119
models.
@@ -19,6 +17,7 @@ Process
1917

2018

2119

20+
2221
Variable
2322
--------
2423

doc/faq.rst

+25-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,29 @@ landscape evolution.
1414

1515
.. _`xarray-topo`: https://gitext.gfz-potsdam.de/sec55-public/xarray-topo
1616

17+
Does xarray-simlab allow fast model execution?
18+
----------------------------------------------
19+
20+
Yes, although it depends on how the model is implemented.
21+
22+
xarray-simlab is written in pure-Python and so is the outer (time) loop of
23+
xarray-simlab models. The execution of Python code is slow compared to other
24+
languages, but for the outer loop only it wouldn't represent the main bottleneck
25+
of the overall model execution, especially when using an implicit time scheme.
26+
For inner (e.g., spatial) loops in each model processes - implemented within
27+
their ``.run_step`` method -, it might be better to have a numpy vectorized
28+
implementation, use an accelerator like Cython_ or Numba_ or call wrapped code
29+
that is written in, e.g., C or Fortran (see for example f2py_ for wrapping
30+
Fortran code).
31+
32+
As with any other framework, xarray-simlab introduces an overhead compared to
33+
a simple, straightforward (but non-flexible) implementation of a model. However,
34+
the preliminary benchmarks that we have run show only a very small overhead.
35+
36+
.. _Cython: http://cython.org/
37+
.. _Numba: http://numba.pydata.org/
38+
.. _f2py: https://docs.scipy.org/doc/numpy-dev/f2py/
39+
1740
Will xarray-simlab support Python 2.7.x?
1841
----------------------------------------
1942

@@ -29,8 +52,8 @@ it still makes the code harder to maintain.
2952
Which features are likely to be implemented in next xarray-simlab releases?
3053
---------------------------------------------------------------------------
3154

32-
Some ideas for future development can be found in the roadmap_ on the
33-
xarray-simlab's Github wiki_.
55+
xarray-simlab is a very young project. Some ideas for future development can be
56+
found in the roadmap_ on the xarray-simlab's Github wiki_.
3457

3558
.. _roadmap: https://github.com/benbovy/xarray-simlab/wiki/Roadmap
3659
.. _wiki: https://github.com/benbovy/xarray-simlab/wiki

doc/run_model.rst

+3
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ Running models
44
==============
55

66
(TODO)
7+
8+
For now, you can have a look at the :doc:`examples` section of this documentation to
9+
see how xarray-simlab models can be set-up and run.

0 commit comments

Comments
 (0)