-
Notifications
You must be signed in to change notification settings - Fork 66
Description
GGIR Version: 3.2-6
OS: Mac OS Version 15.3.1 (24D70)
Description:
When processing custom CSV files (using rmc.* parameters), GGIR 3.2-6 encounters an error during the final PDF report generation stage. The error indicates that GGIR is attempting to access a path where an .RData filename is incorrectly treated as a directory component within the meta/ms5.outraw/ structure.
These custom CSV can be processed with GGIR 3.1-2 with no problem.
Error Message:
Error in gzfile(file, "wb") : cannot open the connection
In addition: Warning message:
In gzfile(file, "wb") :
cannot open compressed 1 file '~/GGIR_test/GGIR_326_bin.RData_test_100//output_bin.RData/meta/ms5.outraw/30_100_400/AJ_left wrist_056961_2020-11-23 16-29-51_acc_ColeKripke1992_ZC.RData', probable reason 'No such file or directory'
where
AJ_left writ_056961_2020-11-23 16-29-51_acc.csv is the filename of the input
~/GGIR_test/GGIR_326_bin_csv_simplified_name_and_part6_F_100 is the output folder.
File:
I can provide the file that creates this error in a private message.
GGIR parameters:
GGIR::GGIR(
nonwear_approach = "2023",
mode = c(1:5),
datadir = datadir,
outputdir = outputdir,
do.report = c(2,4,5),
desiredtz = "America/New_York",
HASIB.algo = ColeKripke1992,
Sadeh_axis = T
# Part 1 =====================
do.cal = T,
do.imp = T,
do.enmo = T,
do.anglez= T,
chunksize= 1,
do.parallel=FALSE,
# ------------
# csv settings
# ------------
rmc.firstrow.header = 1,
rmc.header.length = 2,
rmc.sf = sf,
# rmc.skip = 1,
rmc.firstrow.acc = 3,
rmc.col.time = 1,
rmc.col.acc = 2:4,
rmc.unit.time = "POSIX",
rmc.headername.sf = "sample_frequency",
rmc.headername.sn = "device_serial_number",
rmc.headername.recordingid = "subjectID",
rmc.format.time = "%d/%m/%Y %H:%M:%OS",
rmc.doresample = F,
rmc.check4timegaps = F,
#=====================
# Part 2
#=====================
strategy = 1,
hrs.del.start = 0, hrs.del.end = 0,
maxdur = 0,
includedaycrit = 1,
qwindow = c(0,24),
mvpathreshold = c(100),
bout.metric = 6,
excludefirstlast = FALSE,
includenightcrit = 1,
cosinor = TRUE,
#=====================
# Part 3 + 4
#=====================
def.noc.sleep = 1,
outliers.only = TRUE,
criterror = 4,
do.visual = T,
#=====================
# Part 5
#=====================
threshold.lig = c(30), threshold.mod = c(100), threshold.vig = c(400),
boutcriter = 0.8, boutcriter.in = 0.9, boutcriter.lig = 0.8,
boutcriter.mvpa = 0.8, boutdur.in = c(1,10,30), boutdur.lig = c(1,10, 30),
boutdur.mvpa = c(1, 5, 10),
includedaycrit.part5 = 1/3,
iglevels = c(seq(0,4000,by=25),8000),
qlevels = c(c(1380/1440),c(1410/1440),c(1430/1440)),
ms5rawlevels = F,
save_ms5rawlevels = FALSE,
part6HCA = F,
#=====================
# Visual report
#=====================
timewindow = c("WW"),
visualreport = T
)