platform: Windows-10-10.0.26200-SP0
python: 3.11.14
mth5: 0.6.4
mt_metadata: 1.0.4
The sample code is as follows:
run # an Object of RunTS
RunTS Summary:
Survey: 0
Station: mt001
Run: 001
Start: 2020-01-01T00:00:00+00:00
End: 2020-01-01T00:08:31.875000+00:00
Sample Rate: 8.0
Components: ['hx', 'hy', 'hz', 'ex', 'ey', 'temperature']
print(run.run_metadata.sample_rate)
8.0
decimated_run = run.decimate(1) # the behavior is same as run.resample_poly(1)
print(run.run_metadata.sample_rate)
1.0
I think that this operation should not modify the metadata of the run.