Skip to content
Snippets Groups Projects
Commit a9cd959f authored by Antoine Berchet's avatar Antoine Berchet
Browse files

Fixing depreciated loc behavior with list and not available columns in toobsvect

parent 78d63694
No related branches found
No related tags found
1 merge request!28Fix issue with global domains and find_gridcells; speed up regrid for...
......@@ -7,5 +7,5 @@ export PYCIF_DATATEST=/tmp/PYCIF_DATA_TEST/
# --html reports/pytest.html --self-contained-html --junitxml=reports/pytest.xml --collect-only ../tests/dummy/
cd ../
#pytest -s -m "test_in_ci" --html reports/pytest.html --self-contained-html
pytest -s -m "test_in_ci and dummy" --basetemp=/home/satellites13/aberchet/pytest/ \
pytest -s -m "test_in_ci and dummy" / #--basetemp=/home/satellites13/aberchet/pytest/ \
--html reports/pytest.html --self-contained-html
......@@ -11,8 +11,12 @@ RUN cd /tmp/CIF/ \
&& python setup.py develop --user -u \
&& python setup.py develop --user
RUN cd /tmp/CIF/bin \
&& ./pycif_test.sh
#RUN cd /tmp/CIF/bin \
# && ./pycif_test.sh
RUN cd /tmp/CIF/config_files/tuto_gauss \
&& python -m pycif config_dummy_fwd.yml
RUN ls -R /tmp/PYCIF_DATA_TEST
......
......@@ -51,9 +51,12 @@ def ini_mapper(
if hasattr(transform.orig_parameter_plg, "datastore"):
# Fetch observations to define metadata
ds = transform.orig_parameter_plg.datastore
default_dict["metadata"] = \
ds.loc[:, ["lon", "lat", "alt",
"station", "network", "date", "duration"]]
valid_columns = \
ds.columns.intersection(["lon", "lat", "alt",
"station", "network",
"date", "duration"])
default_dict["metadata"] = ds.loc[:, valid_columns]
#
# domain_trcr = Domain()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment