unable to load these .mat files. how to use GIT LFS to open these .mat files?

I am unable to load these .mat files. Could you please help me to load these files?
Does it need GIT LFS to open? there is gitattributes file as '*.mat filter=lfs diff=lfs merge=lfs -text'. I dont understand its significance in accessing these .mat files. Could anyone please help?

7 Comments

Are these files in your GIT repositiory? What is the error when you try to open/load them? What code are you using to do so?
"Unable to read MAT-file E:\Week 30\Sync-Aware-State-Estimator-master\data\PMU_Positions_IEEE123.mat. Not a binary MAT-file.
Try LOAD -ASCII to read as text"
This is the error which I am getting. yes these are of git repository.
Hi Geoff,
Above is the error I am getting. Also, these files are from the repository- https://github.com/MarcoTodescato/Sync-Aware-State-Estimator . I am trying to perform state estimation. I have downloaded these codes. But I am unable to LOAD the .mat files in the data folder. Please can you help solving this issue.
Thanks.
The first file appears to be just a text file:
version https://git-lfs.github.com/spec/v1
oid sha256:1d209e49d11f94b31ba929363c6f61217d684583d736888254b384e8b0047b76
size 216609589
You may not need GIT LFS since you won't be pushing updates to these files, but you may need to clone the repository. Have you done this or are you just downloading a zip file of all files from this repo?
I have just downloaded them in zip file, and then I have unzipped them, and opened them in Matlab.
I dont know what it means to clone the repository? And how I need to that?
I tried to clone the repository from the instructions from this website- https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository
Cloning was successful, however, all files are exported to my local folder except the .mat files. Not even a single .mat file was transferred to local folder. The error message is as above. (attached screenshot).... Following is the error message-
Downloading data/PMU_Positions_IEEE123.mat (302 B)
Error downloading object: data/PMU_Positions_IEEE123.mat (384e21f): Smudge error: Error downloading data/PMU_Positions_IEEE123.mat (384e21f8fecef313704a3156489855ff734e2b7d350e8755e382e109812e1055): batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
Errors logged to C:\Users\scelv\Documents\MATLAB\Sync-Aware-State-Estimator\.git\lfs\logs\20201123T093352.5689571.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: data/PMU_Positions_IEEE123.mat: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
Hi again,
I have retried to use git lfs command instead of git command and I recieved following response. (see attached jpg)
C:\Users\scelv\Documents\MATLAB>git lfs clone https://github.com/MarcoTodescato/Sync-Aware-State-Estimator
WARNING: 'git lfs clone' is deprecated and will not be updated
with new flags from 'git clone'
'git clone' has been updated in upstream Git to have comparable speeds to 'git lfs clone'.
Cloning into 'Sync-Aware-State-Estimator'...
remote: Enumerating objects: 76, done.
remote: Counting objects: 100% (76/76), done.
remote: Compressing objects: 100% (63/63), done.
Receiving objects: 100% (76/76), 43.50 KiB | 543.00 KiBk-reused 0/s, done.
Resolving deltas: 100% (15/15), done.
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
error: failed to fetch some objects from 'https://github.com/MarcoTodescato/Sync-Aware-State-Estimator.git/info/lfs'
This time I am able to successfully clone the .mat files as well! But, unfortunately, I am unable to load these .mat files in Matlab. The same error as before is still continuing.

Sign in to comment.

Answers (0)

Categories

Asked:

l l
on 20 Nov 2020

Commented:

l l
on 23 Nov 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!