How to Update from v20 (Microscope Windows Computer) » History » Revision 3
Revision 2 (Anchi Cheng, 10/28/2010 12:11 AM) → Revision 3/4 (Anchi Cheng, 10/28/2010 12:12 AM)
h1. How to Update from v20 (Microscope Windows Computer) The changes from v2.0 does not require upgrade at the microscope but is recommended. See [[Installation Troubleshooting]] and "Leginon Bulletin Board":http://emg.nysbc.org/projects/leginon/boards searching for "install" if you run into problems. h2. Packages required from NRAMM All Leginon (and Appion) packages distributed from NRAMM are now under one svn control. Recommended minimal subpackage upgrade: |pyscope|setting of beam tilt value scale factor| h2. Download myami-2.1 source code h3. Check out SVN Source Files from the repository Assuming that you have installed some kind of svn client such as TortoiseSVN "http://tortoisesvn.tigris.org/", you can use your mouse to do the following * Create myami2.1 directory somewhere at your convenience * Change directory into myami2.1 * Right-click the mouse botton in this directory window and select Tortoise svn Checkout in the menu: !http://emg.nysbc.org/software/leginon/images/images/svnmenu.png! * Set up svn checkout window like this, but check out from http://emg.nysbc.org/svn/myami/branches/myami-2.1 and save it to myami2.1 folder !http://emg.nysbc.org/software/leginon/images/images/svnco.png! Otherwise, you can copy the files from your linux myami-2.1 source. h2. Perform system check if you can't remember where you have installed your Leginon before. * Go to ~/myami2.1/leginon * Double click on syscheck.py You should have all the supporting packages installed for v2.0. If you see any lines like "*** Failed...", then you have something missing. Otherwise, everything should result in "OK". h2. Move your existing packages to a backup directory (Optional): At the beginning of the syscheck.py output, the location of the exisiting Leginon folder is shown. Although new installation overwrite the old in most cases, problem has been observed in the past. Therefore, it is best to remove the old files from the path before new installation. Better yet, copy into a backup folder because we need some configuration files from them. You may find these folders here: |leginon| |pyscope| |sinedon| |pyami| |imageviewer| For example, your Leginon folder is at C:\\python25\Lib\site-packages\leginon <pre>Go to C\\python25\site-packages Create Leginon2_0_backup folder Move Leginon folder into Leginon2_0_backup folder</pre> h2. Install subpackages you downloaded from NRAMM svn repository. *You should not install numextension, libcv and comarray using this instruction* * Start a command line Window from Start Menu * Reinstall the package in EACH of the following folders using the included setup.py |leginon| |pyscope| |sinedon| |pyami| |imageviewer| <pre>cd Your_Download_Place\myami2.1_folder c:\\python25\python.exe setup.py install</pre> * run syscheck.py again to make sure you have everything. h2. Copy your Leginon2.0 sinedon.cfg to the new installation if you have moved the Leginon2.0 installation into its backup. * Find your sinedon.cfg. Depending on your previous setting, look in the directories listed here in order: *your home directory as described in syscheck.py *The sinedon directory where it is called from. If unsure, start python command line and type these to find out: <pre>python> import sinedon python> sinedon</pre> * If sinedon.cfg reside in the installed sinedon subpackage, you should copy it from your Leginon2.0 backup to the new installation. <pre>go to C:\\python25\Lib\site-packages\ copy Leginon_2_0_backup\sinedon\sinedon.cfg into the new sinedon folder </pre> h2. Copy your Leginon2.0 Instruments.cfg to the new installation if you have moved Leginon2.0 installation into its backup: * instruments.cfg is in the pyscope folder of your Leginon 2.0 backup to the new pyscope folder under site-packages directory. h2. modify Tietz PXL camera imaging size if you did so before for Leginon 2.0 *You should not copy the old one in this case since the file has been changed* * Go to C:\Python25\Lib\site-packages\pyscope\ * Edit tietz.py with a plain text editor * Find the lines: <pre> def getCameraSize(self): # {'type': dict, 'values': {'x': {'type': int}, 'y': {'type': int}}}} x = self._getParameterValue('cpTotalDimensionX') y = self._getParameterValue('cpTotalDimensionY') return {'x': x, 'y': y} </pre> * Change the last line to: <pre> return {'x': 2048, 'y': 2048}</pre> ______ [[How_to_Update_from_v20_(Linux)|< How to Update from v2.0 (Linux)]] ______