[Paraview] Data directory in pvsm files

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Jul 24 11:30:42 EDT 2012


Ian,

That's a good starting point. Here are a couple of issues with the patch:

1. SetIndicator(..) won't work in client-server mode. We need to be
smart about this in client-server mode and consolidates the tests to
avoid performance degradation for  a large number of files.
2. Duplication of ResolveEnvironmentVariables()
3. Style issues: indentation, missing {} after if (), etc.

Utkarsh

On Sat, Jul 21, 2012 at 10:11 AM, Utkarsh Ayachit
<utkarsh.ayachit at kitware.com> wrote:
> Ian,
>
> That's great! Thanks for pointing it out. I will take a look when I
> get back to work on Tue and try to get something in.
>
> Utkarsh
>
> On Fri, Jul 20, 2012 at 11:41 AM, Ian Curington <ianc at acm.org> wrote:
>> Hello Utkarsh, Mohamad,
>>
>> Note we have supplied a working patch at:
>> http://www.paraview.org/Bug/view.php?id=13092
>>
>> which   includes   arbitrary   environment  variable  support in pvsm paths:
>>
>>      where environment can be reference using syntax of
>>      %VAR_NAME%, ${VAR_NAME} and $VAR_NAME. In the latest case ($VAR_NAME), VAR_NAME must be
>>      from [a-zA-Z0-9_-]+ language.
>>
>> so full absolute paths can be replaced with:
>>
>>     <Property name="FileName" id="2875.FileName" number_of_elements="1">
>>         <Element  index="0" value="${MY_DATA}/interesting_result.vtk"/>
>>
>> We are using it in deployed production projects.
>>
>> -Ian
>>
>> Wednesday, July 18, 2012, 9:32:20 PM, you wrote:
>>
>>> It's not possible currently, but I think we should provide some clean
>>> solution for the next release. Mind reporting  a feature request on
>>> the bug tracker (can't remember if there's on already)?
>>
>>> Utkarsh
>>
>>> On Tue, Jul 17, 2012 at 4:06 AM, Mohamad M. Nasr-Azadani
>>> <mmnasr at gmail.com> wrote:
>>>> Hi,
>>>>
>>>> I have a simple question.
>>>> Is it possible to assign an environment variable to define data directory in
>>>> pvsm files?
>>>> As I save a pvsm file, I see that paraview uses the complete directory
>>>> address to add files to the pvsm file.
>>>> I was wondering if there is a way to define that?
>>>>
>>>> Or, an alternative question is, is there anyway for paraview just to write
>>>> the file names (and not the corresponding full directory)?
>>>> That way, we can run the pvsm file in any directory as long as all the data
>>>> files are in the current directory where the pvsm file is stored.
>>>>
>>>> Thanks,
>>>> Mohamad
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Please keep messages on-topic and check the ParaView Wiki at:
>>>> http://paraview.org/Wiki/ParaView
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>
>>> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
>>
>> --
>> Best regards,
>>  Ian                            mailto:ianc at acm.org
>>


More information about the ParaView mailing list