Skip to content
Merged
Changes from all commits
Commits
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
7 changes: 6 additions & 1 deletion src/libraries/fiff/fiff_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,12 @@ bool FiffStream::read_meas_info(const FiffDirNode::SPtr& p_Node, FiffInfo& info,
break;
case FIFF_GANTRY_ANGLE:
this->read_tag(t_pTag,pos);
gantry_angle = *t_pTag->toInt();
// MNE-Python writes this as float; older writers used int.
if (t_pTag->getType() == FIFFT_FLOAT) {
gantry_angle = static_cast<fiff_int_t>(*t_pTag->toFloat());
} else if (t_pTag->getType() == FIFFT_INT) {
gantry_angle = *t_pTag->toInt();
}
break;
case FIFF_UTC_OFFSET:
this->read_tag(t_pTag,pos);
Expand Down
Loading