wadpac / GGIR

Code corresponding to R package GGIR
https://wadpac.github.io/GGIR/
Apache License 2.0
97 stars 62 forks source link

Axivity AX3 - Error in the first data block reading #368

Closed GeweiZhu closed 3 years ago

GeweiZhu commented 4 years ago

Hi,

I'm quite new to GGIR and I have encountered a problem recently. I processed a couple of cwa files from Axivity AX3 accelerometer, but one of them wouldn't process. An error message showed up stating "Error in readHeader (fid, numDBlocks): Error in the first data block reading". But I have used the same codes for all files and it worked fine for other files. Also I managed to open it in OmGui and it doesn't seem to have a problem. I can't upload the cwa file here as it's too big. Please let me know what would be the best way to share the file with you. I would appreciate any advice on this matter. Thank you for your help in advance.

Becky

Mirkes commented 4 years ago

Dear Becky,

Could you send me the first 100 kilobytes of your cwa file? It looks like the problem in the beginning of file and whole file is not necessary.

Best regards, Evgeny

GeweiZhu commented 4 years ago

Hi Evgeny,

Thank you for your reply. Sorry, I'm really new to accelerometer, too. Therefore, I'm not sure how to only send part of my cwa file.

Best wishes Becky

Gewei Zhu (Becky)

PhD student

Dermatological Sciences

Institute of Translational and Clinical research

2nd floor, William Leech building

Medical school, Framlington place

Newcastle University

NE2 4HH


