Skip to content

Commit 76f959d

Browse files
committed
use brain parts as code names, set default version to 1.0
1 parent fc0dba5 commit 76f959d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
* Copyright (C) 2019 Qianqian Fang <q.fang at neu.edu>
44
* License: GNU General Public License version 3 (GPL v3) or Apache License 2.0, see License*.txt
5-
* Version: 0.4
5+
* Version: 0.4 (code name: Amygdala - alpha)
66
* URL: http://github.com/fangq/jsnirf/lib/matlab
77

88
## Overview
@@ -19,7 +19,7 @@ storage, grouping, compression, integration with heterogeneous scientific data
1919
enabled by JData data serialization framework.
2020

2121
This toolbox also provides a fast/complete reader/writer for the HDF5-based SNIRF
22-
files (along with any HDF5 data) via the embedded EazyH5 toolbox
22+
files (along with any HDF5 data) via the EazyH5 toolbox
2323
(http://github.com/fangq/eazyh5). The toolbox can read/write SNIRF v1.0 data
2424
files specified by the SNIRF specification http://github.com/fNIRS/snirf .
2525

@@ -77,7 +77,7 @@ is converted to the below JSON/JSNIRF data structure
7777
{
7878
"SNIRFData": [
7979
{
80-
"formatVersion": '1',
80+
"formatVersion": '1.0',
8181
"metaDataTags":{
8282
"SubjectID": ...
8383
},
@@ -92,7 +92,7 @@ is converted to the below JSON/JSNIRF data structure
9292
"probe": ...
9393
},
9494
{
95-
"formatVersion": '1',
95+
"formatVersion": '1.0',
9696
"metaDataTags":{
9797
"SubjectID": ...
9898
},

jsnirfcreate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
if(isfield(nirsdata,'format'))
6969
nirsdata=rmfield(nirsdata,'format');
7070
end
71-
jsn=struct('formatVersion','1','nirs', nirsdata);
71+
jsn=struct('formatVersion','1.0','nirs', nirsdata);
7272
else
73-
nirsdata.formatVersion='1';
73+
nirsdata.formatVersion='1.0';
7474
len=length(fieldnames(nirsdata));
7575
nirsdata=orderfields(nirsdata,[len,1:len-1]);
7676
jsn=struct('SNIRFData', nirsdata);

0 commit comments

Comments
 (0)