Ticket #7948 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

Fix formatting in SaveGSASInstrument

Reported by: Peter Peterson Owned by: Wenduo Zhou
Priority: major Milestone: Release 3.0
Component: Diffraction Keywords:
Cc: zhouw@… Blocked By:
Blocking: Tester: Vickie Lynch

Description

Ashfia tracked down the difference:

Ok folks, its one line in the parameter file that is causing all the issues. 
Incidentally the only line that is different from last cycles parameter file 
(which was the clue).  The correct format of this line is (notice the gap)
INS  1 ICONS 22565.814     0.000     0.000               0.000    0     0.000

What your writer is writing is
INS  1 ICONS 22565.814     0.000     0.000     0.000    0     0.000

Once you fix that line everything else works.  Attached are the files 
SaveGSASInstrument file writes (Incorrect) and my corrected version which 
I used to do a successful refinement.

The other small issue is that the file is not being written with GSAS 80 character 
followed by return.  However, that we can fix by just running the convert routine 
in GSAS.  However it would be nice if we didn't need to.

Attachments

PGHR_60-2013B.prm (120.9 KB) - added by Peter Peterson 7 years ago.
PGHR_60-2013B-Incorrect.prm (120.9 KB) - added by Peter Peterson 7 years ago.
2013B_HR60_All.irf (4.8 KB) - added by Wenduo Zhou 7 years ago.

Change History

Changed 7 years ago by Peter Peterson

Changed 7 years ago by Peter Peterson

comment:1 Changed 7 years ago by Peter Peterson

  • Owner changed from Peter Peterson to Wenduo Zhou

comment:2 Changed 7 years ago by Wenduo Zhou

  • Status changed from new to inprogress

comment:3 Changed 7 years ago by Wenduo Zhou

Fixed windows build. Refs #7948.

Changeset: cbe15194419f656a5a804b9d65a111cb5ab2624b

comment:4 Changed 7 years ago by Wenduo Zhou

Called FixGSASInstrumentFile. Refs #7948.

Changeset: d7573e9965fab6fe39a1377794867221fdc9acac

comment:5 Changed 7 years ago by Wenduo Zhou

Created files for FixGSASInstrumentFile in C++. Refs #7948.

Changeset: ba0d81329ca52d0112334a421704f249098da995

comment:6 Changed 7 years ago by Wenduo Zhou

Tranlated from python to c++. Refs #7948.

Changeset: 228d50ff15e12127f4276a3d7250eae81ae4b9f8

comment:7 Changed 7 years ago by Wenduo Zhou

Updated CMake. Refs #7948.

Changeset: 4082f93bf060605c9340ddd7c4e661b052b9e0f6

comment:8 Changed 7 years ago by Wenduo Zhou

Updated due to previous change to C++. Refs #7948.

Changeset: 796c101f2772773780f281a78e7f1c207e5650de

comment:9 Changed 7 years ago by Wenduo Zhou

Resolved conflict. Refs #7948.

Changeset: 7c4e090ccdfa825dc1764ff7ba6b36e10ce5e44c

comment:10 Changed 7 years ago by Wenduo Zhou

How to verify

  1. Download all the files attached;
  2. Run SaveGSASInstrumentFile as

InputFilename = "2013B_HR60_All.irf", OutputFilename = "/tmp/test.prm", BankIDs = "1-5", Instrument = "powgen", ChopperFrequency= "60", IDLine = "TEST", Sample = "LaB6", L1 = "60.", TwoTheta = "90."

  1. Compare the output file test.prm to both PGHR_60-2013B.prm and PGHR_60-2013B_incorrect.prm. You should find that test.prm be same as PGHR_60-2013B.prm. Each line should have 80 characters.
Last edited 7 years ago by Wenduo Zhou (previous) (diff)

comment:11 Changed 7 years ago by Wenduo Zhou

Fixed build for OSX. Refs #7948.

Changeset: 2a991dd6dff3c458147cbb15849ed9c631eb7225

comment:12 Changed 7 years ago by Wenduo Zhou

Fixed build for OSX. Refs #7948.

Changeset: e94aeb4d4598a8d3f195c7a76cc78fab01482bf5

Changed 7 years ago by Wenduo Zhou

comment:13 Changed 7 years ago by Wenduo Zhou

Fixed build for OSX. Refs #7948.

Changeset: 1c59002e0f0609fd7b31972a140c135d0f74ccaf

