We use cookies and other tools to enhance your experience on our website and to analyze our web traffic.
For more information about these cookies and the data collected, please refer to our Privacy Policy.

Lights out/on - SHHS Visit 1

2 posts
Was this reply useful? Learn more...
 
[-]
diegomazzotti1 +0 points · about 6 years ago

Dear all, thank you for the great resource!

I have a question about deriving the appropriate time stamp for lights out and on for SHHS visit 1.

According to the definition of the variable "stloutp" (Lights out time), "(...) values are in number of epochs from start of recording(...)". Does that mean the if I extract the start time stamp from the EDF or annotation files, and add 30*stloutp seconds to the time stamp, I can get an accurate time stamp for the lights out time, i.e.:

lights_out = timestamp.start + (30*stloutp)

Similarly, if I sum the variable time_bed to the previously calculated lights_out, we should get the lights on time stamp, i.e.:

lights_on = lights_out + time_bed

Could you confirm that these calculations can inform accurately the lights out/on times?

I appreciate your help!

Best,

Diego

442 posts
bio
Was this reply useful? Learn more...
 
[-]
mrueschman +0 points · about 6 years ago

Diego,

Thanks for checking out the resource. The approach you have outlined looks correct to me.

Mike

2 posts
Was this reply useful? Learn more...
 
[-]
diegomazzotti1 +0 points · about 6 years ago

Great, thanks!