Skip to content

Commit

Permalink
fix typo in warning text and skipping dictionary creation in developm…
Browse files Browse the repository at this point in the history
…ent mode when object baseDictionary cannot be found
  • Loading branch information
vincentvanhees committed Nov 6, 2023
1 parent fbb99f5 commit aabe36e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/g.part4.R
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ g.part4 = function(datadir = c(), metadatadir = c(), f0 = f0, f1 = f1,
# This should never happen, but just as a final backup
defaultSptOnset = 21
defaultSptWake = 31
warning("Guider not iddentified in ID ", accid, ", falling back on 9pm-7am window", call. = FALSE)
warning("Guider not identified in ID ", accid, ", falling back on 9pm-7am window", call. = FALSE)
}
} else if ((length(params_sleep[["def.noc.sleep"]]) == 1 ||
length(params_sleep[["loglocation"]]) != 0) &&
Expand Down
1 change: 1 addition & 0 deletions R/g.report.part5_dictionary.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ g.report.part5_dictionary = function(metadatadir, sep_reports = ",") {
ds = grep("^part5_daysummary", basename(reports))[1]
ps = grep("^part5_personsummary", basename(reports))[1]
reports = reports[c(ds, ps)]
if (!exists("baseDictionary")) return()
# read col names of each report and derive definitions
for (ri in 1:length(reports)) {
# read report
Expand Down

0 comments on commit aabe36e

Please sign in to comment.