comment:14 Changed 7 years ago by Wenduo Zhou

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

comment:15 Changed 7 years ago by Peter Peterson

  • Cc huqa@… removed

comment:16 Changed 7 years ago by Peter Peterson

  • Status changed from verify to verifying
  • Tester set to Peter Peterson

comment:17 Changed 7 years ago by Peter Peterson

  • Status changed from verifying to verify
  • Tester Peter Peterson deleted

comment:18 Changed 7 years ago by Keith Brown

  • Status changed from verify to verifying
  • Tester set to Keith Brown

comment:19 Changed 7 years ago by Keith Brown

  • Status changed from verifying to verify
  • Tester Keith Brown deleted

Something weird was going on, returning to testing pool so wenduo can see it for himself when someone local to him tries it.

comment:20 Changed 7 years ago by Wenduo Zhou

Corrected a format error. Refs #7948.

Changeset: 80831476da3c3ba596a27f00c4cbd7474b09014d

comment:21 Changed 7 years ago by Wenduo Zhou

Fixed unit test. Refs #7948.

Changeset: fd3449ba341a3814cb6d1e7622ab8df9aeae4f47

comment:22 Changed 7 years ago by Wenduo Zhou

Added FixGSASInstrumentFile and unit test. Refs #7948.

Changeset: dadad109abb63b71f1275d6ad046e1aacc6b341b

comment:23 Changed 7 years ago by Wenduo Zhou

Fixed windows build. Refs #7948.

Changeset: 57d044e880c25a773c24f4761b3f7d6f5db516b0

comment:24 Changed 7 years ago by Wenduo Zhou

Called FixGSASInstrumentFile. Refs #7948.

Changeset: 5b431e11338bbcda726aa2b252e91fdadf63eccd

comment:25 Changed 7 years ago by Wenduo Zhou

Created files for FixGSASInstrumentFile in C++. Refs #7948.

Changeset: eaa8b88eb06637f8c55b00b6148c4b0fd7e95652

comment:26 Changed 7 years ago by Wenduo Zhou

Changes in CMake. Refs #7948.

Changeset: 944d41015ea09274d859876f460074edb3fb6b33

comment:27 Changed 7 years ago by Wenduo Zhou

Tranlated from python to c++. Refs #7948.

Changeset: 84b8ceb31876752aea35029f9a55cf5107e9d431

comment:28 Changed 7 years ago by Wenduo Zhou

Updated CMake. Refs #7948.

Changeset: 264175832faf7fa5d4c7eb3860b1438741ae3abf

comment:29 Changed 7 years ago by Wenduo Zhou

Updated due to previous change to C++. Refs #7948.

Changeset: 91e8cb24dc0aeede45911816c28323287a782aaf

comment:30 Changed 7 years ago by Wenduo Zhou

Fixed build for OSX. Refs #7948.

Changeset: bebd94e51fcb7e358ef6971c4d57601bd7ef801f

comment:31 Changed 7 years ago by Wenduo Zhou

Fixed build for OSX. Refs #7948.

Changeset: dd7bf271bce16aa1ffac7e2f1ec1f08bb393f671

comment:32 Changed 7 years ago by Wenduo Zhou

Fixed build for OSX. Refs #7948.

Changeset: ef3a618103cf16f21a215dea28fdfe95be17b275

comment:33 Changed 7 years ago by Wenduo Zhou

Made change due to change in LoadFullprofResolution. Refs #7948.

Changeset: 851f1f769f19dc9f583e9a856486a862caeeb4a8

comment:34 Changed 7 years ago by Wenduo Zhou

Fixed error in cmake. Refs #7948.

Changeset: 646aeb90ad05a4150f14ce330fe75df7b3ba1c25

comment:35 Changed 7 years ago by Vickie Lynch

  • Status changed from verify to verifying
  • Tester set to Vickie Lynch

comment:36 Changed 7 years ago by Vickie Lynch

  • Status changed from verifying to closed

Merge remote branch 'origin/feature/7948_correct_gsas_format'

Full changeset: c5593272a48cdfe2eaa0c8a42fd7d7170c483155

comment:37 Changed 7 years ago by Vickie Lynch

All numbers match except random integers

comment:38 Changed 7 years ago by Peter Peterson

  • Cc whitfieldps@… removed

comment:39 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 8793

Note: See TracTickets for help on using tickets.