From: Evgeny Mirkes notifications@github.com Sent: 20 October 2020 14:28 To: wadpac/GGIR GGIR@noreply.github.com Cc: Becky Zhu (PGR) g.zhu2@newcastle.ac.uk; Author author@noreply.github.com Subject: Re: [wadpac/GGIR] Axivity AX3 - Error in the first data block reading (#368)

⚠ External sender. Take care when opening links or attachments. Do not provide your login details.

Dear Becky,

Could you send me the first 100 kilobytes of your cwa file? It looks like the problem in the beginning of file and whole file is not necessary.

Best regards, Evgeny

From: GeweiZhu notifications@github.com Sent: 20 October 2020 14:23 To: wadpac/GGIR GGIR@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [wadpac/GGIR] Axivity AX3 - Error in the first data block reading (#368)

Hi,

I'm quite new to GGIR and I have encountered a problem recently. I processed a couple of cwa files from Axivity AX3 accelerometer, but one of them wouldn't process. An error message showed up stating "Error in readHeader (fid, numDBlocks): Error in the first data block reading". But I have used the same codes for all files and it worked fine for other files. Also I managed to open it in OmGui and it doesn't seem to have a problem. I can't upload the cwa file here as it's too big. Please let me know what would be the best way to share the file with you. I would appreciate any advice on this matter. Thank you for your help in advance.

Becky

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwadpac%2FGGIR%2Fissues%2F368&data=04%7C01%7Cem322%40leicester.ac.uk%7Cc17ea34aba6e4c5972f508d874fb558e%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637387970144154612%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=2s6Fw4DqEMK1j%2BqITG1O7PqxUaL%2B4NzTX4LMKOVv3mo%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAEDX35MFEHMEXQ5LCUR6WBTSLWFM5ANCNFSM4SYLBVXA&data=04%7C01%7Cem322%40leicester.ac.uk%7Cc17ea34aba6e4c5972f508d874fb558e%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637387970144154612%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=YqlAkIjjM%2FYt7NfjUIgemK8JMSupcN7a41ety68U3JE%3D&reserved=0.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/wadpac/GGIR/issues/368#issuecomment-712849897, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMQI4MRQFNRJ4APIVPNNX5TSLWF7TANCNFSM4SYLBVXA.

Mirkes commented 4 years ago

Dear Becky,

Sorry but I do not know your OS.

This link is useful for Linux: https://www.networkworld.com/article/3489256/breaking-linux-files-into-pieces-with-the-split-command.html#:~:text=To%20split%20a%20file%20into,simply%20use%20the%20split%20command.&text=By%20default%2C%20the%20split%20command,chunks%20named%20xza%20and%20xzz.

This link is for Windows: https://superuser.com/questions/94083/how-to-split-large-file-on-windows

This is for MacOS https://superuser.com/questions/313014/how-do-i-use-split-in-the-mac-os-x-terminal-to-split-files-directly-to-another-d

Best regards, Evgeny

vincentvanhees commented 4 years ago

dear both, this issue may overlap with another issue I very recently fixed.

You can find a description of that issue here: https://github.com/wadpac/GGIR/issues/361 The pull request that will fix it is here: https://github.com/wadpac/GGIR/pull/367 I plan to merge this in the master branch later today.

To use this version of GGIR do:

install.packages("devtools")
library(devtools)
devtools::install_github("wadpac/GGIR")

restart R(Studio)

library(GGIR)

Mirkes commented 4 years ago

Thanks Vincent, It is possible.

Dear Becky,

Could you check proposed way?

Best regards, Evgeny

GeweiZhu commented 4 years ago

Hi Evgeny and Vincent,

Thank you both for your advice. I will give it a go later as my laptop is currently frozen after I tried to split my cwa file.

Best wishes Becky

Gewei Zhu (Becky)

PhD student

Dermatological Sciences

Institute of Translational and Clinical research

2nd floor, William Leech building

Medical school, Framlington place

Newcastle University

NE2 4HH


From: Evgeny Mirkes notifications@github.com Sent: 20 October 2020 15:03 To: wadpac/GGIR GGIR@noreply.github.com Cc: Becky Zhu (PGR) g.zhu2@newcastle.ac.uk; Author author@noreply.github.com Subject: Re: [wadpac/GGIR] Axivity AX3 - Error in the first data block reading (#368)

⚠ External sender. Take care when opening links or attachments. Do not provide your login details.

Thanks Vincent, It is possible.

Dear Becky,

Could you check proposed way?

Best regards, Evgeny

From: Vincent van Hees notifications@github.com Sent: 20 October 2020 15:00 To: wadpac/GGIR GGIR@noreply.github.com Cc: Mirkes, Evgeny (Dr.) em322@leicester.ac.uk; Comment comment@noreply.github.com Subject: Re: [wadpac/GGIR] Axivity AX3 - Error in the first data block reading (#368)

dear both, this issue may overlap with another issue I very recently fixed.

You can find a description of that issue here: #361https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwadpac%2FGGIR%2Fissues%2F361&data=04%7C01%7Cem322%40leicester.ac.uk%7C3483e9d005614896081908d875005ebc%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637387991731476528%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=7yjFgYyqp03FqMXCFOZD5yR18fvpr3sa%2FwD9Y0YHlf4%3D&reserved=0 The pull request that will fix it is here: #367https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwadpac%2FGGIR%2Fpull%2F367&data=04%7C01%7Cem322%40leicester.ac.uk%7C3483e9d005614896081908d875005ebc%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637387991731486527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=OzyBrdC3Pi5NLHxMo0yV%2FmnhgA6v4%2BLJwJJX0uCsOdI%3D&reserved=0 I plan to merge this in the master branch later today.

To use this version of GGIR do:

install.packages("devtools")

library(devtools)

devtools::install_github("wadpac/GGIR")

restart R(Studio)

library(GGIR)

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwadpac%2FGGIR%2Fissues%2F368%23issuecomment-712873510&data=04%7C01%7Cem322%40leicester.ac.uk%7C3483e9d005614896081908d875005ebc%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637387991731486527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=km%2B1PHKje3tbZAMD5soggnbM%2FpU8mz6L8QH04KZua2U%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAEDX35JU3YNW6K75YDL4AK3SLWJUFANCNFSM4SYLBVXA&data=04%7C01%7Cem322%40leicester.ac.uk%7C3483e9d005614896081908d875005ebc%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637387991731496519%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ySmu2QjZzCZ7BkdfLgbY6XPfJxTBe%2BiCIZsLY1VfAKg%3D&reserved=0.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/wadpac/GGIR/issues/368#issuecomment-712876556, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMQI4MUQNWJDHQWYCNQ3WIDSLWKENANCNFSM4SYLBVXA.

vincentvanhees commented 3 years ago

I am now closing this issue now, but feel free to re-open it if the problem persists.