# One example needs to be renamed (Create another instance of a filter?)

**URL:** <https://discourse.itk.org/t/one-example-needs-to-be-renamed-create-another-instance-of-a-filter/5680>\
**Category:** Community\
**Tags:** documentation\
**Created:** [February 7, 2023, 9:55pm UTC](https://discourse.itk.org/t/one-example-needs-to-be-renamed-create-another-instance-of-a-filter/5680 "2023-02-07T21:55:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![edgar](https://discourse.itk.org/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@edgar](https://discourse.itk.org/u/edgar)\
**Post date:** [February 7, 2023, 9:55pm UTC](https://discourse.itk.org/t/one-example-needs-to-be-renamed-create-another-instance-of-a-filter/5680/1 "2023-02-07T21:55:56Z")

</div>

Hi, may be you are already aware, but one of the examples may need to be renamed:

[https://examples.itk.org/src/core/common/createanother/documentation](https://examples.itk.org/src/core/common/createanother/documentation)

Its summary is “Copy/duplicate a filter”, so, I assume that it should be " “Create another instance of a filter”, because it’s next to [Create Another Instance of an Image](https://examples.itk.org/src/core/common/CreateAnotherInstanceOfAnImage/Documentation.html). Cheers, and thank you for ITK!

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [February 8, 2023, 2:07pm UTC](https://discourse.itk.org/t/one-example-needs-to-be-renamed-create-another-instance-of-a-filter/5680/2 "2023-02-08T14:07:17Z")

</div>

Thanks for the note. This is better entered as an issue in the [repository](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/issues). The best is to make a PR with the rename of the [relevant files](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/tree/v5.3.0/src/Core/Common/CreateAnother). If you also rename the directory, a rename in [upper level CMakeLists.txt](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/blob/v5.3.0/src/Core/Common/CMakeLists.txt) and [index](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/blob/v5.3.0/src/Core/Common/index.rst) is needed too.

---

<div class="post-metadata">

**Author:** ![edgar](https://discourse.itk.org/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@edgar](https://discourse.itk.org/u/edgar)\
**Post date:** [February 8, 2023, 3:35pm UTC](https://discourse.itk.org/t/one-example-needs-to-be-renamed-create-another-instance-of-a-filter/5680/3 "2023-02-08T15:35:30Z")

</div>

Dear @dzenanz,

I don’t have a Micro$oft GitHub account, but here is a patch (: . Thank you for showing me how to do it.  
[create\_another\_rename.diff](https://discourse.itk.org/uploads/short-url/mggEjrwxsjLjlsisUMidRKVAkCk.diff) (1.8 KB)

```auto
diff --git a/src/Core/Common/CMakeLists.txt b/src/Core/Common/CMakeLists.txt
index 5e2a0279..1ee5c76a 100644
--- a/src/Core/Common/CMakeLists.txt
+++ b/src/Core/Common/CMakeLists.txt
@@ -16,7 +16,7 @@ add_example(ObserveAnEvent)
 add_example(ComputeTimeBetweenPoints)
 add_example(WatchAFilter)
 add_example(IterateOnAVectorContainer)
-add_example(CreateAnother)
+add_example(CreateAnotherInstanceOfAFilter)
 add_example(CreateAFixedArray)
 add_example(AddOffsetToIndex)
 add_example(GetNameOfClass)
diff --git a/src/Core/Common/CreateAnother/CMakeLists.txt b/src/Core/Common/CreateAnotherInstanceOfAFilter/CMakeLists.txt
similarity index 100%
rename from src/Core/Common/CreateAnother/CMakeLists.txt
rename to src/Core/Common/CreateAnotherInstanceOfAFilter/CMakeLists.txt
diff --git a/src/Core/Common/CreateAnother/Code.cxx b/src/Core/Common/CreateAnotherInstanceOfAFilter/Code.cxx
similarity index 100%
rename from src/Core/Common/CreateAnother/Code.cxx
rename to src/Core/Common/CreateAnotherInstanceOfAFilter/Code.cxx
diff --git a/src/Core/Common/CreateAnother/Documentation.rst b/src/Core/Common/CreateAnotherInstanceOfAFilter/Documentation.rst
similarity index 100%
rename from src/Core/Common/CreateAnother/Documentation.rst
rename to src/Core/Common/CreateAnotherInstanceOfAFilter/Documentation.rst
diff --git a/src/Core/Common/index.rst b/src/Core/Common/index.rst
index e5919601..55e0818c 100644
--- a/src/Core/Common/index.rst
+++ b/src/Core/Common/index.rst
@@ -31,7 +31,7 @@ Common
   CreateAnImageRegion/Documentation.rst
   CreateAnImageOfVectors/Documentation.rst
   CreateAnRGBImage/Documentation.rst
- CreateAnother/Documentation.rst
+ CreateAnotherInstanceOfAFilter/Documentation.rst
   CreateAnotherInstanceOfAnImage/Documentation.rst
   CreateDerivativeKernel/Documentation.rst
   CreateForwardDifferenceKernel/Documentation.rst

```

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [February 8, 2023, 4:51pm UTC](https://discourse.itk.org/t/one-example-needs-to-be-renamed-create-another-instance-of-a-filter/5680/4 "2023-02-08T16:51:01Z")

</div>

A bit more renames were needed. Here is the PR:

> <https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/pull/415>
>
> Co-authored-by: Edgar

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [February 8, 2023, 6:22pm UTC](https://discourse.itk.org/t/one-example-needs-to-be-renamed-create-another-instance-of-a-filter/5680/5 "2023-02-08T18:22:05Z")

</div>

@Tom_Birdsong asks do you have an email address and/or full name you would like to have recorded in this PR?

---

<div class="post-metadata">

**Author:** ![edgar](https://discourse.itk.org/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@edgar](https://discourse.itk.org/u/edgar)\
**Post date:** [February 8, 2023, 7:19pm UTC](https://discourse.itk.org/t/one-example-needs-to-be-renamed-create-another-instance-of-a-filter/5680/6 "2023-02-08T19:19:28Z")

</div>

If a link to this discussion can be added, that would be better. Otherwise, I’m ok. Thanks for the consideration. (If I change my mind in the future, I will let you know for other contributions. Until then, you can always assume this answer).
