Skip to content

Commit

Permalink
Label 1.4.14 & Minor infrastructure updates:
Browse files Browse the repository at this point in the history
* Makefile cleanings
* tests updates
* doc generation on Ubuntu/Python3.8
  • Loading branch information
AlexandreMary committed Mar 4, 2022
1 parent 1d02aed commit b7e1139
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 25 deletions.
2 changes: 1 addition & 1 deletion epygram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

__all__ = []

__version__ = '1.4.13'
__version__ = '1.4.14'

__license__ = 'CeCILL-C'

Expand Down
9 changes: 7 additions & 2 deletions epygram/doc_sphinx/mk_html_doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ then
fi
cp -f cheatsheet.pdf _static/.
cp -f cheatsheet.pdf ../html/_downloads/cheatsheet.pdf
#rm -f cheatsheet.log cheatsheet.aux cheatsheet.pdf

echo "> Build Sphinx doc..."
sphinx-build-3 -b $fmt . ../$fmt
bld=`which sphinx-build-3`
if [ "$?" != "0" ]
then
bld=`which sphinx-build`
fi
$bld -b $fmt . ../$fmt
cd ..
4 changes: 2 additions & 2 deletions tests/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

NOSE3list = nosetests-3.7 nosetests3
NOSE3list = nosetests3 nosetests-3.7
NOSE3 = $(shell for p in $(NOSE3list) ; do if which $$p >/dev/null 2>&1 ; then echo $$p ; break ; fi ; done)
TEST_ALL = test_formats.py test_geometries.py test_geometry_methods.py test_spectral.py test_util.py test_combinationsextractions.py
TEST_BASE = test_formats.py test_geometries.py test_spectral.py test_util.py
Expand Down Expand Up @@ -31,7 +31,7 @@ tests_all3:
apptools: apptools3

apptools3:
$(MAKE) -C $(APPTOOLS_DIR) all3
$(MAKE) -C $(APPTOOLS_DIR) all

# notebooks gallery
notebooks_get_inputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ p143
sstRp144
sS'position_on_horizontal_grid'
p145
V__unknown__
Vcenter
p146
sS'geoid'
p147
Expand Down
Binary file modified tests/data/geometries/profile_gridpoint.ddhlfa_VCT1.pickle_py3
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ tRp130
sstRp131
sS'position_on_horizontal_grid'
p132
V__unknown__
Vcenter
p133
sS'geoid'
p134
Expand Down
Binary file modified tests/data/geometries/profile_zonalband.ddhlfa_VCT1.pickle_py3
Binary file not shown.
6 changes: 6 additions & 0 deletions tests/get_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ EOF
tar -xf data.tgz
rm -f data.tgz

# to put data:
#tar -czf data.tgz data
#ftp $HOST
#cd tests
#put data.tgz
#rm -f data.tgz
18 changes: 4 additions & 14 deletions tests/test_apptools/Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@

PYTHON2 = python2.7
PYTHON3 = python3.7
.PHONY: all cartoplot

.PHONY: all all2 all3 cartoplot2 cartoplot3
all: cartoplot

all: all3

all2: cartoplot2

all3: cartoplot3

cartoplot2:
. ./test-epy_cartoplot.sh $(PYTHON2)

cartoplot3:
. ./test-epy_cartoplot.sh $(PYTHON3)
cartoplot:
. ./test-epy_cartoplot.sh
10 changes: 6 additions & 4 deletions tests/test_apptools/test-epy_cartoplot.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/bash
if [ "$1" == "" ]

python=`which python3`

if [ "$?" != "0" ]
then
python=python3.7
else
python=$1
echo "ERROR: do not know which 'python3' to use"
exit 1
fi

set -x
Expand Down
2 changes: 2 additions & 0 deletions tests/util/abstract_testclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def _test_pickled(self, filename, fid, picklename):
if not self.update_pickle:
with open(picklename, 'rb') as pckl:
pt_pckld = pickle.load(pckl)
print(pt_pckld)
print(fld)
self.assertTrue(fld.tolerant_equal(pt_pckld),
fld.recursive_diff(pt_pckld))
else:
Expand Down

0 comments on commit b7e1139

Please sign in to comment.