Re: [HCP-Users] A question about scene file

2019-06-21 Thread Harms, Michael

As part of some other updates to the StructuralQC scenes themselves, I recently 
created a more sophisticated generation script that should use relative paths 
within the scene.

Please try the just updated master branch of
https://github.com/Washington-University/StructuralQC

We have tested this internally, but it would be good to get feedback from an 
outside user before I formally tag a new release.

Thanks,
-MH

--
Michael Harms, Ph.D.
---
Associate Professor of Psychiatry
Washington University School of Medicine
Department of Psychiatry, Box 8134
660 South Euclid Ave.Tel: 314-747-6173
St. Louis, MO  63110  Email: mha...@wustl.edu

From:  on behalf of Aaron C 

Date: Friday, June 21, 2019 at 12:23 PM
To: "hcp-users@humanconnectome.org" 
Subject: [HCP-Users] A question about scene file

Dear HCP experts,

The scene file (a structural processing QC scene) I generated in a Linux 
computer doesn't work in a Windows computer. It seems that the file paths were 
hard-coded in the scene file. Is there a way to make it more portable? Thank 
you.

___
HCP-Users mailing list
HCP-Users@humanconnectome.org
http://lists.humanconnectome.org/mailman/listinfo/hcp-users


The materials in this message are private and may contain Protected Healthcare 
Information or other information of a sensitive nature. If you are not the 
intended recipient, be advised that any unauthorized use, disclosure, copying 
or the taking of any action in reliance on the contents of this information is 
strictly prohibited. If you have received this email in error, please 
immediately notify the sender via telephone or return mail.

___
HCP-Users mailing list
HCP-Users@humanconnectome.org
http://lists.humanconnectome.org/mailman/listinfo/hcp-users


Re: [HCP-Users] A question about scene file

2019-06-21 Thread Timothy Coalson
Sorry, in my second paragraph I meant "breaking the usual convention of the
scene file XML".

Tim


On Fri, Jun 21, 2019 at 2:28 PM Timothy Coalson  wrote:

> The paths inside a scene file's XML are supposed to be relative to the
> location of the scene file.  You are expected to usually have the scene
> file in a directory nearby where the data it refers to is, to reduce how
> far it crosses your filesystem structure to generate the relative paths.
> You can use wb_command -scene-file-relocate to move the scene file and
> regenerate its internal paths to put it closer to the data directory.  If
> you need to move it to a system that doesn't have the same filesystems
> mounted the same way, there is wb_command -zip-scene-file (or the "Zip..."
> button in the wb_view scene window), which will generate a self-contained
> archive with all the referenced files and the necessary directory layout.
>
> If the QC scene was generated with a script, it may be that the
> substituted paths were absolute, breaking the usual convention of the
> script.  Using -scene-file-relocate or loading and saving the scene file
> may convert these paths to relative.
>
> Tim
>
>
> On Fri, Jun 21, 2019 at 12:23 PM Aaron C  wrote:
>
>> Dear HCP experts,
>>
>> The scene file (a structural processing QC scene) I generated in a Linux
>> computer doesn't work in a Windows computer. It seems that the file paths
>> were hard-coded in the scene file. Is there a way to make it more portable?
>> Thank you.
>>
>> ___
>> HCP-Users mailing list
>> HCP-Users@humanconnectome.org
>> http://lists.humanconnectome.org/mailman/listinfo/hcp-users
>>
>

___
HCP-Users mailing list
HCP-Users@humanconnectome.org
http://lists.humanconnectome.org/mailman/listinfo/hcp-users


Re: [HCP-Users] A question about scene file

2019-06-21 Thread Timothy Coalson
The paths inside a scene file's XML are supposed to be relative to the
location of the scene file.  You are expected to usually have the scene
file in a directory nearby where the data it refers to is, to reduce how
far it crosses your filesystem structure to generate the relative paths.
You can use wb_command -scene-file-relocate to move the scene file and
regenerate its internal paths to put it closer to the data directory.  If
you need to move it to a system that doesn't have the same filesystems
mounted the same way, there is wb_command -zip-scene-file (or the "Zip..."
button in the wb_view scene window), which will generate a self-contained
archive with all the referenced files and the necessary directory layout.

If the QC scene was generated with a script, it may be that the substituted
paths were absolute, breaking the usual convention of the script.  Using
-scene-file-relocate or loading and saving the scene file may convert these
paths to relative.

Tim


On Fri, Jun 21, 2019 at 12:23 PM Aaron C  wrote:

> Dear HCP experts,
>
> The scene file (a structural processing QC scene) I generated in a Linux
> computer doesn't work in a Windows computer. It seems that the file paths
> were hard-coded in the scene file. Is there a way to make it more portable?
> Thank you.
>
> ___
> HCP-Users mailing list
> HCP-Users@humanconnectome.org
> http://lists.humanconnectome.org/mailman/listinfo/hcp-users
>

___
HCP-Users mailing list
HCP-Users@humanconnectome.org
http://lists.humanconnectome.org/mailman/listinfo/hcp-users