leginon-org / leginon-redmine-archive

1 stars 0 forks source link

ACE button does not work in current version of myamiweb #173

Closed leginonbot closed 7 months ago

leginonbot commented 7 months ago

Author Name: Neil Voss (@vosslab) Original Redmine Issue: 173, https://emg.nysbc.org/redmine/issues/173 Original Date: 2010-03-03 Original Assignee: Eric Hou


Gabe pointed out to me that the ACE button is not working in the myamiweb image viewer. So, I investigated it myself.

Steps to reproduce:

  1. Open imageviewer
  2. Go to a experiment with ACE estimations (e.g., 10feb11a)
  3. Select image with ACE estimations (e.g., any image with en preset)
  4. Click 'ACE' button

Result: No image is display and nothing is printed at the top.

Expected result: See an image of the power spectra with fit ellipse and ACE values at the top.

It is a complicated query because each image may have 4 or more rows in the ApCtfData table. The displayed data is from the row with the highest confidence value.

I wanted to file a bug, because it is a very useful feature. I noticed in the old appionweb page, the image shows up correctly, but the ACE values at the top are NOT displayed.

leginonbot commented 7 months ago

Original Redmine Comment Author Name: Eric Hou (Eric Hou) Original Date: 2010-03-03T20:06:04Z


the problem is because we have duplicate file name in two different places. That cause some functions got redeclare multiple times. We have a 'inc' folder under the web directory (/srv/www/httpd). All the file in there are not in svn and shouldn't suppose be there also. We need to remove that folder. (the safe way is change the folder name to inc_bck). And we can re-test the myamiweb to see what functionally broken after we remove that folder.

I don't have the permission to change the folder's name on cronus3. I already change that folder's name on fly server. But since fly server won't be able to view any images. I won't be able to test it.

Thanks.

leginonbot commented 7 months ago

Original Redmine Comment Author Name: Eric Hou (Eric Hou) Original Date: 2010-03-04T19:08:14Z


There were two problems. First error I found out are some duplicate file in our file system, and because the php include path in the php.ini contain different other folders outside of myamiweb itself.

In the config.php.template, I update the new include path to ignore the include from php.ini

Second error is the DB error which Gabriel mention about the "DB" variable has not been defined and has been change to DB_LEGNION. Therefore any scrips using functions in particledata.inc which DB variable are not working. (not only ACE, there are others in the processing pipeline).

I updated all the DB to DB_LEGNION in particledata.inc

I kinda browse around the processing section and image viewer on cronus3. Looks like very things are working fine now. But would love others to verify it.

Thanks.

Eric Hou

leginonbot commented 7 months ago

Original Redmine Comment Author Name: Gabriel Lander (@gclander) Original Date: 2010-03-04T20:02:13Z


At this end, I notice that the ACE button works only for projects associated with first project shown in the image viewer. Maybe we have something set up incorrectly here, but I think that when you first open the imageviewer, the "PROCESSING_DB" constant is set to that first session. If you view a different session under a different project, the constant cannot be overwritten, and it can't find the associated ACE info for that session. Does that make sense?

leginonbot commented 7 months ago

Original Redmine Comment Author Name: Gabriel Lander (@gclander) Original Date: 2010-03-12T15:37:57Z


Anchi & Eric found that the problem is where project.inc is imported, such that it uses the appropriate session to find and assign the processing db. Had to move the HTML code to go below this project.inc line so that warnings aren't triggered. r13152