# Name configuration for reader pipeline source

**URL:** https://discourse.paraview.org/t/name-configuration-for-reader-pipeline-source/10541
**Category:** Development
**Created:** [October 18, 2022, 7:48am UTC](https://discourse.paraview.org/t/name-configuration-for-reader-pipeline-source/10541 "2022-10-18T07:48:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [October 18, 2022, 7:48am UTC](https://discourse.paraview.org/t/name-configuration-for-reader-pipeline-source/10541/1 "2022-10-18T07:48:36Z")

</div>

Hi community,

When loading a file, the pipeline source created is named according to the file, including extensions.

 ![pipeline](https://discourse.paraview.org/uploads/default/original/2X/d/d71755d50092de08bf6da7f0febe46fc919116b4.png)

This is not always the best choice:

- this may be a generic name given by the solver, whereas the meaningful part (specifc run informations) may be in the directory name, or elsewhere (inside the file for instance)
- when working with catalyst, we may prefer to have a generic input name, known as the channel name, so the exported script is always consistent with the simulation adaptor.

### Proposition

In the `Open File` reaction, we can check for an Information `StringVectorProperty`. Let’s call it `PipelineSourceName`. If this property exists in the reader proxy, we use it to set the pipeline source name. Otherwise, we use the filename as usual.

Any thought ?

@cory.quammen @mwestphal

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 18, 2022, 7:53am UTC](https://discourse.paraview.org/t/name-configuration-for-reader-pipeline-source/10541/2 "2022-10-18T07:53:28Z")

</div>

In case this is not clear for all reader, `Information Property` value are provided by the server and read by the client, contrary to classic properties.

For the specific topic, I’d say that it seems like a fair approach.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [October 18, 2022, 11:01am UTC](https://discourse.paraview.org/t/name-configuration-for-reader-pipeline-source/10541/3 "2022-10-18T11:01:56Z")

</div>

Sounds reasonable.

---

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [October 18, 2022, 4:26pm UTC](https://discourse.paraview.org/t/name-configuration-for-reader-pipeline-source/10541/4 "2022-10-18T16:26:12Z")

</div>

Need to keep in mind that when generating ParaView Catalyst pipelines that the pipeline name for the reader has a correspondence with the channel name. Additionally, for ParaView Catalyst generated datasets the reader switches the pipeline name to the channel name.

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [November 8, 2022, 11:34am UTC](https://discourse.paraview.org/t/name-configuration-for-reader-pipeline-source/10541/5 "2022-11-08T11:34:04Z")

</div>

This has been implemented in this [MR](https://gitlab.kitware.com/paraview/paraview/-/merge_requests/5973#note_1273379).

If an information property called `RegistrationName` is found, it is used to rename the pipeline source.

See this [example](https://gitlab.kitware.com/paraview/paraview/-/tree/master/Examples/Plugins/ReaderName/Plugin) for usage.
