mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Fix PRS1 typo, resolve use of multiple event lists and refine warning.
This commit is contained in:
parent
44d134dee5
commit
8fa5df5f89
@ -4319,7 +4319,7 @@ QList<PRS1DataChunk *> PRS1Import::CoalesceWaveformChunks(QList<PRS1DataChunk *>
|
||||
}
|
||||
|
||||
|
||||
bool PRS1Import::ParseOximetery()
|
||||
bool PRS1Import::ParseOximetry()
|
||||
{
|
||||
int size = oximetry.size();
|
||||
|
||||
@ -4506,7 +4506,7 @@ bool PRS1Import::ParseSession(void)
|
||||
// Parse .006 Waveform file
|
||||
oximetry = loader->ParseFile(oxifile);
|
||||
oximetry = CoalesceWaveformChunks(oximetry);
|
||||
ParseOximetery();
|
||||
ParseOximetry();
|
||||
|
||||
if (session->first() > 0) {
|
||||
if (session->last() < session->first()) {
|
||||
|
@ -249,7 +249,7 @@ public:
|
||||
bool ParseWaveforms();
|
||||
|
||||
//! \brief Takes the parsed list of oximeter waveform chunks and adds them to the database.
|
||||
bool ParseOximetery();
|
||||
bool ParseOximetry();
|
||||
|
||||
|
||||
//! \brief Parse a single data chunk from a .002 file containing event data for a standard system one machine
|
||||
|
@ -230,13 +230,23 @@ void SessionToYaml(QString filepath, Session* session)
|
||||
// Note that this is a vector of lists
|
||||
QVector<EventList *> &ev = session->eventlist[*key];
|
||||
int ev_size = ev.size();
|
||||
if (ev_size == 0) {
|
||||
continue;
|
||||
}
|
||||
EventList &e = *ev[0];
|
||||
|
||||
// TODO: See what this actually signifies. Some waveform data seems to have to multiple event lists,
|
||||
// which might reflect blocks within the original files, or something else.
|
||||
if (ev_size > 2) qDebug() << session->session() << eventChannel(*key) << "ev_size =" << ev_size;
|
||||
// Multiple eventlists in a channel are used to account for discontiguous data.
|
||||
// See CoalesceWaveformChunks for the coalescing of multiple contiguous waveform
|
||||
// chunks and ParseWaveforms/ParseOximetry for the creation of eventlists per
|
||||
// coalesced chunk.
|
||||
//
|
||||
// TODO: Is this only for waveform data?
|
||||
if (ev_size > 1 && e.type() != EVL_Waveform) {
|
||||
qWarning() << session->session() << eventChannel(*key) << "ev_size =" << ev_size;
|
||||
}
|
||||
|
||||
for (int j = 0; j < ev_size; j++) {
|
||||
EventList &e = *ev[j];
|
||||
e = *ev[j];
|
||||
out << " - count: " << (qint32)e.count() << endl;
|
||||
if (e.count() == 0)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user