Darius Arnold
86f6584d91
Modify test_autopickstation's MockMetadata to work with the new Metadata class
2018-08-03 13:23:52 +02:00
Darius Arnold
a45e817213
Merge remote-tracking branch 'origin/develop' into feature/refactor
2018-08-03 11:55:13 +02:00
Darius Arnold
7b2ae2fa8f
Disable NonLinLoc in testing parameter file
2018-08-03 11:01:58 +02:00
Darius Arnold
108ba80b83
[minor] disable length limit when printing diff of picking results
...
By default the difference printed when two picking result dictionaries are compared is limited in length, this disables the limit.
2018-08-03 11:00:53 +02:00
Darius Arnold
8dcea2a8c3
[change] PickingResults now only stores actual results, PickingContainer stores intermediary values
...
PickingResults now stores only the actual results of picking, which are returned from the autopickstation function.
To store intermediary results during picking, the new class PickingContainer is used.
2018-08-03 10:59:10 +02:00
Darius Arnold
076115f7f5
[add] Station A106 to tests
...
This station has invalid values recorded on both N and E component, but a pick can still be found on Z
2018-07-30 14:32:32 +02:00
Darius Arnold
d14e789e97
Modify test to test that picking is possible for station with only vertical component
2018-07-30 14:31:56 +02:00
Darius Arnold
09721c7bb9
[add] station CH.FIESA to test_autopickstation
2018-07-20 15:06:15 +02:00
Darius Arnold
653e7c9b9a
[remove] unused function for creating an error message for autopickstation tests
2018-07-20 15:05:42 +02:00
Darius Arnold
1b815a27b8
[add] HidePrint can be configured to skip hiding for quick debugging of tests
2018-07-20 15:04:48 +02:00
Darius Arnold
153beff663
[add] tests for picking with missing trace in stream
2018-07-20 13:02:57 +02:00
7a0d3486a6
[cleanup] code cleanup by PyCharm
2018-07-17 14:49:34 +02:00
Darius Arnold
02873938cb
[change] minSlope value decreased due to difference in slope calculation
2018-07-17 11:37:29 +02:00
Darius Arnold
d84be68694
[add] tests for file where metadata has changed due to changed instruments
2018-07-17 11:18:07 +02:00
Darius Arnold
787c46eeaf
[add] tests for file where metadata is available at multiple time intervals
2018-07-17 11:17:23 +02:00
Darius Arnold
da29b286f1
[add] tests for read_single_file
2018-07-17 10:56:53 +02:00
Darius Arnold
7734650d2e
Move the metadata files used ofr testing into own folder
2018-07-17 10:34:42 +02:00
Darius Arnold
f5c1fea159
[Change] use HidePrints to clean output of test results
2018-07-13 23:25:11 +02:00
Darius Arnold
10aa0360bc
[Add] Utility class to hide prints during testing
...
Provides with HidePrints context manager and @HidePrints.hide decorator
2018-07-13 21:33:45 +02:00
Darius Arnold
c308415aa5
Move test_autopickstation to subdirectory in pylot/tests
2018-07-13 09:45:57 +02:00
Darius Arnold
2c92f6f2fd
Merge branch 'develop' into feature/refactor
2018-07-13 09:28:50 +02:00
1d215c181c
[update] time optional for get_metadata/get_coordinates, if not time is specified use current UTCDateTime
2018-07-12 11:43:15 +02:00
84ed0b900f
[update] unit test for Metadata class
2018-07-12 11:28:43 +02:00
Darius Arnold
51f2ded063
[add] basic unittests for Metadata class
2018-07-10 17:07:46 +02:00
Darius Arnold
67cf1f9010
Change tests to work with updated AIC
2018-07-06 10:51:50 +02:00
Darius Arnold
accb3c5d51
Add unittests for PickingResults
2018-06-19 11:20:57 +02:00
Darius Arnold
075b6e26c7
Modify test assertion to use DictContainsSubset and look at P and S seperately
...
With AssertDictContainsSubset the resulting dict from the new code can have more key/value pairs than the one from the old code, but all key/value pairs that are in the results from the old code must exist and be the same.
2018-06-19 11:19:49 +02:00
Darius Arnold
58191e2d8f
[add] test for dot access in PickingParameter object
2018-05-29 19:04:51 +02:00
Darius Arnold
c38e3eb07a
[refactor] rename getQualityFromUncertainty function to be more pythonic
2018-05-29 18:53:38 +02:00
Darius Arnold
7910df3cc9
[add] tests for getQualityFromUncertainty function
...
Testing uncertainty in classes, between classes and outside of upper/lower bound of quality classes
2018-05-29 18:43:59 +02:00
Darius Arnold
82c0b7837c
Add tests for creating of PickingParameters object from *args and **kwargs
2018-05-25 18:00:06 +02:00
Darius Arnold
455733ea19
[Add] Unittest for autopickstation function picking with and without taupy
2018-05-22 19:21:29 +02:00