Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VERIFY
CIF
Commits
b350b84e
Commit
b350b84e
authored
Dec 23, 2021
by
Antoine Berchet
Browse files
Skip figure plot
parent
a3076622
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/source/devtutos/newfluxdata/newfluxdata.rst
View file @
b350b84e
...
...
@@ -79,7 +79,28 @@ The :bash:`datavect` paragraph of your working yaml should look like that:
type: flux
version: your_version
3. Test running again your test case. It should generate fluxes with random values
3. Test running again your test case. It should generate fluxes with random values as in the template
Document your plugin
====================
Before going further, be sure to document your plugin properly.
To do so, please replace the docstring header in the file :bash:`__init__.py`.
Include the following information:
- licensing information
- permanent link to download the data (or a contact person if no link is publicly available)
- data format (temporal and horizontal resolution, names and shape of the data files)
- any specific treatment that prevents the plugin from working with another type of files.
Updating functions and data to implement your flux data
=======================================================
...
...
@@ -142,9 +163,9 @@ The :bash:`datavect` paragraph of your working yaml should look like that:
.. code-block:: rest
####################
####################
#
Fluxes :bash:`fluxes`
####################
####################
#
Available Fluxes
=========================
...
...
tests/dummy/test_integration_3inversions.py
View file @
b350b84e
...
...
@@ -45,8 +45,8 @@ def test_integration_inversion(dummy_config_inversion, settings, pytestconfig):
montecarlo
=
settings
.
get
(
"montecarlo"
,
10
)
nsample
=
settings
.
get
(
"nsample"
,
5
)
if
"allsimulations"
not
in
marker
:
nsimmax
=
2
montecarlo
=
2
nsimmax
=
3
montecarlo
=
3
nsample
=
1
# Changing mode
...
...
@@ -195,6 +195,12 @@ def test_integration_inversion(dummy_config_inversion, settings, pytestconfig):
"rootdir"
:
root_dir
},
replace_values
=
{
"rootdir"
:
"/tmp/CIF/"
})
# Stop here if not full article computation
marker
=
pytestconfig
.
getoption
(
'-m'
)
if
"allsimulations"
not
in
marker
:
return
# Loop with different number of simulations for non analytical inversions
title
=
""
obs_root
=
"obsvect_posterior"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment