SCIInstitute / map3d

Other
3 stars 3 forks source link

problem with file path #25

Open jessdtate opened 7 years ago

jessdtate commented 7 years ago

there seems to be a problem with some paths. I wasn't able to load files from this path: /Users/jess/Edgar/database/Unmodified/Human_Cardiac_Mapping/KIT-20-PVC_Simulation_1906-10-30_EP_EndoEpi/Meshes/surf_endoepi.mat or a similar path. When I moved the file to somewhere else, It read no problem. The error I get is:

Reading geom file urf_endoepi.mat.mat, surface# 1 Could not open matlab file MAP3D WARNING: Unable to read geometry file "urf_endoepi.mat.mat".

I attached the file I was trying to load.

surf_endoepi.mat.zip

jessdtate commented 7 years ago

when I changed the path to /Users/jess/Edgar/database/Unmodified/Human_Cardiac_Mapping/KIT-1/Meshes/surf_endoepi.mat it worked

bryanworthen commented 7 years ago

That is completely weird. Also note that it omitted the first character of the filename. I seem to remember some code that once was there about how it would try to append .mat, .pot to filenames it can't find... Searching...

jessdtate commented 6 years ago

This seems to be related to the length of the path. Is there a set length of this? @bzenger will test the lengths and report.

jessdtate commented 6 years ago

preliminary test.

This works : /Users/jess/Downloads/test_filename/this_is_a_long_file_name_to_test_another_long_filename/abc/morphed_sock.mat

but not this: /Users/jess/Downloads/test_filename/this_is_a_long_file_name_to_test_another_long_filename/abcd/morphed_sock.mat

The first is 111 characters, and the second is 112