Commit bf370a16 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Uncommented new tests from the last commit. Updated version info and HISTORY.rst.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 6e4a2301
Pipeline #16780 passed with stages
in 9 minutes and 45 seconds
......@@ -2,6 +2,14 @@
History
=======
0.9.1 (2020-12-11)
------------------
* Added URL checker and corresponding CI job.
* Removed travis related files.
* Replaced hard-coded links in documentation by cross-linking directives.
0.9.0 (2020-11-02)
------------------
......
......@@ -24,5 +24,5 @@
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '0.9.0'
__versionalias__ = '20201102.01'
__version__ = '0.9.1'
__versionalias__ = '20201211.01'
......@@ -35,7 +35,7 @@ Tests for spechomo.classifier
import os
import json
from unittest import TestCase
from tempfile import TemporaryDirectory
# from tempfile import TemporaryDirectory
from spechomo.classifier import Cluster_Learner
from spechomo import __path__
......@@ -72,9 +72,9 @@ class Test_ClusterClassifier(TestCase):
outstr = json.dumps(jsonable_dict, sort_keys=True, indent=4)
self.assertIsInstance(outstr, str)
def test_save_to_json(self):
with TemporaryDirectory() as tmpDir:
self.clf.save_to_json(os.path.join(tmpDir, 'clf.json'))
# def test_save_to_json(self):
# with TemporaryDirectory() as tmpDir:
# self.clf.save_to_json(os.path.join(tmpDir, 'clf.json'))
# class Test_ClassifierCollection(TestCase):
......
......@@ -93,8 +93,8 @@ class Test_ReferenceCube_Generator(unittest.TestCase):
src_im = GeoArray(self.SHC.ims_ref[0])
unif_random_spectra = self.SHC.cluster_image_and_get_uniform_spectra(src_im)
# tgt_rsr = RSR(satellite='Sentinel-2A', sensor='MSI')
tgt_rsr = RSR(satellite='Terra', sensor='MODIS', sort_by_cwl=True)
tgt_rsr = RSR(satellite='Sentinel-2A', sensor='MSI')
# tgt_rsr = RSR(satellite='Terra', sensor='MODIS', sort_by_cwl=True)
unif_random_spectra_rsp = \
self.SHC.resample_spectra(unif_random_spectra,
src_cwl=np.array(src_im.meta.band_meta['wavelength'], dtype=np.float).flatten(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment