edfize 0.5.0.rc → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/README.md +17 -7
- data/lib/edfize/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e9aa5913a138ac3eed3ee1d87d5c310167368ef
|
|
4
|
+
data.tar.gz: 910e7861a4db860a9975419e7d7799f1817c4f11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb26b2d8cae0de66bd48dd8db154bc3632b2ced0d6ccb51f6049511db108d209b054b02e2398db02148f86efd3e1a53aeecfc713d7ec43ad3b486461e1239ebe
|
|
7
|
+
data.tar.gz: 8bd2321dd7d9acf735e06608cddff90e97940f93d5891a2bd2b51f0d5e8896b5ef095bdd7283ab40eae7b80f365561d113ea8033f430fc3de3522bafda9379fb
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
[](https://gemnasium.com/sleepepi/edfize)
|
|
5
5
|
[](https://codeclimate.com/github/sleepepi/edfize)
|
|
6
6
|
|
|
7
|
-
Ruby gem used to load, validate, and parse European Data Format files. Used for
|
|
7
|
+
Ruby gem used to load, validate, and parse European Data Format files. Used for
|
|
8
|
+
batch testing EDFs for errors. Ruby 2.2+ compatible.
|
|
8
9
|
|
|
9
10
|
## Installation
|
|
10
11
|
|
|
@@ -16,24 +17,32 @@ Use `gem install edfize --pre` to update Edfize to the latest prerelease
|
|
|
16
17
|
|
|
17
18
|
### Validate EDFs
|
|
18
19
|
|
|
19
|
-
Use `edfize test` to test that EDFs stored in the current directory have a valid
|
|
20
|
+
Use `edfize test` to test that EDFs stored in the current directory have a valid
|
|
21
|
+
format.
|
|
20
22
|
|
|
21
23
|
cd <edf-directory>
|
|
22
24
|
edfize test
|
|
23
25
|
|
|
24
26
|
A list of validations performed is:
|
|
25
27
|
|
|
26
|
-
- **Expected Length Check**: Compares the calculated size of the file based on
|
|
27
|
-
|
|
28
|
+
- **Expected Length Check**: Compares the calculated size of the file based on
|
|
29
|
+
signal sizes defined in the header with the actual file size. A failure may
|
|
30
|
+
indicate corruption in the header (if the expected is less than the actual
|
|
31
|
+
file size), or a partial/truncated file (if the expected is more than the
|
|
32
|
+
actual file size).
|
|
33
|
+
- **Reserved Area Checks**: Check that reserved areas are blank. Non-blank
|
|
34
|
+
reserved areas can indicate a sign of header or EDF file corruption.
|
|
28
35
|
|
|
29
36
|
Flags that can be added to the `test` command include:
|
|
30
37
|
|
|
31
38
|
- `--failing`: Only display EDFs with failing tests
|
|
32
|
-
- `--quiet`: Suppress detailed failure descriptions that show the expected
|
|
39
|
+
- `--quiet`: Suppress detailed failure descriptions that show the expected
|
|
40
|
+
versus the actual result of the test
|
|
33
41
|
|
|
34
42
|
### Print Signal Header information
|
|
35
43
|
|
|
36
|
-
Use `edfize run` to print out signal header information for each EDF in the
|
|
44
|
+
Use `edfize run` to print out signal header information for each EDF in the
|
|
45
|
+
current directory.
|
|
37
46
|
|
|
38
47
|
cd <edf-directory>
|
|
39
48
|
edfize run
|
|
@@ -72,7 +81,8 @@ end
|
|
|
72
81
|
|
|
73
82
|
### Example of how to Load and Analyze EDFs in a Ruby Script
|
|
74
83
|
|
|
75
|
-
The following Ruby file demonstrates how to make use of the Edfize gem to load
|
|
84
|
+
The following Ruby file demonstrates how to make use of the Edfize gem to load
|
|
85
|
+
EDF signals into arrays for analysis.
|
|
76
86
|
|
|
77
87
|
`tutorial_01_load_edf_and_signals.rb`
|
|
78
88
|
```ruby
|
data/lib/edfize/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: edfize
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.0
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Remo Mueller
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-04-
|
|
11
|
+
date: 2017-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -94,9 +94,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
94
94
|
version: '0'
|
|
95
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
requirements:
|
|
97
|
-
- - "
|
|
97
|
+
- - ">="
|
|
98
98
|
- !ruby/object:Gem::Version
|
|
99
|
-
version:
|
|
99
|
+
version: '0'
|
|
100
100
|
requirements: []
|
|
101
101
|
rubyforge_project:
|
|
102
102
|
rubygems_version: 2.6.11
|