Make a summary stc file with sum over time points. Returns ------- stc : SourceEstimate | VectorSourceEstimate The modified stc.
(self)
| 1035 | return out |
| 1036 | |
| 1037 | def sum(self): |
| 1038 | """Make a summary stc file with sum over time points. |
| 1039 | |
| 1040 | Returns |
| 1041 | ------- |
| 1042 | stc : SourceEstimate | VectorSourceEstimate |
| 1043 | The modified stc. |
| 1044 | """ |
| 1045 | data = self.data |
| 1046 | tmax = self.tmin + self.tstep * data.shape[-1] |
| 1047 | tmin = (self.tmin + tmax) / 2.0 |
| 1048 | tstep = tmax - self.tmin |
| 1049 | sum_stc = self.__class__( |
| 1050 | self.data.sum(axis=-1, keepdims=True), |
| 1051 | vertices=self.vertices, |
| 1052 | tmin=tmin, |
| 1053 | tstep=tstep, |
| 1054 | subject=self.subject, |
| 1055 | ) |
| 1056 | return sum_stc |
| 1057 | |
| 1058 | def __sub__(self, a): |
| 1059 | """Subtract source estimates.""" |
no outgoing calls
no test coverage detected