Ticket #8220 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

Bugs when loading the instrument from inside a nexus file

Reported by: Russell Taylor Owned by: Russell Taylor
Priority: critical Milestone: Release 3.0
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester: Samuel Jackson

Description

A couple of problems have been observed following #8108:

  • When the instrument is within the nexus file, but a definition also exists (e.g. SEQUOIA, but not HYSPECA) then an LoadIDFFromNexus is failing because an attempt is being made to store an instrument with an empty name in the Instrument Data Service (which is not allowed).

Attachments

osi92762_graphite002_red.nxs (1.1 MB) - added by Russell Taylor 7 years ago.

Change History

Changed 7 years ago by Russell Taylor

comment:1 Changed 7 years ago by Russell Taylor

The second point above is specifically a big problem for SEQUOIA because its IDF is missing a last-modified field. For others (e.g. HYSPEC), the name in the IDS is just the last modified date (with not indication of the instrument).

comment:2 Changed 7 years ago by Russell Taylor

  • Status changed from new to inprogress

Re #8220. If the filename member is not empty, expand to full path.

The filename is used inside InstrumentDefinitionParser to locate the geometry cache (vtp) file.

Changeset: 022313d1809806117dae62d425d4b37292570bf2

comment:3 Changed 7 years ago by Russell Taylor

Re #8220. Use the instrument name for the 'mangled name' if no IDF.

Previously, this would always return empty for the filename as no file is being used in these circumstances.

Changeset: 7cbba1266afa114b2e70d1b2f81a00c5ff079d24

comment:4 Changed 7 years ago by Russell Taylor

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

The problems are solved - check by loading a processed nexus file and inspecting the log (turn up the level) to see that the instrument cache has been found and loaded. Check you can load the HYSA files in the repository as well.

comment:5 Changed 7 years ago by Gesner Passos

  • Status changed from verify to verifying
  • Tester set to Gesner Passos

comment:6 Changed 7 years ago by Gesner Passos

  • Status changed from verifying to verify
  • Tester Gesner Passos deleted

I'm afraid I'm not able to reproduce the problem before applying the patch proposed in this ticket. I mean, I loaded the files that have the instrument defined inside them, and they used that inside, with no clear problem, I was able to spot. Hence, I will not be able to verify it works. It may be necessary to use the SEQUOIA file to really see the problem. Or, I will need further explanation on how to spot the problem.

I'm returning the ticket to the pool.

comment:7 Changed 7 years ago by Samuel Jackson

  • Status changed from verify to verifying
  • Tester set to Samuel Jackson

comment:8 Changed 7 years ago by Samuel Jackson

  • Status changed from verifying to closed

Merge remote-tracking branch 'origin/bugfix/8220_instrument_caching_bug'

Full changeset: e5a3dec2f34ff56254132a4b8c6db126945c8592

comment:9 Changed 7 years ago by Samuel Jackson

I checked that the original issue has been resolved and that the HYSA files in the system tests repo could be loaded. The vtp file is now being found when loading OSIRIS and ISIS nexus files.

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 9065

Note: See TracTickets for help on using tickets.