Skip to content

Commit

Permalink
Bugfix: Correct coordinate system on for Curry .pom channel files
Browse files Browse the repository at this point in the history
Identified by @chinmaychinara91
  • Loading branch information
rcassani committed Mar 20, 2024
1 parent 91b65cc commit a2faeda
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/license.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<body alink="#fff000" link="#fff000" vlink="#fff000">
<h4><span style="font-family: Arial Black; color: #ffffff;"><strong>THERE IS NO UNDO BUTTON!<BR>SET UP A <FONT color=red>BACKUP</FONT> OF YOUR DATABASE</strong></span></h4>
<HR>
<!-- LICENCE_START -->Version: 3.240318 (18-Mar-2024)<br>
<!-- LICENCE_START -->Version: 3.240320 (20-Mar-2024)<br>
<span style="font-style: italic;">COPYRIGHT &copy; 2000-2024
USC &amp; McGill University.<br>
</span>
Expand Down
2 changes: 1 addition & 1 deletion doc/version.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
% Brainstorm
% v. 3.240318 (18-Mar-2024)
% v. 3.240320 (20-Mar-2024)
4 changes: 2 additions & 2 deletions toolbox/io/in_channel_curry_pom.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function ChannelMat = in_channel_curry_pom(ChannelFile)
% IN_CHANNEL_CURRY_RS3: Read 3D cartesian positions for a set of points from a Curry .pom file.
% IN_CHANNEL_CURRY_POM: Read 3D cartesian positions for a set of points from a Curry .pom file.
%
% USAGE: ChannelMat = in_channel_curry_pom(ChannelFile)
%
Expand Down Expand Up @@ -68,7 +68,7 @@
case 'pos'
xyz = sscanf(read_line, '%f %f %f') / 1000;
ChannelMat.Channel(iChannel).Type = 'EEG';
ChannelMat.Channel(iChannel).Loc = [-xyz(2); xyz(1); xyz(3)];
ChannelMat.Channel(iChannel).Loc = [xyz(2); -xyz(1); xyz(3)];
ChannelMat.Channel(iChannel).Orient = [];
ChannelMat.Channel(iChannel).Comment = '';
ChannelMat.Channel(iChannel).Weight = 1;
Expand Down

0 comments on commit a2faeda

Please sign in to comment.