diff --git a/doc/.~lock.ErrorDebug.ods# b/doc/.~lock.ErrorDebug.ods# deleted file mode 100644 index 06cf131f74fd43c201de6200ad39a547aa7a8e78..0000000000000000000000000000000000000000 --- a/doc/.~lock.ErrorDebug.ods# +++ /dev/null @@ -1 +0,0 @@ -,philipa8,localhost,21.08.2018 16:15,file:///home/philipa8/.config/libreoffice/4; \ No newline at end of file diff --git a/doc/ECMWF_FPparameter.xlsx b/doc/ECMWF_FPparameter.xlsx deleted file mode 100644 index 20207d5a2ffdfa77f4f6686d6fc3332e284e3988..0000000000000000000000000000000000000000 Binary files a/doc/ECMWF_FPparameter.xlsx and /dev/null differ diff --git a/doc/ErrorDebug.ods b/doc/ErrorDebug.ods deleted file mode 100644 index 11547601ff905a06a7628fc10458e8c94cee0f16..0000000000000000000000000000000000000000 Binary files a/doc/ErrorDebug.ods and /dev/null differ diff --git a/doc/GUIDE.odt b/doc/GUIDE.odt deleted file mode 100644 index edfa22d896f30ff66f03c4c980d8d988e8ca0278..0000000000000000000000000000000000000000 Binary files a/doc/GUIDE.odt and /dev/null differ diff --git a/doc/SIP.doc b/doc/SIP.doc deleted file mode 100644 index 9472fc7fc47a2997d2ec776483fba4b94f1ca981..0000000000000000000000000000000000000000 Binary files a/doc/SIP.doc and /dev/null differ diff --git a/doc/SIP.pdf b/doc/SIP.pdf deleted file mode 100644 index 71e75f355e5aae9f0d9f127860ec61e1895c290c..0000000000000000000000000000000000000000 Binary files a/doc/SIP.pdf and /dev/null differ diff --git a/doc/SUT_ondemand.doc b/doc/SUT_ondemand.doc deleted file mode 100644 index e8a7594f3227f34a19c794f5b796b63f9505340a..0000000000000000000000000000000000000000 Binary files a/doc/SUT_ondemand.doc and /dev/null differ diff --git a/doc/SUT_ondemand.pdf b/doc/SUT_ondemand.pdf deleted file mode 100644 index d2b75f3d69a14a0d9e4952c38b993baa6744dcdc..0000000000000000000000000000000000000000 Binary files a/doc/SUT_ondemand.pdf and /dev/null differ diff --git a/pythontest/TestTools.py b/pythontest/TestTools.py deleted file mode 100644 index ee0d97034ee7f2419ba25f5080f24144d8f920a3..0000000000000000000000000000000000000000 --- a/pythontest/TestTools.py +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -import unittest -import sys -import os -sys.path.append('../python') -from tools import init128, to_param_id, my_error, read_ecenv - - -class TestTools(unittest.TestCase): - ''' - ''' - - def setUp(self): - pass - - def test_init128(self): - ''' - ''' - table128 = init128('../grib_templates/ecmwf_grib1_table_128') - expected = {'078': 'TCLW', '130': 'T', '034': 'SST'} - # check a sample of parameters which must have been read in - result = all((k in table128 and table128[k]==v) for k,v in expected.iteritems()) - self.assertEqual(result, True) - - - def test_to_param_id(self): - ''' - ''' - table128 = init128('../grib_templates/ecmwf_grib1_table_128') - pars = to_param_id("T/SP/LSP/SSHF", table128) - for par in pars: - self.assertIn(par, [130, 134, 142, 146]) - - def test_error_notifcation(self): - ''' - ''' - with self.assertRaises(SystemExit) as re: - my_error(['${USER}', 'anne.philipp@univie.ac.at'], 'Failed!') - self.assertEqual(re.exception.code, 1) - - def test_read_ecenv(self): - - envs_ref = {'ECUID': 'km4a', - 'ECGID': 'at', - 'GATEWAY': 'srvx8.img.univie.ac.at', - 'DESTINATION': 'annep@genericSftp' - } - envs = read_ecenv(os.getcwd() + '/TestData/ECMWF_ENV') - - self.assertDictEqual(envs_ref, envs) - - - - - -if __name__ == "__main__": - unittest.main() \ No newline at end of file diff --git a/pythontest/TestUIOFiles.py b/pythontest/TestUIOFiles.py deleted file mode 100644 index d60cbf040c3a7223502190568824040b95a03c53..0000000000000000000000000000000000000000 --- a/pythontest/TestUIOFiles.py +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -import unittest -import os -import sys -sys.path.append('../python') -import UioFiles - - -class TestUioFiles(unittest.TestCase): - ''' - Test class to test the UIOFiles methods. - ''' - - def setUp(self): - ''' - @Description: - Prepare test case. Initialize comparing filelist and - the test path. - - @Input: - self: instance of TestUIOFiles - Class to test the UIOFiles methods. - - @Return: - <nothing> - ''' - self.testpath = os.path.join(os.path.dirname(__file__), 'TestDir') - self.expected = ['FCGG__SL.20160410.40429.16424.grb', - 'FCOG__ML.20160410.40429.16424.grb', - 'FCSH__ML.20160410.40429.16424.grb', - 'OG_OROLSM__SL.20160410.40429.16424.grb', - 'FCOG_acc_SL.20160409.40429.16424.grb', - 'FCOG__SL.20160410.40429.16424.grb', - 'FCSH__SL.20160410.40429.16424.grb'] - - return - - def test_listFiles(self): - ''' - @Description: - Test the listFiles method from class UIOFiles. - - @Input: - self: instance of TestClass - Class to test the UIOFiles methods. - - @Return: - <nothing> - ''' - - # Initialise and collect filenames - files = UioFiles.UioFiles(['.grb']) - files.list_files(self.testpath, '*') - # get the basename to just check for equality of filenames - filelist = [os.path.basename(f) for f in files.files] - # comparison of expected filenames against the collected ones - self.assertItemsEqual(self.expected, filelist) - - return - -if __name__ == "__main__": - unittest.main() \ No newline at end of file diff --git a/pythontest/__init__.py b/pythontest/__init__.py deleted file mode 100644 index 749a1095b83a8b21e7836cd736cce1a0a7be4751..0000000000000000000000000000000000000000 --- a/pythontest/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -""" -@Author: Anne Philipp (University of Vienna) - -@Date: March 2018 - -@License: - (C) Copyright 2014 UIO. - - This software is licensed under the terms of the Apache Licence Version 2.0 - which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. -""" \ No newline at end of file