Repository: rsagroup/rsatoolbox

Issue:
calc_rdm_movie's returned RDMs doesn't have its .dissimilarity_measure set
**Describe the bug**
`calc_rdm_movie` accepts a `method` parameter, which it uses for all the matrices in the `RDMs` object it returns, guaranteeing that they all use the same method. As such, it could (should) set the returned `RDMs.dissimilarity_measure` to be the `method`.

**To Reproduce**
(`data` as in the [Temporal RSA demo](https://rsatoolbox.readthedocs.io/en/stable/demo_temporal.html))
```python
rdms_data = calc_rdm_movie(data, method="correlation", descriptor="conditions")
print(rdms_data.dissimilarity_measure)  # None
```

**Expected behavior**
Prints `"correlation"`.

**Versions**
- the version of *rsatoolbox* you used
    - 0.1.3
- the version of python you used
    - 3.11.5


Discussion:

Patch:
diff --git a/src/rsatoolbox/rdm/calc.py b/src/rsatoolbox/rdm/calc.py
index 03f8a992..0e31329f 100644
--- a/src/rsatoolbox/rdm/calc.py
+++ b/src/rsatoolbox/rdm/calc.py
@@ -164,6 +164,7 @@ def calc_rdm_movie(
 
         rdm = concat(rdms)
         rdm.rdm_descriptors[time_descriptor] = time
+    rdm.dissimilarity_measure = method
     return rdm
 
 


Test patch:
diff --git a/tests/test_calc_rdm.py b/tests/test_calc_rdm.py
index 0d890c46..48d1569b 100755
--- a/tests/test_calc_rdm.py
+++ b/tests/test_calc_rdm.py
@@ -428,6 +428,7 @@ class TestCalcRDMMovie(unittest.TestCase):
         assert len([r for r in rdm]) == 15
         assert rdm.rdm_descriptors['time'][0] == 0.0
         assert len(rdm.rdm_descriptors['time']) == 15
+        assert rdm.dissimilarity_measure == "mahalanobis"
 
     def test_calc_rdm_movie_euclidean(self):
         rdm = rsr.calc_rdm_movie(
@@ -439,6 +440,7 @@ class TestCalcRDMMovie(unittest.TestCase):
         assert rdm.n_cond == 6
         assert len([r for r in rdm]) == 15
         assert rdm.rdm_descriptors['time'][0] == 0.0
+        assert rdm.dissimilarity_measure == "euclidean"
 
     def test_calc_rdm_movie_correlation(self):
         rdm = rsr.calc_rdm_movie(
@@ -450,6 +452,7 @@ class TestCalcRDMMovie(unittest.TestCase):
         assert rdm.n_cond == 6
         assert len([r for r in rdm]) == 15
         assert rdm.rdm_descriptors['time'][0] == 0.0
+        assert rdm.dissimilarity_measure == "correlation"
 
     def test_calc_rdm_movie_crossnobis(self):
         rdm = rsr.calc_rdm_movie(
@@ -462,6 +465,7 @@ class TestCalcRDMMovie(unittest.TestCase):
         assert rdm.n_cond == 6
         assert len([r for r in rdm]) == 15
         assert rdm.rdm_descriptors['time'][0] == 0.0
+        assert rdm.dissimilarity_measure == "crossnobis"
 
     def test_calc_rdm_movie_crossnobis_no_descriptors(self):
         rdm = rsr.calc_rdm_movie(