Ticket #6936 (closed: fixed)
Paraview Setup MantidPlot
Reported by: | Owen Arnold | Owned by: | Owen Arnold |
---|---|---|---|
Priority: | major | Milestone: | Release 2.5 |
Component: | VATES | Keywords: | |
Cc: | reuterma@… | Blocked By: | |
Blocking: | #6315 | Tester: | Michael Reuter |
Description
For 3.10, we introduced a dialog into mantid plot that would allow the user to specify where mantid plot lived, and hence allow mantidplot to dynamically add paraview onto the path. This breaks for 3.98 because the library layout has changed.
This should be easy to fix, by having it look for paraview.exe rather than pqcore in SetupParaview.cpp line 35. This change should be compatible with both 3.10 and 3.98 so It can go straight into master. This should avoid the need for the user to follow special install instructions on windows.
Change History
comment:1 Changed 7 years ago by Owen Arnold
- Cc reuterma@… added
- Status changed from new to accepted
comment:2 Changed 7 years ago by Owen Arnold
These changes can go in without #6937, because it's not technically blocking it.
comment:3 Changed 7 years ago by Owen Arnold
refs #6936. Made compatible with new and old PV.
Changeset: 4d18de87070731839514155361d5b1048ef795be
comment:4 Changed 7 years ago by Owen Arnold
Tester:
Here are some suggestions for testing the ticket out. These tests must be done on windows.
- Look at the line containing Compatible_Paraview_Version in CommonSetup.cmake in /Build/CMake note the paraview version
- Checkout the branch build with MAKE_VATES On
- Download and install the version of paraview that is the same as the one in CommonSetup (either 3.10 or 3.98 at the time of writing) from the Mantid download page
- Open help -> 3D visualisation setup
- Hint on the dialog should give a path that matches the version in CommonSetup.cmake
- Setting the path should work.
- Now change CommonSetup.cmake to 3.98 if it was previously 3.10 or visa-versa
- Re-run the steps above and the hint should have changed.
- The dialog will accept the new path
comment:5 Changed 7 years ago by Michael Reuter
This is being merged onto the ParaView 3.98 working branch. DO NOT TOUCH! Owen, can you move this to verify state please.
comment:6 Changed 7 years ago by Owen Arnold
refs #6936. Made compatible with new and old PV.
Changeset: 4d18de87070731839514155361d5b1048ef795be
comment:8 Changed 7 years ago by Michael Reuter
Refs #6315 and #6936. Fixing version number assembly.
Changeset: 3be48cc9875b0759ecc7f3ebc25c3eceef24765e
comment:9 Changed 7 years ago by Owen Arnold
- Status changed from accepted to verify
- Resolution set to fixed
comment:10 Changed 7 years ago by Owen Arnold
Moved to verify state as requested by Michael.
comment:11 Changed 7 years ago by Owen Arnold
- Status changed from verify to reopened
- Resolution fixed deleted
comment:13 Changed 7 years ago by Owen Arnold
refs #6939. PATH changes don't propegate through.
Changeset: 6d4998391b4a65c3fd09a3d81c5fe07bf5a84b25
comment:14 Changed 7 years ago by Owen Arnold
refs #6939. Unused include.
Changeset: 6c7374228ee422b78595dda30818feebed668767
comment:15 Changed 7 years ago by Owen Arnold
comment:16 Changed 7 years ago by Owen Arnold
- Status changed from accepted to verify
- Resolution set to fixed
Tester you should ensure that the original testing steps work. Also try these on Windows after installing.
1) Remove paraview.path entirely from your user properties file. Start MantidPlot and you should see the 3D visualisation setup dialog.
2) set paraview.path= in your user properties and you should get the same results as above.
3) Start MantidPlot and using the 3D visualisation setup dialog, set the correct path to ParaView. Then Load the SEQ md file in the auto test directory. Right click and open in the VSI. Should load without problems.
comment:17 Changed 7 years ago by Martyn Gigg
- Status changed from verify to verifying
- Tester set to Martyn Gigg
comment:18 Changed 7 years ago by Martyn Gigg
- Status changed from verifying to reopened
- Resolution fixed deleted
This has broken things on the Mac. On the Mac we don't use the setup dialog so the paraview.path is empty therefore the quickParaViewCheck fails until you set the path correctly.
In DarwinSetup the removed line
set ( PARAVIEW_APP_BIN_DIR "${PARAVIEW_APP_DIR}/Contents/MacOS" )
was actually used to populate the default mantid properties file with the correct location of the PV executable. I think we need to put the string back in the properties file and change the check for the key to check whether it is empty or not.
Could we not avoid the setup dialog on windows too if we set the path for windows also and if it works, which for most people that take the default package it will, we don't need to pop up the dialog at all?
comment:19 Changed 7 years ago by Owen Arnold
refs #6936. Fix broken mac package.
Changeset: 2589d577b38b8d240c7b2cf0f9f4e8aef5f613f0
comment:20 Changed 7 years ago by Owen Arnold
We can look at removing the 3D visualisation setup dialog from the start-up later. I'm hesitant to do this, because it's not a major issue, and hard-coding a location, without checking it first, will cause the VSI to crash if it's not right.
Other modifications requested have been made.
comment:21 Changed 7 years ago by Martyn Gigg
That's fair. I'm happy for this to be closed now.
comment:22 Changed 7 years ago by Owen Arnold
refs #6936. Fix broken mac package.
Changeset: 2589d577b38b8d240c7b2cf0f9f4e8aef5f613f0
comment:24 Changed 7 years ago by Owen Arnold
refs #6936. Made compatible with new and old PV.
Changeset: 4d18de87070731839514155361d5b1048ef795be
comment:25 Changed 7 years ago by Michael Reuter
Refs #6315 and #6936. Fixing version number assembly.
Changeset: 3be48cc9875b0759ecc7f3ebc25c3eceef24765e
comment:26 Changed 7 years ago by Owen Arnold
refs #6936. Fix broken mac package.
Changeset: 2589d577b38b8d240c7b2cf0f9f4e8aef5f613f0
comment:28 Changed 7 years ago by Owen Arnold
- Status changed from accepted to verify
- Resolution set to fixed
comment:29 Changed 7 years ago by Owen Arnold
refs #6936. Made compatible with new and old PV.
Changeset: 4d18de87070731839514155361d5b1048ef795be
comment:30 Changed 7 years ago by Michael Reuter
Refs #6315 and #6936. Fixing version number assembly.
Changeset: 3be48cc9875b0759ecc7f3ebc25c3eceef24765e
comment:31 Changed 7 years ago by Owen Arnold
refs #6936. Fix broken mac package.
Changeset: 2589d577b38b8d240c7b2cf0f9f4e8aef5f613f0
comment:32 Changed 7 years ago by Michael Reuter
- Status changed from verify to verifying
- Tester changed from Martyn Gigg to Michael Reuter
comment:33 Changed 7 years ago by Michael Reuter
- Status changed from verifying to closed
This was folded into the ParaView 3.98 branch and shown to work for both OSX and Windows. This is now on master as well.
comment:34 Changed 7 years ago by Owen Arnold
refs #6936. Made compatible with new and old PV.
Changeset: 4d18de87070731839514155361d5b1048ef795be
comment:35 Changed 7 years ago by Michael Reuter
Refs #6315 and #6936. Fixing version number assembly.
Changeset: 3be48cc9875b0759ecc7f3ebc25c3eceef24765e
comment:36 Changed 7 years ago by Owen Arnold
refs #6936. Fix broken mac package.
Changeset: 2589d577b38b8d240c7b2cf0f9f4e8aef5f613f0
comment:37 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 7782