Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
18bfbd4
ENH: i/o for fiducials fiff files
christianbrodbeck Jan 13, 2013
7bc1440
ENH coreg: add MriHeadFitter
christianbrodbeck Jan 13, 2013
943b7db
ENH: add GUIs: MriHeadCoreg, FixDigHeadShape, FindDigPoint
christianbrodbeck Jan 15, 2013
8f6f093
ENH: import shortcuts / mne.gui module
christianbrodbeck Feb 2, 2013
ffa1be9
DOC
christianbrodbeck Feb 2, 2013
0137428
ENH: mri fitting with scaling
christianbrodbeck Feb 2, 2013
d44fbc7
ENH geom: wireframe plotting (line_width=1 and lighting=False)
christianbrodbeck Feb 3, 2013
297c9f8
FIX coreg: MriHeadFitter
christianbrodbeck Feb 3, 2013
43242e4
ENH: MRI-Head coregistration GUI
christianbrodbeck Feb 3, 2013
206efec
FIX: MriHeadFitter.save_all() default trans fname; HeadMriFitter raw …
christianbrodbeck Feb 3, 2013
268ae25
FIX coreg
christianbrodbeck Feb 3, 2013
cc928a3
ENH: MriHeadCoreg fit & save progress bars
christianbrodbeck Feb 3, 2013
664f1c3
ENH coreg-gui: dialog text
christianbrodbeck Feb 3, 2013
d0bbfd4
ADD: fit_matched_pts() from t3on/tb-mne_kit2fiff
christianbrodbeck Feb 5, 2013
24bf311
ENH: add Fiducials GUI
christianbrodbeck Feb 6, 2013
a9c83b5
ENH coreg: make subject attribute public
christianbrodbeck Feb 6, 2013
27c539a
ENH: add HeadMriCoreg GUI
christianbrodbeck Feb 6, 2013
355cee4
ENH: add fit using fiducials to head-mri coreg
christianbrodbeck Feb 6, 2013
5bcba09
ENH Fiducials: load fiducials file as initial state
christianbrodbeck Feb 6, 2013
7ab5cbc
FIX coreg
christianbrodbeck Feb 8, 2013
068fd83
RF: use HeadViewer baseclass
christianbrodbeck Feb 8, 2013
ed5af03
STY
christianbrodbeck Feb 8, 2013
de11d17
ENH: mne.gui
christianbrodbeck Feb 8, 2013
33dbdbb
ENH: add scale to HeadViewer
christianbrodbeck Feb 10, 2013
4d2ab70
ENH: find files for mri scaling (follow symlinks)
christianbrodbeck Feb 11, 2013
3852026
ENH mri-head coreg: call mne_setup_foward_model with check_output
christianbrodbeck Feb 11, 2013
b72b919
ENH: mri scaling src handling
christianbrodbeck Feb 15, 2013
c66b56e
ENH: move configure_traits() out of __init__
christianbrodbeck Feb 16, 2013
9572cd9
ENH find_mri_paths(): don't raise an error if no source spaces are found
christianbrodbeck Feb 16, 2013
9b25c6d
ENH: provisional wrappers for mne_watershed_bem and mne_setup_mri
christianbrodbeck Feb 16, 2013
a84baf1
ENH: add mne.create_default_subject()
christianbrodbeck Feb 16, 2013
bd976ca
ENH: allow customization of trans_fname
christianbrodbeck Feb 16, 2013
224a53c
ENH: add combine_markers GUI
christianbrodbeck Feb 24, 2013
193d0c3
ENH kit coreg read_hsp(): limit number of points
christianbrodbeck Feb 25, 2013
c555b03
FIX: coreg_gui
christianbrodbeck Feb 25, 2013
f93927c
ENH: KIT coregistration
christianbrodbeck Feb 26, 2013
f4ef1bb
ADD: viewer module for HeadViewController, PointObject, SurfaceObject
christianbrodbeck Feb 26, 2013
fa9b763
OPT apply_transform: only transpose trans
christianbrodbeck Feb 28, 2013
011f429
ENH: add coord_trans() function for transform between different coord…
christianbrodbeck Mar 2, 2013
068d00a
ENH marker_gui
christianbrodbeck Feb 27, 2013
fa13936
ADD kit2fiff_gui
christianbrodbeck Feb 28, 2013
2915612
ADD fiducials_gui
christianbrodbeck Mar 3, 2013
5fc6a1b
update mne.gui: add fiducials()
christianbrodbeck Mar 3, 2013
41e8f6f
ENH coreg: proper error message
christianbrodbeck Mar 5, 2013
0ae53c9
ENH: coreg / MRI scaling
christianbrodbeck Mar 7, 2013
0618dc1
kit2fiff_gui
christianbrodbeck Mar 5, 2013
579c01c
viewer
christianbrodbeck Mar 5, 2013
b78f108
ENH: RawKIT.__repr__
christianbrodbeck Mar 9, 2013
a0b65f0
ENH transforms: add rotation3d
christianbrodbeck Mar 7, 2013
9be190c
ADD file_traits
christianbrodbeck Mar 20, 2013
608253a
marker GUI
christianbrodbeck Mar 5, 2013
746e213
ENH source_space: add mne_prepare_bem_model and mne_setup_source_spac…
christianbrodbeck Mar 10, 2013
9131a20
ADD manual page
christianbrodbeck Mar 6, 2013
1d8eaff
coreg_gui
christianbrodbeck Mar 7, 2013
e6996c6
viewer
christianbrodbeck Mar 25, 2013
60f6a73
fiducials_gui
christianbrodbeck Mar 20, 2013
b042b37
mne.gui
christianbrodbeck Mar 7, 2013
503d136
amend mne.fiff.kit.test_coreg
christianbrodbeck Apr 1, 2013
80456a7
manual
christianbrodbeck Apr 1, 2013
b27138e
ENH fiff.kit.coreg.read_elp(): assert correct number of points
christianbrodbeck Apr 1, 2013
5b2b962
marker_gui
christianbrodbeck Apr 1, 2013
211abe0
FIX fiff.kit: read AD channels (by @t3on); Allow .mrk extension fo…
christianbrodbeck Apr 1, 2013
558f607
ki2fiff_gui
christianbrodbeck Mar 9, 2013
86ce00c
ENH kit2fiff: add slope argument for stim channel conversion.
teonbrooks Apr 1, 2013
08be04c
coreg_gui: expose picker tolerance
christianbrodbeck Apr 2, 2013
84f1246
mne.source_space
christianbrodbeck Apr 9, 2013
06b1753
ENH coreg: create_default_subject() add option to create source space
christianbrodbeck Apr 9, 2013
a831f93
ENH source_space: logging for subprocesses
christianbrodbeck Apr 11, 2013
d099fdd
FIX change the default endian and trigger slope
teonbrooks Apr 23, 2013
20b2afe
ENH read sns info from the sqd
teonbrooks Apr 23, 2013
4a54996
FIX kit2fiff_gui: remove sns file
christianbrodbeck Apr 29, 2013
23edd41
ENH RawKIT: extract (and expose) .set_stimchannels() method
christianbrodbeck May 4, 2013
2ca7720
ENH kit2fiff_gui Abu Dhabi compatibility
christianbrodbeck May 4, 2013
6bb9b5e
DOC: error message when loading non-continuus sqd
christianbrodbeck May 5, 2013
40c0d9c
FIX source_space subprocess call
christianbrodbeck May 5, 2013
aaced2f
coreg_gui
christianbrodbeck May 7, 2013
b07d5cb
coreg_gui: fit evaluation
christianbrodbeck May 12, 2013
61482e9
kit2fif_gui
christianbrodbeck May 8, 2013
ddcc6cf
tranforms.apply_trans(): allow trans with shape (3, 3)
christianbrodbeck May 12, 2013
e0a418e
kit2fiff: DOC
christianbrodbeck May 12, 2013
860063d
fiff/kit.py amend
christianbrodbeck May 13, 2013
ed379c1
marker_gui: show distance for each marker
christianbrodbeck May 13, 2013
c9c2bb8
ENH coreg_gui: warn if MNE_ROOT is not set
christianbrodbeck May 19, 2013
439a5de
mne.gui
christianbrodbeck May 19, 2013
b3b9142
kit2fiff_gui
christianbrodbeck May 19, 2013
3c34a8e
marker_gui
christianbrodbeck May 19, 2013
b3c608d
coreg (prune)
christianbrodbeck May 19, 2013
df641be
expose more functions in mne.transforms
christianbrodbeck May 19, 2013
0d0ff6a
ENH RawKIT: allow saving without dig/trans
christianbrodbeck May 21, 2013
eca77ff
ENH kit2fiff_gui: allow saving without dig/trans
christianbrodbeck May 21, 2013
ae30262
STY: move all gui scripts to a separate package
christianbrodbeck May 21, 2013
e02df5d
FIX fiducials gui fiducials order
christianbrodbeck May 22, 2013
03fa4cc
coreg: DOC/cleanup
christianbrodbeck May 26, 2013
1db83cd
coreg_gui
christianbrodbeck May 26, 2013
e3b68eb
ENH wrapers for mne_prepare_bem_model and mne_setup_source_space
christianbrodbeck May 26, 2013
fa87298
ENH run_subprocess(): make stdout/stderr headings more discernible
christianbrodbeck May 26, 2013
e8b2626
mne.__init__: add setup_source_space()
christianbrodbeck May 26, 2013
0670295
cleanup (DOC, pep8 etc.)
christianbrodbeck Jun 5, 2013
a841537
ENH kit2fiff_gui: threaded conversion processing
christianbrodbeck Jun 5, 2013
c6d7d0c
ENH coreg_gui: threaded background processing
christianbrodbeck Jun 6, 2013
c591ce1
FIX coreg_gui: deal with empty subjects_dir
christianbrodbeck Jun 7, 2013
6978e86
ENH SubjectSelector: add "create fsaverage" option
christianbrodbeck Jun 10, 2013
12fba89
RawKIT: STY: method names to set digitizer data; RF: integrate get_…
christianbrodbeck Jun 13, 2013
0fed6c6
FIX coreg_gui / fiducially panel: don't allow locking incomplete fid…
christianbrodbeck Jun 14, 2013
60baaaf
DOC: manual
christianbrodbeck May 26, 2013
e20d069
ENH coreg_gui: interactivity
christianbrodbeck Jun 14, 2013
874faab
API: expose more functions in mne.transforms
christianbrodbeck Jun 14, 2013
b91841c
ENH coreg_gui: disable immediate interpretation of scale1 parameter …
christianbrodbeck Jun 14, 2013
9b9234a
ENH coreg_gui: add resolution option to GUI viewer PointObject for h…
christianbrodbeck Jun 15, 2013
82f6ff3
FIX coreg_gui: NewMriDialog feedback behavior
christianbrodbeck Jun 15, 2013
9c99e7e
STY fiducials_gui: make attribute names all lowercase
christianbrodbeck Jun 18, 2013
b495305
ENH coreg_gui: fiducials picker uses cell picker
christianbrodbeck Jun 18, 2013
cddc35d
ENH fiducials_gui: one array editor to edit current fiducial position
christianbrodbeck Jun 18, 2013
a12bc9f
ENH coreg_gui: 3 column view
christianbrodbeck Jun 18, 2013
eb0640b
ENH coreg_gui: display processing info as multiple lines
christianbrodbeck Jun 29, 2013
0a29f18
ENH kit2fiff_gui: specify view height
christianbrodbeck Jun 18, 2013
26e2bff
DOC/STY
christianbrodbeck Jun 18, 2013
1df301d
ENH transforms: supplant coord_trans () and transform_ALS_to_RAS() w…
christianbrodbeck Jun 18, 2013
448db15
FIX coreg_gui: don't allow mne_setup_source_space without mne_prepar…
christianbrodbeck Jun 21, 2013
7d9b52c
FIX coreg_gui: qt4 backend compatibility
christianbrodbeck Jun 25, 2013
84ed321
FIX SubjectSelector: "Make FsAverage" as button instead of drop down…
christianbrodbeck Jun 27, 2013
896ce5a
STY coreg_gui: group subject trait synchronization commands
christianbrodbeck Jun 27, 2013
c4de928
FIX coreg_gui: in assert_env_set, also add mne/bin directory to PATH
christianbrodbeck Jun 27, 2013
87da754
FIX coreg_gui: on initialization, ignore subjects_dir if it is not a…
christianbrodbeck Jun 27, 2013
fa21eb8
REV/DOC KIT head shapes: drop support for pickled head shapes
christianbrodbeck Jun 27, 2013
9d2fd60
TEST
christianbrodbeck Jun 27, 2013
6d7f4be
TEST coreg: fit_matched_points
christianbrodbeck Jun 28, 2013
a50417a
ENH coreg: make fit_ functions more similar
christianbrodbeck Jun 28, 2013
d7ae2f3
ENH kit2fiff: automatically decimate head shape points for files wit…
christianbrodbeck Jun 28, 2013
f2a8666
TEST coreg: fit_point_cloud
christianbrodbeck Jun 28, 2013
3e04175
ENH coreg_gui: default MRI head shape color
christianbrodbeck Jun 29, 2013
6da8f85
STY in kit2fiff TEST
christianbrodbeck Jun 30, 2013
ccf5dd4
API: expose more in mne.transforms
christianbrodbeck Jul 1, 2013
35d06e6
FIX/TEST kit2fiff: transformation into MNE head coordinates
christianbrodbeck Jun 30, 2013
63b4c49
STY
christianbrodbeck Jul 1, 2013
1c5c442
ENH coreg_gui: set busy cursor when fitting
christianbrodbeck Jul 2, 2013
e139ab4
ENH scale_labels(): option to include all labels
christianbrodbeck Jul 4, 2013
9423f47
DOC: coregistration manual
christianbrodbeck Jul 4, 2013
4f64fc9
ENH gui: show info dialogs in assert_env
christianbrodbeck Jul 4, 2013
3fff170
ENH mri scaling: make scaling source spaces optional
christianbrodbeck Jul 4, 2013
741b27b
ENH coreg_gui layout: axis labels
christianbrodbeck Jul 4, 2013
da29e0c
FIX coreg_gui: don't open error message in worker thread
christianbrodbeck Jul 4, 2013
0faba00
DOC corey manual: note on mne_analyze
christianbrodbeck Jul 5, 2013
1004dc6
ENH kit.coreg: add and TEST write_mrk()
christianbrodbeck Jul 5, 2013
26a770d
TEST scale_mri
christianbrodbeck Jul 5, 2013
6823882
ENH run_subprocess: on error, log stdout and stderr as error
christianbrodbeck Jul 15, 2013
22ee81f
FIX kit: open sqd file in binary mode
christianbrodbeck Jul 26, 2013
822a4bc
FIX: update setup.py
christianbrodbeck Jul 30, 2013
dffbb03
ENH read_raw_kit: default mrk, elp and hsp to None
christianbrodbeck Aug 2, 2013
f43daf9
FIX coreg_gui: don't do fit-evaluation when impossible
christianbrodbeck Aug 15, 2013
8f51683
ENH coreg_gui: adjust trans parameters with step buttons
christianbrodbeck Aug 15, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions bin/mne_kit2fiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
help='Headshape file name', metavar='filename')
parser.add_option('--hsp', dest='hsp_fname',
help='Headshape file name', metavar='filename')
parser.add_option('--sns', dest='sns_fname',
help='Sensor info file name', metavar='filename')
parser.add_option('--stim', dest='stim',
help='Colon Separated Stimulus Trigger Channels',
metavar='chs')
parser.add_option('--stimthresh', dest='stimthresh', default=3.5,
parser.add_option('--slope', dest='slope', help='Slope direction',
metavar='slope')
parser.add_option('--stimthresh', dest='stimthresh', default=1,
help='Threshold value for trigger channels',
metavar='value')
parser.add_option('--output', dest='out_fname',
Expand All @@ -42,20 +42,20 @@
parser.print_help()
sys.exit(-1)

sns_fname = options.sns_fname
hsp_fname = options.hsp_fname
elp_fname = options.elp_fname
mrk_fname = options.mrk_fname
stim = options.stim
slope = options.slope
stimthresh = options.stimthresh
out_fname = options.out_fname

if isinstance(stim, str):
stim = stim.split(':')

raw = read_raw_kit(input_fname=input_fname, mrk_fname=mrk_fname,
elp_fname=elp_fname, hsp_fname=hsp_fname,
sns_fname=sns_fname, stim=stim, stimthresh=stimthresh)
raw = read_raw_kit(input_fname=input_fname, mrk=mrk_fname, elp=elp_fname,
hsp=hsp_fname, stim=stim, slope=slope,
stimthresh=stimthresh)

raw.save(out_fname)
raw.close()
Expand Down
1 change: 1 addition & 0 deletions doc/source/mne-python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ MNE with Python

getting_started.rst
python_tutorial.rst
python_manual.rst
auto_examples/index.rst
python_reference.rst
whats_new.rst
Expand Down
141 changes: 141 additions & 0 deletions doc/source/python_manual.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
=============
Python Manual
=============

.. _mne-coreg-info:

MRI-Head Coregistration in Python
=================================

MRI-Head coregistration is traditionally done in mne_analyze (see
:ref:`CHDBEHDC`). An alternative is a GUI in Python, which is described below.
The Python GUI uses a less sophisticated algorithm for matching the head shape
to the MRI, but it allows scaling the fsaverage brain to match an individual
subject's head shape.

The Python coregistration GUI is invoked with::

>>> mne.gui.coregistration()

Different procedures are outlined below for :ref:`coreg-with-mri` and
:ref:`coreg-without-mri`.

.. Note::
For many GUI elements like buttons, contextual help is available by
hovering the mouse pointer over the relevant controls.


.. _coreg-with-mri:

Subjects with MRI
-----------------

#. **Data Source** Panel:

#. Make sure that ``subjects_dir`` is set correctly, to the directory
containing your MRIs.
#. Load your raw file. Now you should see your digitizer head shape points
on the left.
#. You should then be able to select the MRI in the ``Subject`` drop-down
menu.


.. _coreg-gui-fiducials:

#. **MRI Fiducials** Panel:

#. If the MRI already has a fiducials file they will be automatically
loaded and "Lock" will be selected. In this case you can skip this panel.
If fiducials are not loaded, "Edit" will be selected and "Lock" will not
be selectable until the fiducials are defined.
#. If a fiducials file exists for the MRI, it can be loaded. Alternatively,
the fiducial points can be set manually by selecting the relevant point
(nasion, LAP, RAP) and then clicking on the head model.
#. Once all fiducials are set, the result can be saved (optionally) and then
accepted by selecting "Lock" at the top of the panel.

#. **Coregistration** Panel: Use the lower half of the panel to fit the head
model to the MRI without scaling the MRI.

#. The position of head and MRI are initially aligned using the nasion. The
nasion position will be held constant during the fitting procedure. Use
the "Digitizer Position Adjustment" fields to adjust the nasion position
of the digitizer head shape relative to the MRI.
#. Press one of the "Fit..." buttons to find a transformation that brings
the head shape as close as possible to the MRI:

- **Fit Head Shape** estimates rotation parameters that minimize the
distance from each digitizer point to the closest MRI point.
- **Fit LAP/RAP** estimates rotation parameters that minimize the
distance between the LAPs and RAPs
- **Fit Fiducials** estimates rotation and translation that minimizes
the distance between all three fiducials.

#. Once a satisfactory coregistration is achieved, hit "Save" to save
the trans file.


.. _coreg-without-mri:

Subjects without MRI
--------------------

For subjects for which no structural MRI model is available, a generic brain
model can be substituted. The default is to use the *fsaverage* brain that
comes with Freesurfer_, however, any valid MRI subject can be used.


#. **Data Source** panel:

#. Make sure that ``subjects_dir`` is set correctly, to the directory
which contains (or is to contain) your MRIs.
#. Load your raw file. Now you should see your digitizer head shape points
on the left.
#. You should then be able to select any existing MRI in the ``Subject``
drop-down menu and "Create FsAverage" if the subjects dir does not
already contain an item of that name.

#. **MRI Fiducials** Panel: Since the fsaverage brain comes with preset
fiducials, "Lock" should be selected automatically and you will not have to
do anything. If you are using a brain without fiducials, refer to the
:ref:`MRI Fiducials Panel section <coreg-gui-fiducials>` above.

#. **Coregistration** Panel: Select whether to scale with one factor (same
scaling along x, y and z axes) or with 3 factors (separate scaling factor
for each axis). Then, use the upper half of the panel to find a proper
scaling and the lower half of the panel to adjust the positioning without
affecting the scale.

#. The position of head and MRI are initially aligned using the nasion. The
nasion position will be held constant with most fitting functions. Use
the "Translation" fields to adjust the initial nasion position of the
digitizer head shape relative to the MRI.
#. If the initial rotation of the head shape seems very off, use the
"Fit LAP/RAP" button to bring the heads into approximately overlapping
orientation.
#. Use the upper row of "Fit..." buttons to find a transformation that
fits the MRI within the head shape.

- **Fit Head Shape** estimates scaling and rotation parameters that
minimize the distance from each head shape point to the closest MRI
point.
- **Fit LAP/RAP** estimates scaling and rotation parameters that
minimize the distance between the LAPs and RAPs.
- **Fit Fiducials** estimates scaling, translation and rotation
parameters that minimize the distance between all three fiducials.
- All the parameters can also be manually adjusted in the text fields.

#. Once a satisfactory coregistration is achieved, hit "Save" to save the
MRI as well as the trans file. In the dialog that opens, specify the name
of the new subject (i.e. the folder that is going to be created in the
subjects directory), and which mne utilities should be run (normally the
default should be ok), then hit "ok". Source spaces can also be produced
later by running :func:`mne.setup_source_space`.
#. While the MRI is processed in the background you can keep working with
the GUI, you can coregister another subject in the same Window.

If new labels are added to the fsaverage brain after scaling it, these labels
can be transferred to scaled copies using :func:`mne.transforms.scale_labels`.


.. _Freesurfer: http://surfer.nmr.mgh.harvard.edu
6 changes: 4 additions & 2 deletions mne/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@
from .surface import read_bem_surfaces, read_surface, write_bem_surface, \
write_surface
from .source_space import read_source_spaces, vertex_to_mni, \
write_source_spaces
write_source_spaces, setup_source_space
from .epochs import Epochs, read_epochs
from .label import label_time_courses, read_label, label_sign_flip, \
write_label, stc_to_label, grow_labels, Label, \
BiHemiLabel, labels_from_parc
from .misc import parse_config, read_reject_parameters
from .transforms import transform_coordinates, read_trans, write_trans
from .transforms import transform_coordinates, read_trans, write_trans, \
create_default_subject
from .proj import read_proj, write_proj, compute_proj_epochs, \
compute_proj_evoked, compute_proj_raw, sensitivity_map
from .selection import read_selection
Expand All @@ -49,6 +50,7 @@
from . import epochs
from . import fiff
from . import filter
from . import gui
from . import layouts
from . import minimum_norm
from . import mixed_norm
Expand Down
1 change: 1 addition & 0 deletions mne/fiff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from .constants import FIFF
from .open import fiff_open, show_fiff
from .evoked import Evoked, read_evoked, write_evoked
from .meas_info import read_fiducials, write_fiducials
from .raw import Raw, start_writing_raw, write_raw_buffer, \
finish_writing_raw, concatenate_raws
from .pick import pick_types, pick_channels, pick_types_evoked, \
Expand Down
4 changes: 2 additions & 2 deletions mne/fiff/kit/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
KIT.DATA_OFFSET = 144
KIT.SAMPLE_INFO = 128
KIT.MRK_INFO = 192
KIT.CHAN_LOC_OFFSET = 64

# parameters
KIT.VOLTAGE_RANGE = 5.
Expand Down Expand Up @@ -73,8 +74,7 @@
KIT_AD.nchan = 256

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do those have to be lowercase?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used lowercase here to distinguish between information that I obtained from the original C++ code (in caps) and my added input (lowercase). It's just a matter of (my personal) convention. I'm trying to see if there is a way to get the breakdown of the different sensors from the raw file now. Currently only the overall number of sensors is being given.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think to make it consistent with our constants system we should make it uppercase. If there is good reason not to do so let's add comments.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@t3on Do you want to make a PR? Or do you want me to do change the case or add a comment?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or actually since this is not part of this PR maybe handle it after this one merges?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@christianmbrodbeck I can handle this after the PR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@christianmbrodbeck @t3on open an issue please for stuff that can be handled after the PR

KIT_AD.nmegchan = 208
KIT_AD.nrefchan = 16
KIT_AD.ntrigchan = 8
KIT_AD.nmiscchan = 24
KIT_AD.nmiscchan = 32
KIT_AD.n_sens = KIT_AD.nmegchan + KIT_AD.nrefchan
# 16-bit A-to-D converter, one bit for signed integer. range +/- 32768
KIT_AD.DYNAMIC_RANGE = 2 ** 16 / 2
Expand Down
Loading