class_docstr: The workspace contains the processing information and state for
  a pipeline run on an image set
class_docstr_tok: ["The","workspace","contains","the","processing","information","and","state","for","a","pipeline","run","on","an","image","set"]
docstr: Create a new workspace file
  
  filename - name of the workspace file
code: def create(self):
      """Create a new workspace file
  
      filename - name of the workspace file
      """
      from ..utilities.measurement import make_temporary_file
      from cellprofiler_core.measurement import Measurements
  
      if isinstance(self.measurements, Measurements):
          self.close()
  
      fd, self.__filename = make_temporary_file()
      self.__measurements = Measurements(
          filename=self.__filename, mode="w"
      )
      os.close(fd)
      if self.__file_list is not None:
          self.__file_list.remove_notification_callback(
              self.__on_file_list_changed
          )
      self.__file_list = HDF5FileList(
          self.measurements.hdf5_dict.hdf5_file
      )
      self.__file_list.add_notification_callback(
          self.__on_file_list_changed
      )
      self.notify(self.WorkspaceCreatedEvent(self))
  
imports: import io
  import logging
  import os
  import h5py
  import cellprofiler_core.utilities.measurement
  from ._disposition_changed_event import DispositionChangedEvent
  from ..constants.measurement import EXPERIMENT
  from ..constants.workspace import DISPOSITION_CONTINUE
  from ..utilities.hdf5_dict import HDF5FileList
label_desc: Use image node_id 36 for calling the Workspace obj's underlying member method code with example usage: obj.create() without return types