parameters: (sample_workspace, can_workspace, subtracted_workspace)
docstring: Sets the correct Q resolution on a can-subtracted workspace.
  
      We need to transfer the Q resolution from the original workspaces to the subtracted
      workspace. Richard wants us to ignore potential DX values for the CAN workspace (they
      would be very small any way). The Q resolution functionality only exists currently
      for 1D, ie when only one spectrum is present.
docstring_summary: Sets the correct Q resolution on a can-subtracted workspace.
docstring_tokens: Sets the correct Q resolution on a can - subtracted workspace .
function: def correct_q_resolution_for_can(sample_workspace, can_workspace, subtracted_workspace):
      """
      Sets the correct Q resolution on a can-subtracted workspace.
  
      We need to transfer the Q resolution from the original workspaces to the subtracted
      workspace. Richard wants us to ignore potential DX values for the CAN workspace (they
      would be very small any way). The Q resolution functionality only exists currently
      for 1D, ie when only one spectrum is present.
      """
      _ = can_workspace  # noqa
      if sample_workspace.getNumberHistograms() == 1 and sample_workspace.hasDx(0):
          subtracted_workspace.setDx(0, sample_workspace.dataDx(0))
function_tokens: def correct_q_resolution_for_can ( sample_workspace , can_workspace , subtracted_workspace ) : _ = can_workspace # noqa if sample_workspace . getNumberHistograms ( ) == 1 and sample_workspace . hasDx ( 0 ) : subtracted_workspace . setDx ( 0 , sample_workspace . dataDx ( 0 ) )