Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address minor bug when appending records #1164

Merged
merged 3 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/
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
Loading