code: def get_stresses(self):
          '''Determine the stress tensor from the output'''
          if "stress" not in self.settings:
              return None
          wrapped = [[Scalar(value=x) for x in y] for y in self.settings["stress"]]
          return Property(matrices=[wrapped], units=self.settings["stress units"]f get_stresses(self):
          '''Determine the stress tensor from the output'''
          if "stress" not in self.settings:
              return None
          wrapped = [[Scalar(value=x) for x in y] for y in self.settings["stress"]]
          return Property(matrices=[wrapped], units=self.settings["stress units"])
docs: Determine the stress tensor from the output