Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import TreeQSM models fail #16

Open
Karltlbm opened this issue Nov 25, 2024 · 0 comments
Open

Import TreeQSM models fail #16

Karltlbm opened this issue Nov 25, 2024 · 0 comments

Comments

@Karltlbm
Copy link

Hello

Trying to import QSMs from TreeQSM into aRchi
Using the examples :

file=system.file("extdata",".../OptQSM.mat", package = "aRchi")
read_QSM(file, model='treeQSM')

I get:

> read_QSM(file, model='treeQSM')
Erreur dans data.table::fread(file) : 
  Input is empty or only contains BOM or terminal control characters

But using only

read_QSM(".../OptQSM.mat", model='treeQSM')
The result is

> read_QSM("D:/Karl/newHydro/to_compare/matlab/OptQSM_2023.mat", model='treeQSM')
Erreur dans data.table::setnames(data, c("radius", "length", "startX", "startY",  : 
  Can't assign 15 names to a 0-column data.table

My OptQSM .mat file contains 5 lines, one optimal model for each of 5 trees.
So I thought that i could use only one of the lines.
I have now a new OptQSM_SingleTree.mat file which contains only [cylinder, branch, treedata...] for one tree.

And now the result is :

> read_QSM(".../OptQSM_SingleTree.mat", model='treeQSM')
Erreur dans data$startX : objet de type 'closure' non indiçable
De plus : Message d'avis :
Dans read_QSM(".../OptQSM_SingleTree.mat", model = "treeQSM") :
  No QSM found

Any idea ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant