parameters: (self, directory: str)
return_statement: return
docstring: Save grouping workspace created for custom spectra or .cal cropping.
          :param directory: directory in which to save grouping workspace
docstring_summary: Save grouping workspace created for custom spectra or .cal cropping.
          :param directory: directory in which to save grouping workspace
docstring_tokens: Save grouping workspace created for custom spectra or . cal cropping . : param directory : directory in which to save grouping workspace
function: def save_grouping_workspace(self, directory: str) -> None:
          """
          Save grouping workspace created for custom spectra or .cal cropping.
          :param directory: directory in which to save grouping workspace
          """
          if self.group and not self.group.banks:
              filename = self.generate_output_file_name(ext='.xml')
              SaveDetectorsGrouping(InputWorkspace=self.group_ws, OutputFile=path.join(directory, filename))
          else:
              logger.warning("Only save grouping workspace for custom or cropped groupings.")
          return
function_tokens: def save_grouping_workspace ( self , directory : str ) -> None : if self . group and not self . group . banks : filename = self . generate_output_file_name ( ext = '.xml' ) SaveDetectorsGrouping ( InputWorkspace = self . group_ws , OutputFile = path . join ( directory , filename ) ) else : logger . warning ( "Only save grouping workspace for custom or cropped groupings." ) return