docs: def inputfiles(self, inputtemplate=None):
          """Generator yielding all inputfiles for the specified inputtemplate, if ``inputtemplate=None``, inputfiles are returned regardless of inputtemplate."""
          if isinstance(inputtemplate, InputTemplate):
              #ID suffices:
              inputtemplate = inputtemplate.id
          for inputfile in self.input:
              if not inputtemplate or inputfile.metadata.inputtemplate == inputtemplate:
                  yield inputfile