Ticket #4628 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Value Error when running IRIS _red.nxs file in Abs(F2PY) tab of Indirect Data Analysis tab

Reported by: Peter Parker Owned by: Nick Draper
Priority: major Milestone: Release 2.0
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Stuart Campbell

Description

Spencer is unable to run the attached file in the above named tab of the IDA interface.

Error:

ValueError on line 7: "Invalid value for property SpectrumMin (number) "irs26173_graphite002_red": Could not set property SpectrumMin. Can not convert "irs26173_graphite002_red" to number" in file 'simpleapi.py' at line 157

Attachments

irs26173_graphite002_red.nxs (413.5 KB) - added by Peter Parker 9 years ago.

Change History

Changed 9 years ago by Peter Parker

comment:1 Changed 9 years ago by Peter Parker

Perhaps linked to #4627, i.e. loading nexus files could be the problem.

comment:2 Changed 9 years ago by Peter Parker

  • Milestone changed from Iteration 33 to Iteration 32

comment:3 Changed 9 years ago by Peter Parker

  • Owner changed from Peter Parker to Nick Draper
  • Status changed from new to assigned

comment:4 Changed 9 years ago by Nick Draper

  • Status changed from assigned to accepted

this works fine for me

comment:5 Changed 9 years ago by Nick Draper

Spotted another issue when running this though. When running this data with this tab you get

NameError on line 2: "name 'sys' is not defined" in file 'SpencerAbsCor.py' at line 11

Because the Fortran code is not found.

Fixed this one so you get the more helpful error message.

comment:6 Changed 9 years ago by Nick Draper

re #4628 added a missing import of sys

Changeset: e7d1ed84be82847ce1a6f3490e15c084237ed374

comment:7 Changed 9 years ago by Nick Draper

  • Status changed from accepted to verify
  • Resolution set to worksforme

comment:8 Changed 9 years ago by Nick Draper

  • Status changed from verify to reopened
  • Resolution worksforme deleted

Error occurs on win32 or whenever you have the F2Py code working

comment:9 Changed 9 years ago by Nick Draper

re #4628 set the interface to use the old api

Changeset: fdd114fcf27e194a4025e1cc8fe5ab666645216d

comment:10 Changed 9 years ago by Nick Draper

  • Status changed from reopened to accepted

comment:11 Changed 9 years ago by Nick Draper

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

comment:12 Changed 9 years ago by Stuart Campbell

  • Status changed from verify to verifying
  • Tester set to Stuart Campbell

comment:13 Changed 9 years ago by Stuart Campbell

  • Status changed from verifying to closed

I ran the Abs (F2PY) tab using random numbers for the inputs (mostly 1's) with the file attached to this ticket. The process seems to run and I get a new workspace called irs26173_graphite002_flt_Abs.

This test was done under Linux 64-bit (RHEL 6.2)

One this to note is that the output file is reported slightly incorrectly as:

Output files created : /home/scuirs26173_graphite002_flt_Abs.nxs

(There is a missing '/')

comment:14 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5475

Note: See TracTickets for help on using tickets.