[Insight-developers] use "DATA{..}" to form a string list of input data

Matt McCormick matt.mccormick at kitware.com
Mon Jan 16 12:06:09 EST 2012


This patch may be helpful.

  http://review.source.kitware.com/#/c/3668/

I had enhanced ExternalData.cmake for a different project so that it
uses an ExternalData_BINARY_ROOT.

On Mon, Jan 16, 2012 at 11:48 AM, Xiaoxiao Liu <xiaoxiao.liu at kitware.com> wrote:
> Sorry if I didn't explain it clearly.
>
> The problem I had is  not about fetching a file series, but obtaining the
> data paths and format them into a particular string as an input argument,
> such as: "/path/toFileA, /path/to/FileB, /path/to/FileC", where the comma
> needs to be the separator of the file names.  This format is defined by the
> API of a video stream reader.
>
> So maybe I could use ExternalData_SOURCE_ROOT directly to form the string?
>
>
> On Mon, Jan 16, 2012 at 9:27 AM, Brad King <brad.king at kitware.com> wrote:
>>
>> On 1/15/2012 10:08 PM, Xiaoxiao Liu wrote:
>>>
>>> In most cases, one input argument  only refers to a single input file.
>>
>> > But in some cases, one input argument string needs be a list of files,
>> > such as " /path/to/FileA, path/to/FileB, /path/to/FileC".
>>
>> Our instructions for adding a test and using DATA{}:
>>
>>  http://www.itk.org/Wiki/ITK/Git/Develop/Data#Add_Test
>>
>> already include information about handling multiple files.  One of the
>> bullet points refers to the documentation in ExternalData in the two
>> paragraphs starting here:
>>
>>
>>  http://itk.org/gitweb?p=ITK.git;a=blob;f=CMake/ExternalData.cmake;hb=v4.0.0#l69
>>
>> -Brad
>
>
>
>
> --
>
>
> ---------------------------------------------
> Xiaoxiao Liu, Ph.D.
> R & D Engineer
> Kitware Inc.
> Clifton Park, NY
> Phone: (518) 881-4924  or  (518) 371-3971 x124
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>


More information about the Insight-developers mailing list