Expected H5ScalarDS when reading attribute

60 views
Skip to first unread message

Pranjal Mishra

unread,
Feb 21, 2022, 3:16:00 AM2/21/22
to scalismo
Hey, I was trying to build my own .h5 files by using custom .stl models.
However, when I try to use it in Scalismo, I get the following error

java.lang.Exception: Expected H5ScalarDS when reading attribute
  at scalismo.io.HDF5File.readStringAttribute(HDF5Utils.scala:62)
  at scalismo.io.StatismoIO$$anonfun$5.apply(StatismoIO.scala:118)
  at scalismo.io.StatismoIO$$anonfun$5.apply(StatismoIO.scala:116)
  at scala.util.Success.flatMap(Try.scala:231)
  at scalismo.io.StatismoIO$.readStatismoMeshModel(StatismoIO.scala:116)
  ... 30 elided

I tried to compare the basel.h5 file and my custom model and I couldn't find any difference.

Is there something I am missing? Any help would be appreciated.
Thanks and regards



David Collins

unread,
Feb 8, 2023, 4:27:39 AM2/8/23
to scalismo
I have the same problem, have just posted about it - have you been able to solve it yet? 

Max

unread,
Feb 8, 2023, 6:01:54 AM2/8/23
to scalismo
What Scalismo version do you use?

Seems that an attribute doesn't match the expected data type. From the lines given in the exeption I'd guess that there's something wrong when reading the PCA basis. Can you figure out which attribute causes this error (and maybe post the full error message)?

Best
Max

David Collins

unread,
Feb 8, 2023, 7:03:16 AM2/8/23
to scalismo
Hi Max, 

For the .h5 models I am trying to load, the download links can be found here (bottom of page). Neither of the two models will load for me, do you have any thoughts? 

Max

unread,
Feb 8, 2023, 8:06:51 AM2/8/23
to scalismo
Hi all,

although the error message reported in this thread seems to be similar to the one reported in https://groups.google.com/g/scalismo/c/Nfzfy90Pg60, I guess they are not related.
As such, I would encourage everyone to treat those problems separately and not cross-post in this case.

Thanks!
Max
Reply all
Reply to author
Forward
0 new messages