code: def diff(self, filename, wildcard='*'):
          '''show differences with another parameter file'''
          other = MAVParmDict()
          if not other.load(filename):
              return
          keys = sorted(list(set(self.keys()).union(set(other.keys()))))
          for k in keys:
              if not fnmatch.fnmatch(str(k).upper(), wildcard.upper()):
                  continue
              if not k in other:
                  print("%-16.16s              %12.4f" % (k, self[k]))
              elif not k in self:
                  print("%-16.16s %12.4f" % (k, other[k]))
              elif abs(self[k] - other[k]) > self.mindelta:
                  print("%-16.16s %12.4f %12.4f" % (k, other[k], self[k])f diff(self, filename, wildcard='*'):
          '''show differences with another parameter file'''
          other = MAVParmDict()
          if not other.load(filename):
              return
          keys = sorted(list(set(self.keys()).union(set(other.keys()))))
          for k in keys:
              if not fnmatch.fnmatch(str(k).upper(), wildcard.upper()):
                  continue
              if not k in other:
                  print("%-16.16s              %12.4f" % (k, self[k]))
              elif not k in self:
                  print("%-16.16s %12.4f" % (k, other[k]))
              elif abs(self[k] - other[k]) > self.mindelta:
                  print("%-16.16s %12.4f %12.4f" % (k, other[k], self[k]))
docs: show differences with another parameter file