docstr: Set the gridding to use upon failure
docstr_tok: ["Set","the","gridding","to","use","upon","failure"]
code: def set_good_gridding(self, workspace, gridding):
      """Set the gridding to use upon failure"""
      d = self.get_dictionary()
      if (
          self.failed_grid_choice == FAIL_ANY_PREVIOUS
          or GOOD_GRIDDING not in d
      ):
          d[GOOD_GRIDDING] = gridding
  
imports: import logging
  import centrosome.cpmorphology
  import numpy
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  from cellprofiler_core.constants.measurement import COLTYPE_INTEGER
  from cellprofiler_core.constants.measurement import IMAGE
  from cellprofiler_core.image import Image
  from cellprofiler_core.module import Module
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting import Coordinates
  from cellprofiler_core.setting import ValidationError
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.subscriber import ImageSubscriber
  from cellprofiler_core.setting.subscriber import LabelSubscriber
  from cellprofiler_core.setting.text import GridName
  from cellprofiler_core.setting.text import ImageName
  from cellprofiler_core.setting.text import Integer
  from cellprofiler_core.utilities.grid import Grid
label_desc: Use image node_id 17 for calling the DefineGrid obj's underlying member method code with example usage: obj.set_good_gridding(workspace, gridding) without return types