<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def calculate_error(self):
 """Estimate the numerical error based on the fluxes calculated by the current and the last method. 1.0 """

        self.numvars.error = 0.
        fluxes = self.sequences.fluxes
        for flux in fluxes.numerics:
            results = getattr(fluxes.fastaccess, '_%s_results' % flux.name)
            diff = (results[self.numvars.idx_method] -
                    results[self.numvars.idx_method-1])
            self.numvars.error = max(self.numvars.error,
                                     numpy.max(numpy.abs(diff)))