Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CIF
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VERIFY
CIF
Commits
a9cd959f
Commit
a9cd959f
authored
4 years ago
by
Antoine Berchet
Browse files
Options
Downloads
Patches
Plain Diff
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
!28
Fix issue with global domains and find_gridcells; speed up regrid for...
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/pycif_test.sh
+1
-1
1 addition, 1 deletion
bin/pycif_test.sh
pycif-tests.Dockerfile
+6
-2
6 additions, 2 deletions
pycif-tests.Dockerfile
pycif/plugins/transforms/system/toobsvect/__init__.py
+6
-3
6 additions, 3 deletions
pycif/plugins/transforms/system/toobsvect/__init__.py
with
13 additions
and
6 deletions
bin/pycif_test.sh
+
1
−
1
View file @
a9cd959f
...
...
@@ -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
This diff is collapsed.
Click to expand it.
pycif-tests.Dockerfile
+
6
−
2
View file @
a9cd959f
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
pycif/plugins/transforms/system/toobsvect/__init__.py
+
6
−
3
View file @
a9cd959f
...
...
@@ -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()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment