Ticket #10211 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

Values from the mantid matrix are copied at the display precision, not the full precision

Reported by: Nick Draper Owned by: Nick Draper
Priority: major Milestone: Release 3.3
Component: GUI Keywords:
Cc: Blocked By:
Blocking: Tester: Dan Nixon

Description

If I select some cells/rows/columns in a Workspace2D window, and right click->Copy, and then Paste into Notepad, Excel or wherever, the values are rounded to 6 significant figures!

However, if I right click and "Copy Bin to Table" or "Copy Spectrum to Table", the values in the table have the full double precision (~15 digits) expected. I can then copy those numbers out of the Mantid/QTI table into Excel and the precision is preserved.

Copying the full precision should be the default everywhere.

Highlighted by James Lord

Change History

comment:1 Changed 6 years ago by Nick Draper

re #10211 copy out of mantid matrix with 15sf precision if required

Changeset: 095adc5dfa535c6b12800c7f9d7914dbb69e9039

comment:2 Changed 6 years ago by Nick Draper

  • Status changed from new to assigned

comment:3 Changed 6 years ago by Nick Draper

To test:

  1. Load some data, show the mantid matrix
  2. copy one or more cells, and drop into a text file or excel
  3. The values should copy ok
  4. Try that again with high precision values, Use the Scale algorithm to add 0.123456789 to all values for this.
  5. The Matrix display only shows a set precision, but up to 15 sf of precision should be copied out via the clipboard

comment:4 Changed 6 years ago by Nick Draper

  • Status changed from assigned to verify
  • Resolution set to fixed

comment:5 Changed 6 years ago by Dan Nixon

  • Status changed from verify to verifying
  • Tester set to Dan Nixon

comment:6 Changed 6 years ago by Dan Nixon

  • Status changed from verifying to closed

Merge remote-tracking branch 'origin/feature/10211_Copy-paste_precision'

Full changeset: 7b821df30979dda044d424c8188253b9c79fdb39

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 11053

Note: See TracTickets for help on using tickets.