diff --git a/raytracing/matrixgroup.py b/raytracing/matrixgroup.py
index e6d9e57..0270ed3 100644
--- a/raytracing/matrixgroup.py
+++ b/raytracing/matrixgroup.py
@@ -262,7 +262,10 @@ class MatrixGroup(Matrix):
                 planePosition = transferMatrix.L + distance
                 if planePosition != 0 and conjugate is not None:
                     magnification = conjugate.A
-                    planes.append([planePosition, magnification])
+                    if any([isclose(pos, planePosition) and isclose(mag, magnification) for pos, mag in planes]):
+                        continue
+                    else:
+                        planes.append([planePosition, magnification])
         return planes
 
     def trace(self, inputRay):

MatrixGroup: intermediateConjugates gives duplicates
When we want the intermediate conjugates of some matrix groups, we have a list with duplicates. Is it normal?

Example:
```python
path = ImagingPath(System4f(10, 5))
print(path.intermediateConjugates())
```
the output is:
```python
[[30.0, -0.5], [30.0, -0.5]]
```
@dccote I feel like it is redundant information.
diff --git a/raytracing/tests/testsMatrixGroup.py b/raytracing/tests/testsMatrixGroup.py
index d6554e5..3f20888 100644
--- a/raytracing/tests/testsMatrixGroup.py
+++ b/raytracing/tests/testsMatrixGroup.py
@@ -275,6 +275,12 @@ class TestMatrixGroup(envtest.RaytracingTestCase):
         self.assertAlmostEqual(intermediateConjugates[0][0], results[0][0])
         self.assertAlmostEqual(intermediateConjugates[0][1], results[0][1])
 
+    def testIntermediateConjugatesDuplicates(self):
+        elements = [Space(10), Lens(10), Space(15), Lens(5), Space(5)]
+        mg = MatrixGroup(elements)
+        intermediateConj = mg.intermediateConjugates()
+        self.assertListEqual(intermediateConj, [[30.0, -0.5]])
+
     def testHasFiniteApertutreDiameter(self):
         space = Space(10, 1.2541255)
         mg = MatrixGroup([space])

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio
3.9
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
contourpy==1.3.0
coverage==7.8.0
cycler==0.12.1
exceptiongroup==1.2.2
execnet==2.1.1
fonttools==4.56.0
importlib_resources==6.5.2
iniconfig==2.1.0
kiwisolver==1.4.7
matplotlib==3.9.4
numpy==2.0.2
packaging==24.2
pillow==11.1.0
pluggy==1.5.0
pyparsing==3.2.3
pytest==8.3.5
pytest-asyncio==0.26.0
pytest-cov==6.0.0
pytest-mock==3.14.0
pytest-xdist==3.6.1
python-dateutil==2.9.0.post0
-e git+https://github.com/DCC-Lab/RayTracing.git@12e2e1fe89e74637d25304b4e101c71103de480c#egg=raytracing
six==1.17.0
tomli==2.2.1
typing_extensions==4.13.0
zipp==3.21.0

name: RayTracing
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - contourpy==1.3.0
      - coverage==7.8.0
      - cycler==0.12.1
      - exceptiongroup==1.2.2
      - execnet==2.1.1
      - fonttools==4.56.0
      - importlib-resources==6.5.2
      - iniconfig==2.1.0
      - kiwisolver==1.4.7
      - matplotlib==3.9.4
      - numpy==2.0.2
      - packaging==24.2
      - pillow==11.1.0
      - pluggy==1.5.0
      - pyparsing==3.2.3
      - pytest==8.3.5
      - pytest-asyncio==0.26.0
      - pytest-cov==6.0.0
      - pytest-mock==3.14.0
      - pytest-xdist==3.6.1
      - python-dateutil==2.9.0.post0
      - six==1.17.0
      - tomli==2.2.1
      - typing-extensions==4.13.0
      - zipp==3.21.0
prefix: /opt/conda/envs/RayTracing

raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testIntermediateConjugatesDuplicates
raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testAppendNoElementInit raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testAppendNoRefractionIndicesMismatch raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testAppendNotCorrectType raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testAppendNotSpaceIndexOfRefractionMismatch raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testAppendRefractionIndicesMismatch raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testAppendSpaceMustAdoptIndexOfRefraction raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testFlipOrientationEmptyGroup raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testFlipOrientation_1 raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testFlipOrientation_2 raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testGetItem raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testGetItemOutOfBoundsEmpty raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testGetItemOutOfBoundsSingleIndex raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testGetItemSlice raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testHasFiniteApertutreDiameter raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testInitWithAnotherMatrixGroup raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testInsertAfterLast raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testInsertBeforeFirst raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testInsertInMiddle raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testInsertNegativeIndexOutOfBoundsNoErrors raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testInsertPositiveIndexOutOfBoundsNoError raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testIntermediateConjugates raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testIntermediateConjugatesEmptyGroup raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testIntermediateConjugatesNoConjugate raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testIntermediateConjugatesNoThickness raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testLargestDiameter raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testLargestDiameterNoFiniteAperture raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testLargestDiameterWithEmptyGroup raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testLenEmptyGroup raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testLenNotEmpty raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testMatrixGroup raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testMatrixGroupDoesNotAcceptNonIterable raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testMatrixGroupDoesNotAcceptRandomClass raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testMatrixGroupDoesnNotAcceptStr raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testMatrixGroupWithElements raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testPopElements raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testPopFirstElement raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testPopLastElement raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testPopNegativeIndexOutOfBounds raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testPopPositiveIndexOutOfBounds raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testSetItemAll raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testSetItemSingleIndex raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testSetItemSingleIndexOutOfBounds raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testSetItemSliceIndexOutOfBounds raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testSetItemSliceWithStepIsOne raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testSetItemSliceWithStepWarning raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testSetItemStartIndexIsNone raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testSetItemStopIndexIsNone raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testTrace raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testTraceAlreadyTraced raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testTraceEmptyMatrixGroup raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testTraceIncorrectType raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testTransferMatricesNoElements raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testTransferMatricesOneElement raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testTransferMatrix raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testTransferMatrixNoElements raytracing/tests/testsMatrixGroup.py::TestMatrixGroup::testTransferMatrixUpToInGroup raytracing/tests/testsMatrixGroup.py::TestSaveAndLoadMatrixGroup::testLoadAppend raytracing/tests/testsMatrixGroup.py::TestSaveAndLoadMatrixGroup::testLoadFileDoesNotExist raytracing/tests/testsMatrixGroup.py::TestSaveAndLoadMatrixGroup::testLoadInEmptyMatrixGroup raytracing/tests/testsMatrixGroup.py::TestSaveAndLoadMatrixGroup::testLoadOverrideMatrixGroup raytracing/tests/testsMatrixGroup.py::TestSaveAndLoadMatrixGroup::testLoadWrongIterType raytracing/tests/testsMatrixGroup.py::TestSaveAndLoadMatrixGroup::testLoadWrongObjectType raytracing/tests/testsMatrixGroup.py::TestSaveAndLoadMatrixGroup::testSaveEmpty raytracing/tests/testsMatrixGroup.py::TestSaveAndLoadMatrixGroup::testSaveHugeFile raytracing/tests/testsMatrixGroup.py::TestSaveAndLoadMatrixGroup::testSaveInFileNotEmpty raytracing/tests/testsMatrixGroup.py::TestSaveAndLoadMatrixGroup::testSaveNotEmpty raytracing/tests/testsMatrixGroup.py::TestSaveAndLoadMatrixGroup::testSaveThenLoad raytracing/tests/testsMatrixGroup.py::TestSaveAndLoadMatrixGroup::testSaveThenLoadHugeFile
raytracing/matrixgroup.py
raytracing/matrixgroup.py