Commit Graph

55 Commits

Author SHA1 Message Date
d77aa1555b Refactor tests 2025-07-30 15:24:22 +03:00
Jonathan Schillings
0d684af470 Add loop_from_file and timestamp_from_file functions
to extract loop_index and timestamp from the temporary _LOOP.txt and .mpl files during MPRfile initialization
Added unit tests but cannot upload test files due to LFS quota exceeded

Edited by Chris Kerr to fix flake8 warnings and resolve my comments from
the original PR https://github.com/echemdata/galvani/pull/102
2025-07-30 15:24:22 +03:00
Matthew Evans
ccaa66b206 Convert to np.dtype in test 2025-06-13 18:24:42 +01:00
Matthew Evans
fbc90fc961 Update tests/test_Arbin.py
Co-authored-by: Chris Kerr <chris.kerr@mykolab.ch>
2024-03-02 18:13:40 +01:00
Matthew Evans
a845731131 Optionally read Arbin into in-memory sqlite without temporary file 2024-02-12 10:55:52 +00:00
5cdc620f16 Fix flake8 lint 2024-02-03 14:00:16 +02:00
Jonathan Schillings
7a6ac1c542 added tests for v11.50 2024-02-03 13:53:23 +02:00
Ilka Schulz
9a61eb35d1 add test for column 27 (E_we - E_ce) 2024-01-20 22:34:13 +02:00
1cd5bd6239 Reformatted test scripts with black 23.12.1 2024-01-20 21:57:31 +02:00
e1ff99a559 Update test precision for the new data files 2022-09-10 22:33:55 +03:00
54e5765264 Add test data provided by yuyuchen0821 2022-09-10 22:05:46 +03:00
b63abc4516 Add a new MPR test file which contains column 174 'Ewe/V' 2022-01-15 08:20:38 +02:00
c02a871c35 Merge pull request #58 from chatcannon/testdata-lfs
Store the test data with git-lfs
2022-01-15 08:14:07 +02:00
3b68a30975 Merge pull request #63 from chatcannon/time-format-dotted
Add '%m.%d.%y' date format for .mpr file timestamps
2021-09-01 07:06:58 +03:00
ad39747e5c Add .license files for the testdata files sent in by other people 2021-08-31 18:43:16 +03:00
b9a8afa989 Add test data file for the Rapp/Ohm column ID 2021-08-31 18:21:35 +03:00
a3c742e53f Merge branch 'master' into testdata-lfs 2021-08-31 18:21:01 +03:00
de182bd400 Add a test for the Rapp/Ohm column ID 2021-08-30 19:45:30 +03:00
bcd7c5a9b8 Add a test for the parse_BioLogic_date function 2021-07-03 16:08:48 +03:00
dcd4315421 Merge branch 'master' into testdata-lfs 2021-04-25 20:30:16 +03:00
d00319fcda Add GPLv3+ License-Identifier to remaining files 2021-03-20 16:13:08 +02:00
4b2042501d Add SPDX-FileCopyrightText for sole author files 2021-03-20 15:26:40 +02:00
093cde0b62 Add all test data files to the repo
Store the files with git-lfs to avoid making the git history
excessively large.
2020-11-07 17:53:00 +02:00
23761dd5bf Add the new data file to test_Arbin.py 2020-10-31 07:51:57 +02:00
b2fb092ea3 Remove compability code for Python 2 subprocess module 2020-02-16 14:28:57 +02:00
87825b7891 Remove str3 compatibility function 2020-02-16 09:59:46 +02:00
0ea049e279 Merge branch 'master' into test-and-fix-Arbin 2019-05-16 17:29:38 +02:00
8abab57c06 Fixed some more flake8 warnings 2019-05-12 09:20:33 +02:00
6787a7ec03 Merge branch 'master' into test-and-fix-Arbin 2019-05-05 08:14:43 +02:00
61e2ac8f57 Added unit tests for the VMPdata_dtype_from_colIDs function 2019-05-03 19:46:45 +02:00
846a5b3149 Catch FileNotFoundError from Popen and re-raise a more helpful message 2019-04-03 08:14:05 +02:00
6a8fbe71a4 Add some tests for the res2sqlite command-line tool
Check that the --help option works even if mdbtools is not installed
2019-04-02 23:11:37 +02:00
a1b73867ea Add a test that a sensible error is raised when MDBTools is not found
This is the error that happens in issue #23
2019-04-02 23:07:12 +02:00
5530a7a8ff Add a simple test for loading Arbin .res files 2019-04-02 23:06:23 +02:00
d6d6bf1ac7 Use a pytest fixture to locate the testdata directory 2019-04-02 21:34:34 +02:00
2471148c21 Add new test data file with different date format
This tests for issue #20

Thanks @JBWarrington for providing this file
2019-03-30 15:38:58 +01:00
d1e8616f1e Use pytest.mark.parametrize to combine test cases 2019-03-16 13:35:13 +01:00
b110162763 Replace nose.raises with pytest.raises 2019-03-16 13:03:54 +01:00
de29b0863c Replace nose.eq_ with assert x == y 2019-03-16 12:59:23 +01:00
Chris Kerr
ae2b263989 FigShare changes all '-' to '_' in filenames 2014-11-08 11:26:43 +00:00
Chris Kerr
7da8b8b5e6 Changed to a standard setuptools package layout 2014-11-07 15:42:53 +00:00
Chris Kerr
ef6e7335e9 Added the test data files sent by Matthias Richter (see #1)
Had to make a few changes to ensure that they open correctly
2014-11-06 09:54:38 +00:00
Chris Kerr
cfffeee2e2 Made the individual components of the "flags" and "flags2" columns accessible
New function MPRfile.get_flag(flagname)
2014-05-01 23:02:23 +01:00
Chris Kerr
c302ec9117 Tweaks to make things work in both python 3 and python 2 2013-12-12 15:24:20 +00:00
Chris Kerr
34440068a7 Added support for parsing out the timestamp
The timestamp is in the LOG module, at an offset of either 465 or
469. There is no obvious marker for which files have it at 465 and
which at 469.
2013-12-11 22:21:50 +00:00
Chris Kerr
de84f9dd40 Added column IDs from step voltammetry 2013-12-11 13:14:19 +00:00
Chris Kerr
00e6670b4a Added I/mA column type = 8
Also there seems to be a duplicate of colID=23 is the same as 7 (dq/mAh)
2013-12-11 12:50:45 +00:00
Chris Kerr
ce554aab2c Column ID 19 is "control/V"
Added some new test data to support this
2013-12-11 11:58:41 +00:00
Chris Kerr
3483195228 "control/V" and "control/V/mA" are different
No longer forcing them both to "control/V/mA"
2013-12-11 11:54:07 +00:00
Chris Kerr
509b75a81f Deal with yet another format - with more flags data (I think) 2013-12-08 14:07:32 +00:00