From b41380fcbdcd0f09ca3e31e752f8408f6a737f5a Mon Sep 17 00:00:00 2001 From: Jairo H Migueles Date: Tue, 25 Jun 2024 17:37:52 +0200 Subject: [PATCH 1/3] ignore potential part 1 meta files without data --- R/appendRecords.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/appendRecords.R b/R/appendRecords.R index 8586fb463..dde5b60fc 100644 --- a/R/appendRecords.R +++ b/R/appendRecords.R @@ -3,6 +3,7 @@ appendRecords = function(metadatadir, desiredtz = "", idloc = 1, maxRecordingInt # Declare local functions: getInfo = function(fn, idloc, tz) { load(fn) + if (is.null(M$metashort)) return() hvars = g.extractheadervars(I) if (exists("Clist")) { ID = NA # If Clist exists then ignore this file as it was previously appended From dd3a2bcebc04f82d9b2e09376a0f52ac3ed0582a Mon Sep 17 00:00:00 2001 From: Jairo H Migueles Date: Thu, 27 Jun 2024 10:54:06 +0200 Subject: [PATCH 2/3] update NEWS --- NEWS.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NEWS.md b/NEWS.md index 78178c510..7248e9fd1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -8,6 +8,9 @@ - Part 1: Reduce constraints on value for parameter chunksize #1155. +- Part 1: Fix minor bug when appending records if any of the files has not enough data to produce +meaningful metashort and metalong objects in part 1. #1162 + - Report part 5: Rename variable sleep_efficiency to sleep_efficiency_after_onset, #1157 - Vignette: Migrated many sections from main CRAN vignette to wadpac.github.io/GGIR/ From 4f043ea65fc85ff8b1789216fc880a7d6ed51ced Mon Sep 17 00:00:00 2001 From: Jairo H Migueles Date: Fri, 28 Jun 2024 10:55:32 +0200 Subject: [PATCH 3/3] revise NEWS item --- NEWS.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index 7248e9fd1..11670290a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -8,8 +8,7 @@ - Part 1: Reduce constraints on value for parameter chunksize #1155. -- Part 1: Fix minor bug when appending records if any of the files has not enough data to produce -meaningful metashort and metalong objects in part 1. #1162 +- Part 1: When appending records ignore files that have not enough data to produce meaningful metashort and metalong objects in part 1. #1162 - Report part 5: Rename variable sleep_efficiency to sleep_efficiency_after_onset, #1157