Skip to content

Commit

Permalink
Merge pull request #1164 from wadpac/issue1162_appendRecords
Browse files Browse the repository at this point in the history
Address minor bug when appending records
  • Loading branch information
vincentvanhees authored Jun 28, 2024
2 parents 756e1f3 + 4f043ea commit 2701e8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

- Part 1: Reduce constraints on value for parameter chunksize #1155.

- 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

- Vignette: Migrated many sections from main CRAN vignette to wadpac.github.io/GGIR/
Expand Down
1 change: 1 addition & 0 deletions R/appendRecords.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2701e8b

Please sign in to comment.