Index: prview/src/MANIFEST.IN
===================================================================
--- prview/src/MANIFEST.IN	(revision 407a9e4636bc137d529aad36a67616512c46354e)
+++ prview/src/MANIFEST.IN	(revision 4851fcbcfbc58217382fcfbec6bf67d8fc72b5c8)
@@ -1,4 +1,4 @@
-
-graft images
 
 
+
+
Index: prview/src/bin/PrView.py
===================================================================
--- prview/src/bin/PrView.py	(revision 4851fcbcfbc58217382fcfbec6bf67d8fc72b5c8)
+++ prview/src/bin/PrView.py	(revision 4851fcbcfbc58217382fcfbec6bf67d8fc72b5c8)
@@ -0,0 +1,54 @@
+
+#!/usr/bin/env python
+import os
+import sys
+import imp
+import wx
+#import gui_manager
+from sans.guiframe import gui_manager
+from sans.guiframe.gui_manager import _find_local_config
+
+# For py2exe, import config here
+
+
+path = os.getcwd()
+local_config = _find_local_config('local_config', path)
+if local_config is None:
+    path, _ = os.path.split(os.getcwd())
+    local_config = _find_local_config('local_config', path)
+if local_config is None:
+    raise RuntimeError, "PrView cannot located local_config.py"
+
+
+class PrApp(gui_manager.ViewApp):
+    """
+    """
+   
+class PrView():
+    """
+    """
+    def __init__(self):
+        """
+        """
+        #from gui_manager import ViewApp
+        #self.gui = gui_manager.ViewApp(0) 
+        self.gui = PrApp(0)
+        # Add perspectives to the basic application
+        # Additional perspectives can still be loaded
+        # dynamically
+        import sans.perspectives.pr as module
+        self.pr_plug = module.Plugin(standalone=True)
+        self.gui.add_perspective(self.pr_plug)
+            
+        # Build the GUI
+        self.gui.build_gui()
+        
+        # Set the application manager for the GUI
+        self.gui.set_manager(self)
+        
+        # Start the main loop
+        self.gui.MainLoop()  
+        
+
+if __name__ == "__main__": 
+    sansview = PrView()
Index: prview/src/local_config.py
===================================================================
--- prview/src/local_config.py	(revision 7ccba3c31fc766fb7d7eb00873f67244775065a2)
+++ prview/src/local_config.py	(revision 4851fcbcfbc58217382fcfbec6bf67d8fc72b5c8)
@@ -69,4 +69,5 @@
 OutputBaseFilename = "setupPrView"
 DATAPANEL_WIDTH = 235
+DATAPANEL_HEIGHT = 700
 FIXED_PANEL = True
 DATALOADER_SHOW = True
Index: prview/src/requirements.txt
===================================================================
--- prview/src/requirements.txt	(revision 4851fcbcfbc58217382fcfbec6bf67d8fc72b5c8)
+++ prview/src/requirements.txt	(revision 4851fcbcfbc58217382fcfbec6bf67d8fc72b5c8)
@@ -0,0 +1,32 @@
+1. Thread [done]
+2. Find good defaults. Automate the inversion.
+   -How do we estimate d_max? Guinier fit?
+   -How do we estimate alpha? [done]
+   Compute the residuals once and choose a value that brings the reg term up to 
+   a fraction of the residuals.
+3. When fitting a plottable on a Graph with multiple plottables, remember the one the user chose [done]
+4. What q-range do we need to make it work? What are the constraints? [studied by Raiza]
+5. Create handshake so that a plug-in can set context menu items to its own panels... [done]
+6. Return figure of merit values and suggest the values for d_max and alpha. [alpha, nfunc done]
+7. Show time estimate [done]
+8. Plot the reg term alone to see what it looks like 
+9. Use data loader perspective/plug-in to load data/choose file [done]
+10. Common module for file reading and file choosing 
+11. Define limits of applicability 
+12. Return figures of merit [done]
+13. Errors on output constants [done]
+14. Clean up the InversionDialog [done]
+15. Add online help for inputs and outputs (especially figures of merit) [done]
+16. Add help text to the interface (description of what we are minimizing, to explain alpha and nfunc).
+17. Get rid of all output prints. 
+18. Clean up
+19. Replace help dialog text with a nice image. Mention how to choose alpha and what the suggested alpha means.
+20. If a figure of merit is clearly bad, put its background red
+21. Option to save data. [done]
+22. If you click compute before loading data, an error occurs. [fixed]
+23. Plot I(q) immediately when you choose a new file. [done]
+24. *** probably need to ship the perspectives separately...
+25. If no data is available, disable the Fit button. [Message sent instead]
+26. Remove an added curve...
+27. Add multiple additional data curves.
+28. Use Data Loader.
Index: prview/src/sans/perspectives/pr/requirements.txt
===================================================================
--- prview/src/sans/perspectives/pr/requirements.txt	(revision 24e093a8dce51131b5845f3696386c1ddb08daf7)
+++ 	(revision )
@@ -1,32 +1,0 @@
-1. Thread [done]
-2. Find good defaults. Automate the inversion.
-   -How do we estimate d_max? Guinier fit?
-   -How do we estimate alpha? [done]
-   Compute the residuals once and choose a value that brings the reg term up to 
-   a fraction of the residuals.
-3. When fitting a plottable on a Graph with multiple plottables, remember the one the user chose [done]
-4. What q-range do we need to make it work? What are the constraints? [studied by Raiza]
-5. Create handshake so that a plug-in can set context menu items to its own panels... [done]
-6. Return figure of merit values and suggest the values for d_max and alpha. [alpha, nfunc done]
-7. Show time estimate [done]
-8. Plot the reg term alone to see what it looks like 
-9. Use data loader perspective/plug-in to load data/choose file [done]
-10. Common module for file reading and file choosing 
-11. Define limits of applicability 
-12. Return figures of merit [done]
-13. Errors on output constants [done]
-14. Clean up the InversionDialog [done]
-15. Add online help for inputs and outputs (especially figures of merit) [done]
-16. Add help text to the interface (description of what we are minimizing, to explain alpha and nfunc).
-17. Get rid of all output prints. 
-18. Clean up
-19. Replace help dialog text with a nice image. Mention how to choose alpha and what the suggested alpha means.
-20. If a figure of merit is clearly bad, put its background red
-21. Option to save data. [done]
-22. If you click compute before loading data, an error occurs. [fixed]
-23. Plot I(q) immediately when you choose a new file. [done]
-24. *** probably need to ship the perspectives separately...
-25. If no data is available, disable the Fit button. [Message sent instead]
-26. Remove an added curve...
-27. Add multiple additional data curves.
-28. Use Data Loader.
Index: prview/src/sans/perspectives/pr/test_pr_data.prv
===================================================================
--- prview/src/sans/perspectives/pr/test_pr_data.prv	(revision 24e093a8dce51131b5845f3696386c1ddb08daf7)
+++ 	(revision )
@@ -1,922 +1,0 @@
-<?xml version="1.0" ?>
-<SASroot version="1.0" xmlns="cansas1d/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="cansas1d/1.0 http://svn.smallangles.net/svn/canSAS/1dwg/trunk/cansas1d.xsd">
-	<SASentry>
-		<Title>
-			
-		</Title>
-		<SASdata>
-			<Idata>
-				<Q unit="1/A">
-					0.00925926
-				</Q>
-				<I unit="1/cm">
-					1246.59
-				</I>
-				<Idev unit="1/cm">
-					74.7954
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.0185185
-				</Q>
-				<I unit="1/cm">
-					612.143
-				</I>
-				<Idev unit="1/cm">
-					56.1434497931
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.0277778
-				</Q>
-				<I unit="1/cm">
-					361.142
-				</I>
-				<Idev unit="1/cm">
-					46.0142235714
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.037037
-				</Q>
-				<I unit="1/cm">
-					211.601
-				</I>
-				<Idev unit="1/cm">
-					38.1456435049
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.0462963
-				</Q>
-				<I unit="1/cm">
-					122.127
-				</I>
-				<Idev unit="1/cm">
-					31.9750194656
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.0555556
-				</Q>
-				<I unit="1/cm">
-					65.2385
-				</I>
-				<Idev unit="1/cm">
-					26.724727241
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.0648148
-				</Q>
-				<I unit="1/cm">
-					30.8914
-				</I>
-				<Idev unit="1/cm">
-					22.2777436502
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.0740741
-				</Q>
-				<I unit="1/cm">
-					12.4737
-				</I>
-				<Idev unit="1/cm">
-					18.7007996951
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.0833333
-				</Q>
-				<I unit="1/cm">
-					3.51371
-				</I>
-				<Idev unit="1/cm">
-					15.775037255
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.0925926
-				</Q>
-				<I unit="1/cm">
-					0.721835
-				</I>
-				<Idev unit="1/cm">
-					13.9657602374
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.101852
-				</Q>
-				<I unit="1/cm">
-					0.583607
-				</I>
-				<Idev unit="1/cm">
-					13.8145276822
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.111111
-				</Q>
-				<I unit="1/cm">
-					1.31084
-				</I>
-				<Idev unit="1/cm">
-					14.4870877916
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.12037
-				</Q>
-				<I unit="1/cm">
-					1.9432
-				</I>
-				<Idev unit="1/cm">
-					14.9267807813
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.12963
-				</Q>
-				<I unit="1/cm">
-					1.94286
-				</I>
-				<Idev unit="1/cm">
-					14.9265654829
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.138889
-				</Q>
-				<I unit="1/cm">
-					1.58912
-				</I>
-				<Idev unit="1/cm">
-					14.6913106929
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.148148
-				</Q>
-				<I unit="1/cm">
-					0.987076
-				</I>
-				<Idev unit="1/cm">
-					14.2198092557
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.157407
-				</Q>
-				<I unit="1/cm">
-					0.456678
-				</I>
-				<Idev unit="1/cm">
-					13.6588901802
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.166667
-				</Q>
-				<I unit="1/cm">
-					0.147595
-				</I>
-				<Idev unit="1/cm">
-					13.1441153991
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.175926
-				</Q>
-				<I unit="1/cm">
-					0.027441
-				</I>
-				<Idev unit="1/cm">
-					12.7583366435
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.185185
-				</Q>
-				<I unit="1/cm">
-					0.0999575
-				</I>
-				<Idev unit="1/cm">
-					13.0240353329
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.194444
-				</Q>
-				<I unit="1/cm">
-					0.198717
-				</I>
-				<Idev unit="1/cm">
-					13.2528539774
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.203704
-				</Q>
-				<I unit="1/cm">
-					0.277667
-				</I>
-				<Idev unit="1/cm">
-					13.3961377459
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.212963
-				</Q>
-				<I unit="1/cm">
-					0.288172
-				</I>
-				<Idev unit="1/cm">
-					13.4135712688
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.222222
-				</Q>
-				<I unit="1/cm">
-					0.220056
-				</I>
-				<Idev unit="1/cm">
-					13.2940298344
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.231481
-				</Q>
-				<I unit="1/cm">
-					0.139378
-				</I>
-				<Idev unit="1/cm">
-					13.1249660457
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.240741
-				</Q>
-				<I unit="1/cm">
-					0.0541106
-				</I>
-				<Idev unit="1/cm">
-					12.8765511076
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.25
-				</Q>
-				<I unit="1/cm">
-					0.0140158
-				</I>
-				<Idev unit="1/cm">
-					12.6748973452
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.259259
-				</Q>
-				<I unit="1/cm">
-					0.0132187
-				</I>
-				<Idev unit="1/cm">
-					12.6688673572
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.268519
-				</Q>
-				<I unit="1/cm">
-					0.0336301
-				</I>
-				<Idev unit="1/cm">
-					12.7896396576
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.277778
-				</Q>
-				<I unit="1/cm">
-					0.0672911
-				</I>
-				<Idev unit="1/cm">
-					12.9238421698
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.287037
-				</Q>
-				<I unit="1/cm">
-					0.0788983
-				</I>
-				<Idev unit="1/cm">
-					12.961767502
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.296296
-				</Q>
-				<I unit="1/cm">
-					0.0764438
-				</I>
-				<Idev unit="1/cm">
-					12.9539934251
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.305556
-				</Q>
-				<I unit="1/cm">
-					0.0555445
-				</I>
-				<Idev unit="1/cm">
-					12.8819565414
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.314815
-				</Q>
-				<I unit="1/cm">
-					0.0280548
-				</I>
-				<Idev unit="1/cm">
-					12.7615891659
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.324074
-				</Q>
-				<I unit="1/cm">
-					0.0111798
-				</I>
-				<Idev unit="1/cm">
-					12.6525589596
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.333333
-				</Q>
-				<I unit="1/cm">
-					0.00156156
-				</I>
-				<Idev unit="1/cm">
-					12.5356607533
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.342593
-				</Q>
-				<I unit="1/cm">
-					0.00830883
-				</I>
-				<Idev unit="1/cm">
-					12.6268169381
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.351852
-				</Q>
-				<I unit="1/cm">
-					0.0186266
-				</I>
-				<Idev unit="1/cm">
-					12.7068342924
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.361111
-				</Q>
-				<I unit="1/cm">
-					0.0275426
-				</I>
-				<Idev unit="1/cm">
-					12.7588775151
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.37037
-				</Q>
-				<I unit="1/cm">
-					0.03192
-				</I>
-				<Idev unit="1/cm">
-					12.7813011446
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.37963
-				</Q>
-				<I unit="1/cm">
-					0.0255329
-				</I>
-				<Idev unit="1/cm">
-					12.747986236
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.388889
-				</Q>
-				<I unit="1/cm">
-					0.0175216
-				</I>
-				<Idev unit="1/cm">
-					12.6995784722
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.398148
-				</Q>
-				<I unit="1/cm">
-					0.0073075
-				</I>
-				<Idev unit="1/cm">
-					12.6168093803
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.407407
-				</Q>
-				<I unit="1/cm">
-					0.0016631
-				</I>
-				<Idev unit="1/cm">
-					12.5378931217
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.416667
-				</Q>
-				<I unit="1/cm">
-					0.00224153
-				</I>
-				<Idev unit="1/cm">
-					12.5494803339
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.425926
-				</Q>
-				<I unit="1/cm">
-					0.0051335
-				</I>
-				<Idev unit="1/cm">
-					12.5923848782
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.435185
-				</Q>
-				<I unit="1/cm">
-					0.0112914
-				</I>
-				<Idev unit="1/cm">
-					12.6534882881
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.444444
-				</Q>
-				<I unit="1/cm">
-					0.0138209
-				</I>
-				<Idev unit="1/cm">
-					12.6734391272
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.453704
-				</Q>
-				<I unit="1/cm">
-					0.0137453
-				</I>
-				<Idev unit="1/cm">
-					12.6728707318
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.462963
-				</Q>
-				<I unit="1/cm">
-					0.0106682
-				</I>
-				<Idev unit="1/cm">
-					12.6482380887
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.472222
-				</Q>
-				<I unit="1/cm">
-					0.00532472
-				</I>
-				<Idev unit="1/cm">
-					12.5947190854
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.481481
-				</Q>
-				<I unit="1/cm">
-					0.00230646
-				</I>
-				<Idev unit="1/cm">
-					12.5506822206
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.490741
-				</Q>
-				<I unit="1/cm">
-					0.000335344
-				</I>
-				<Idev unit="1/cm">
-					12.4982278702
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.5
-				</Q>
-				<I unit="1/cm">
-					0.00177224
-				</I>
-				<Idev unit="1/cm">
-					12.5402178421
-				</Idev>
-			</Idata>
-		</SASdata>
-		<SASsample name="">
-			<ID>
-				
-			</ID>
-		</SASsample>
-		<SASinstrument>
-			<name>
-				
-			</name>
-			<SASsource/>
-		</SASinstrument>
-		<pr_inversion version="1.0">
-			<filename>
-				cyl_400_40.txt [Jun 11 08:19]
-			</filename>
-			<timestamp epoch="1244826799.43">
-				Fri Jun 12 13:13:19 2009
-			</timestamp>
-			<inputs>
-				<nterms>
-					29
-				</nterms>
-				<d_max>
-					140.0
-				</d_max>
-				<alpha>
-					2.0
-				</alpha>
-				<slit_width>
-					0.0
-				</slit_width>
-				<slit_height>
-					0.0
-				</slit_height>
-				<qmin>
-					0.0093
-				</qmin>
-				<qmax>
-					0.5
-				</qmax>
-			</inputs>
-			<outputs>
-				<elapsed>
-					0.006
-				</elapsed>
-				<rg>
-					56.0
-				</rg>
-				<iq0>
-					850.0
-				</iq0>
-				<bck>
-					0.0
-				</bck>
-				<chi2>
-					0.61
-				</chi2>
-				<osc>
-					2.8
-				</osc>
-				<pos>
-					1.0
-				</pos>
-				<pos_err>
-					1.0
-				</pos_err>
-				<alpha_estimate>
-					2.0
-				</alpha_estimate>
-				<nterms_estimate>
-					29
-				</nterms_estimate>
-				<coefficients>
-					[  6.41780305e-03   3.16494199e-03   1.10764485e-03  -5.30787531e-05
-   1.96910118e-04   3.00844919e-05   1.40364798e-04  -8.08130307e-05
-   1.16110977e-04  -6.37007868e-05   1.00121813e-04  -9.47865913e-05
-   1.20431555e-04  -1.08604491e-04   1.19505526e-04  -1.28926818e-04
-   1.56968178e-04  -1.49471379e-04   1.39153500e-04  -1.31886026e-04
-   1.22263690e-04  -9.24565675e-05   1.10946228e-04  -4.84770085e-05
-   6.28747370e-05  -2.20003834e-05   4.55970520e-05  -7.56962703e-06
-   3.22299006e-05]
-				</coefficients>
-				<covariance>
-					[[  5.36167986e-09  -3.20170926e-10   1.69773808e-10  -1.32669708e-10
-    1.42673884e-10  -1.28518512e-10   1.07201287e-10  -9.36422447e-11
-    8.89217929e-11  -8.55020790e-11   8.72056415e-11  -8.73390997e-11
-    8.80083436e-11  -8.89723472e-11   8.95727768e-11  -9.75000205e-11
-    1.06939718e-10  -1.04501050e-10   9.37153935e-11  -9.18007277e-11
-    8.29613573e-11  -6.27350522e-11   7.79650897e-11  -3.29821486e-11
-    4.95750605e-11  -1.43164708e-11   3.71054949e-11  -3.68821336e-12
-    2.99522823e-11]
- [ -3.20170926e-10   6.94999572e-09   3.79672368e-11   8.59792033e-11
-   -1.61235233e-10   1.02964969e-10  -5.74128071e-11   4.94598630e-11
-   -3.35407691e-11   8.38707139e-12   8.92496376e-12  -2.01409848e-11
-    3.91414592e-11  -5.78931440e-11   7.18932532e-11  -9.29841220e-11
-    1.17013359e-10  -1.20569429e-10   1.16740218e-10  -1.16330532e-10
-    1.02934971e-10  -7.76386231e-11   8.30795140e-11  -4.05291299e-11
-    3.85696751e-11  -1.72592746e-11   1.79224891e-11  -4.55215071e-12
-    7.54742458e-12]
- [  1.69773808e-10   3.79672368e-11   6.70812821e-09  -2.63652838e-10
-    3.40971509e-10  -2.05067438e-10   1.16289136e-10  -9.72252708e-11
-    6.97320687e-11  -3.06214100e-11   4.96870318e-12   1.06786311e-11
-   -3.92789168e-11   6.48633285e-11  -8.62826574e-11   1.13117855e-10
-   -1.47570963e-10   1.51740633e-10  -1.49196143e-10   1.47253378e-10
-   -1.32597574e-10   9.62319304e-11  -1.07606328e-10   4.71853730e-11
-   -4.97041654e-11   1.82206203e-11  -2.11958201e-11   3.77868694e-12
-   -5.33904606e-12]
- [ -1.32669708e-10   8.59792033e-11  -2.63652838e-10   5.88523459e-09
-   -3.67796835e-10   9.81127458e-11   6.48886577e-12  -4.81673015e-12
-    3.61439738e-11  -8.83028512e-11   1.26867846e-10  -1.49130389e-10
-    1.90057206e-10  -2.29614825e-10   2.59034953e-10  -3.11148467e-10
-    3.72133353e-10  -3.75354684e-10   3.54412851e-10  -3.50719359e-10
-    3.13331644e-10  -2.35139503e-10   2.67607215e-10  -1.22725241e-10
-    1.41884203e-10  -5.23629947e-11   8.37583954e-11  -1.33981193e-11
-    5.27646124e-11]
- [  1.42673884e-10  -1.61235233e-10   3.40971509e-10  -3.67796835e-10
-    8.49428183e-09   3.89417746e-10  -3.78182922e-10   2.65195841e-10
-   -2.86401133e-10   3.58085852e-10  -4.20071326e-10   4.48181906e-10
-   -5.17516290e-10   5.80616884e-10  -6.31073001e-10   7.29358378e-10
-   -8.53191616e-10   8.49165755e-10  -7.91743869e-10   7.78106667e-10
-   -7.03543118e-10   5.18949991e-10  -6.24930936e-10   2.64280468e-10
-   -3.58035703e-10   1.08154093e-10  -2.33284897e-10   2.36293411e-11
-   -1.62873049e-10]
- [ -1.28518512e-10   1.02964969e-10  -2.05067438e-10   9.81127458e-11
-    3.89417746e-10   1.23389221e-08   4.81163639e-10  -2.44798937e-10
-    2.85394041e-10  -3.94720261e-10   4.72379374e-10  -5.09667826e-10
-    5.98093260e-10  -6.84956677e-10   7.44182318e-10  -8.70948538e-10
-    1.01660871e-09  -1.01614564e-09   9.48166369e-10  -9.37901650e-10
-    8.38458572e-10  -6.30889216e-10   7.31136462e-10  -3.34568291e-10
-    4.06487996e-10  -1.45837470e-10   2.58187989e-10  -3.78859157e-11
-    1.78719076e-10]
- [  1.07201287e-10  -5.74128071e-11   1.16289136e-10   6.48886577e-12
-   -3.78182922e-10   4.81163639e-10   1.45430733e-08   1.20381967e-10
-   -2.12417925e-10   3.71032186e-10  -4.57667520e-10   4.94962832e-10
-   -6.06102038e-10   7.00204895e-10  -7.74328875e-10   9.02430491e-10
-   -1.07006963e-09   1.06264059e-09  -1.00059868e-09   9.81590891e-10
-   -8.89219218e-10   6.51910974e-10  -7.80255128e-10   3.36239137e-10
-   -4.33886798e-10   1.42968279e-10  -2.66419152e-10   3.71674472e-11
-   -1.66295648e-10]
- [ -9.36422447e-11   4.94598630e-11  -9.72252708e-11  -4.81673015e-12
-    2.65195841e-10  -2.44798937e-10   1.20381967e-10   1.69598579e-08
-    6.74977366e-10  -6.38829402e-10   6.55694074e-10  -6.71815645e-10
-    7.84621369e-10  -8.92233340e-10   9.58946003e-10  -1.11454894e-09
-    1.29471681e-09  -1.28378871e-09   1.20129838e-09  -1.18751620e-09
-    1.05785926e-09  -8.04812116e-10   9.12424748e-10  -4.50057896e-10
-    4.94724352e-10  -2.18846286e-10   3.00665223e-10  -8.01115759e-11
-    1.88512960e-10]
- [  8.89217929e-11  -3.35407691e-11   6.97320687e-11   3.61439738e-11
-   -2.86401133e-10   2.85394041e-10  -2.12417925e-10   6.74977366e-10
-    2.20626533e-08   1.48747222e-09  -8.60563148e-10   8.12949199e-10
-   -9.62372845e-10   1.06530022e-09  -1.16015735e-09   1.31151485e-09
-   -1.55511555e-09   1.49838396e-09  -1.43745699e-09   1.39018591e-09
-   -1.25883525e-09   9.51905533e-10  -1.06213902e-09   5.75608711e-10
-   -5.26805968e-10   3.47666323e-10  -2.48347916e-10   2.22357210e-10
-   -4.27575376e-11]
- [ -8.55020790e-11   8.38707139e-12  -3.06214100e-11  -8.83028512e-11
-    3.58085852e-10  -3.94720261e-10   3.71032186e-10  -6.38829402e-10
-    1.48747222e-09   2.66591566e-08   8.70876042e-10  -7.19762047e-10
-    1.05166478e-09  -1.06691957e-09   1.32764162e-09  -1.33205137e-09
-    1.82781717e-09  -1.34489346e-09   1.75755292e-09  -1.48808638e-09
-    1.22339416e-09  -1.50998730e-09   1.42284263e-10  -2.06890057e-09
-   -1.19655455e-09  -2.45145695e-09  -2.05456788e-09  -2.80178697e-09
-   -2.70723848e-09]
- [  8.72056415e-11   8.92496376e-12   4.96870318e-12   1.26867846e-10
-   -4.20071326e-10   4.72379374e-10  -4.57667520e-10   6.55694074e-10
-   -8.60563148e-10   8.70876042e-10   3.13783655e-08   6.90069639e-10
-   -1.13498134e-09   1.28680194e-09  -1.46867795e-09   1.61474467e-09
-   -2.02903047e-09   1.82614026e-09  -1.89279847e-09   1.75923856e-09
-   -1.58426913e-09   1.33506804e-09  -1.11871317e-09   1.12092035e-09
-   -2.18225256e-10   1.03610564e-09   2.84934645e-10   1.07033966e-09
-    4.79630064e-09]
- [ -8.73390997e-11  -2.01409848e-11   1.06786311e-11  -1.49130389e-10
-    4.48181906e-10  -5.09667826e-10   4.94962832e-10  -6.71815645e-10
-    8.12949199e-10  -7.19762047e-10   6.90069639e-10   3.73264653e-08
-    1.54361783e-09  -1.78582391e-09   1.73381970e-09  -2.10116064e-09
-    2.31595654e-09  -2.46792065e-09   2.08925570e-09  -2.18755298e-09
-    1.97126664e-09  -1.31564882e-09   2.08464433e-09  -3.27091902e-10
-    1.65358063e-09   2.95896170e-10   1.67294166e-09   7.14407782e-09
-   -1.62799916e-10]
- [  8.80083436e-11   3.91414592e-11  -3.92789168e-11   1.90057206e-10
-   -5.17516290e-10   5.98093260e-10  -6.06102038e-10   7.84621369e-10
-   -9.62372845e-10   1.05166478e-09  -1.13498134e-09   1.54361783e-09
-    4.44219900e-08   1.91124891e-09  -2.00866271e-09   2.17559453e-09
-   -2.76816863e-09   2.44032693e-09  -2.54051633e-09   2.34494261e-09
-   -2.12304683e-09   1.82575271e-09  -1.51168711e-09   1.62862593e-09
-   -2.86194736e-10   1.72133883e-09   1.00601693e-08  -7.63911957e-10
-   -5.90327602e-10]
- [ -8.89723472e-11  -5.78931440e-11   6.48633285e-11  -2.29614825e-10
-    5.80616884e-10  -6.84956677e-10   7.00204895e-10  -8.92233340e-10
-    1.06530022e-09  -1.06691957e-09   1.28680194e-09  -1.78582391e-09
-    1.91124891e-09   5.00744455e-08   1.82680567e-09  -2.45645957e-09
-    2.79609086e-09  -3.05043239e-09   2.49580849e-09  -2.66907791e-09
-    2.42028329e-09  -1.58050149e-09   2.74705308e-09  -2.79987999e-10
-    2.36502992e-09   1.42647323e-08  -9.98760828e-10  -9.59925528e-10
-   -5.32703845e-11]
- [  8.95727768e-11   7.18932532e-11  -8.62826574e-11   2.59034953e-10
-   -6.31073001e-10   7.44182318e-10  -7.74328875e-10   9.58946003e-10
-   -1.16015735e-09   1.32764162e-09  -1.46867795e-09   1.73381970e-09
-   -2.00866271e-09   1.82680567e-09   5.58464309e-08   2.72626743e-09
-   -3.61001275e-09   3.11641110e-09  -3.16094467e-09   2.92038207e-09
-   -2.67799926e-09   2.37022576e-09  -2.14920810e-09   2.34081096e-09
-    1.86476987e-08  -2.44466719e-09  -2.26459750e-09  -9.59815975e-10
-   -8.39868740e-10]
- [ -9.75000205e-11  -9.29841220e-11   1.13117855e-10  -3.11148467e-10
-    7.29358378e-10  -8.70948538e-10   9.02430491e-10  -1.11454894e-09
-    1.31151485e-09  -1.33205137e-09   1.61474467e-09  -2.10116064e-09
-    2.17559453e-09  -2.45645957e-09   2.72626743e-09   6.41311238e-08
-    4.21810399e-09  -4.28734330e-09   3.23938407e-09  -3.51782001e-09
-    3.26907679e-09  -2.24768502e-09   4.57398103e-09   2.69357001e-08
-   -2.85601796e-09  -3.04875765e-09  -1.21742706e-09  -1.29446569e-09
-   -5.75107533e-11]
- [  1.06939718e-10   1.17013359e-10  -1.47570963e-10   3.72133353e-10
-   -8.53191616e-10   1.01660871e-09  -1.07006963e-09   1.29471681e-09
-   -1.55511555e-09   1.82781717e-09  -2.02903047e-09   2.31595654e-09
-   -2.76816863e-09   2.79609086e-09  -3.61001275e-09   4.21810399e-09
-    7.09166325e-08   3.99779665e-09  -3.24603038e-09   3.25711624e-09
-   -3.20359753e-09   2.73477502e-09   3.36929846e-08  -5.80202301e-09
-   -6.60146398e-09  -3.36851715e-09  -3.48918244e-09  -1.45515379e-09
-   -1.26027513e-09]
- [ -1.04501050e-10  -1.20569429e-10   1.51740633e-10  -3.75354684e-10
-    8.49165755e-10  -1.01614564e-09   1.06264059e-09  -1.28378871e-09
-    1.49838396e-09  -1.34489346e-09   1.82614026e-09  -2.46792065e-09
-    2.44032693e-09  -3.05043239e-09   3.11641110e-09  -4.28734330e-09
-    3.99779665e-09   6.88825524e-08   7.20570634e-09  -1.67670708e-09
-   -1.31155060e-09   2.75255363e-08  -1.77158930e-08  -1.63348749e-08
-   -9.99847541e-09  -8.76701248e-09  -4.80097872e-09  -3.59957707e-09
-   -9.39129739e-10]
- [  9.37153935e-11   1.16740218e-10  -1.49196143e-10   3.54412851e-10
-   -7.91743869e-10   9.48166369e-10  -1.00059868e-09   1.20129838e-09
-   -1.43745699e-09   1.75755292e-09  -1.89279847e-09   2.08925570e-09
-   -2.54051633e-09   2.49580849e-09  -3.16094467e-09   3.23938407e-09
-   -3.24603038e-09   7.20570634e-09   6.55656021e-08   5.54466709e-09
-    3.64103328e-08  -1.28661574e-08  -1.37476567e-08  -8.42579934e-09
-   -8.39107419e-09  -4.75080744e-09  -4.34890329e-09  -2.02203376e-09
-   -1.46039337e-09]
- [ -9.18007277e-11  -1.16330532e-10   1.47253378e-10  -3.50719359e-10
-    7.78106667e-10  -9.37901650e-10   9.81590891e-10  -1.18751620e-09
-    1.39018591e-09  -1.48808638e-09   1.75923856e-09  -2.18755298e-09
-    2.34494261e-09  -2.66907791e-09   2.92038207e-09  -3.51782001e-09
-    3.25711624e-09  -1.67670708e-09   5.54466709e-09   1.01230220e-07
-   -2.62583425e-09  -3.65427248e-09  -1.25412108e-09  -3.50782877e-09
-   -5.94002070e-10  -1.84913167e-09  -1.87160661e-10  -7.54719002e-10
-    2.41796063e-10]
- [  8.29613573e-11   1.02934971e-10  -1.32597574e-10   3.13331644e-10
-   -7.03543118e-10   8.38458572e-10  -8.89219218e-10   1.05785926e-09
-   -1.25883525e-09   1.22339416e-09  -1.58426913e-09   1.97126664e-09
-   -2.12304683e-09   2.42028329e-09  -2.67799926e-09   3.26907679e-09
-   -3.20359753e-09  -1.31155060e-09   3.64103328e-08  -2.62583425e-09
-    5.06765326e-08   1.11458057e-08   7.98755599e-09   8.53557702e-09
-    4.36576395e-09   4.40375611e-09   1.95888234e-09   1.74265659e-09
-    2.22871420e-10]
- [ -6.27350522e-11  -7.76386231e-11   9.62319304e-11  -2.35139503e-10
-    5.18949991e-10  -6.30889216e-10   6.51910974e-10  -8.04812116e-10
-    9.51905533e-10  -1.50998730e-09   1.33506804e-09  -1.31564882e-09
-    1.82575271e-09  -1.58050149e-09   2.37022576e-09  -2.24768502e-09
-    2.73477502e-09   2.75255363e-08  -1.28661574e-08  -3.65427248e-09
-    1.11458057e-08   5.64908344e-08   3.11685074e-08   2.17472346e-08
-    1.78585345e-08   1.18761747e-08   8.82924330e-09   4.89006736e-09
-    2.51309179e-09]
- [  7.79650897e-11   8.30795140e-11  -1.07606328e-10   2.67607215e-10
-   -6.24930936e-10   7.31136462e-10  -7.80255128e-10   9.12424748e-10
-   -1.06213902e-09   1.42284263e-10  -1.11871317e-09   2.08464433e-09
-   -1.51168711e-09   2.74705308e-09  -2.14920810e-09   4.57398103e-09
-    3.36929846e-08  -1.77158930e-08  -1.37476567e-08  -1.25412108e-09
-    7.98755599e-09   3.11685074e-08   8.14000416e-08   5.22440021e-08
-    3.65474879e-08   2.78035390e-08   1.78852880e-08   1.13664890e-08
-    4.42157514e-09]
- [ -3.29821486e-11  -4.05291299e-11   4.71853730e-11  -1.22725241e-10
-    2.64280468e-10  -3.34568291e-10   3.36239137e-10  -4.50057896e-10
-    5.75608711e-10  -2.06890057e-09   1.12092035e-09  -3.27091902e-10
-    1.62862593e-09  -2.79987999e-10   2.34081096e-09   2.69357001e-08
-   -5.80202301e-09  -1.63348749e-08  -8.42579934e-09  -3.50782877e-09
-    8.53557702e-09   2.17472346e-08   5.22440021e-08   8.04752904e-08
-    5.42511785e-08   3.84030821e-08   2.66104436e-08   1.58379096e-08
-    7.08595235e-09]
- [  4.95750605e-11   3.85696751e-11  -4.97041654e-11   1.41884203e-10
-   -3.58035703e-10   4.06487996e-10  -4.33886798e-10   4.94724352e-10
-   -5.26805968e-10  -1.19655455e-09  -2.18225256e-10   1.65358063e-09
-   -2.86194736e-10   2.36502992e-09   1.86476987e-08  -2.85601796e-09
-   -6.60146398e-09  -9.99847541e-09  -8.39107419e-09  -5.94002070e-10
-    4.36576395e-09   1.78585345e-08   3.65474879e-08   5.42511785e-08
-    7.00065497e-08   4.85487842e-08   3.21995798e-08   1.98978762e-08
-    8.30491194e-09]
- [ -1.43164708e-11  -1.72592746e-11   1.82206203e-11  -5.23629947e-11
-    1.08154093e-10  -1.45837470e-10   1.42968279e-10  -2.18846286e-10
-    3.47666323e-10  -2.45145695e-09   1.03610564e-09   2.95896170e-10
-    1.72133883e-09   1.42647323e-08  -2.44466719e-09  -3.04875765e-09
-   -3.36851715e-09  -8.76701248e-09  -4.75080744e-09  -1.84913167e-09
-    4.40375611e-09   1.18761747e-08   2.78035390e-08   3.84030821e-08
-    4.85487842e-08   5.79311209e-08   3.88041625e-08   2.31612576e-08
-    1.02219793e-08]
- [  3.71054949e-11   1.79224891e-11  -2.11958201e-11   8.37583954e-11
-   -2.33284897e-10   2.58187989e-10  -2.66419152e-10   3.00665223e-10
-   -2.48347916e-10  -2.05456788e-09   2.84934645e-10   1.67294166e-09
-    1.00601693e-08  -9.98760828e-10  -2.26459750e-09  -1.21742706e-09
-   -3.48918244e-09  -4.80097872e-09  -4.34890329e-09  -1.87160661e-10
-    1.95888234e-09   8.82924330e-09   1.78852880e-08   2.66104436e-08
-    3.21995798e-08   3.88041625e-08   4.32691059e-08   2.66064931e-08
-    1.11577286e-08]
- [ -3.68821336e-12  -4.55215071e-12   3.77868694e-12  -1.33981193e-11
-    2.36293411e-11  -3.78859157e-11   3.71674472e-11  -8.01115759e-11
-    2.22357210e-10  -2.80178697e-09   1.07033966e-09   7.14407782e-09
-   -7.63911957e-10  -9.59925528e-10  -9.59815975e-10  -1.29446569e-09
-   -1.45515379e-09  -3.59957707e-09  -2.02203376e-09  -7.54719002e-10
-    1.74265659e-09   4.89006736e-09   1.13664890e-08   1.58379096e-08
-    1.98978762e-08   2.31612576e-08   2.66064931e-08   2.84850397e-08
-    1.29670416e-08]
- [  2.99522823e-11   7.54742458e-12  -5.33904606e-12   5.27646124e-11
-   -1.62873049e-10   1.78719076e-10  -1.66295648e-10   1.88512960e-10
-   -4.27575376e-11  -2.70723848e-09   4.79630064e-09  -1.62799916e-10
-   -5.90327602e-10  -5.32703845e-11  -8.39868740e-10  -5.75107533e-11
-   -1.26027513e-09  -9.39129739e-10  -1.46039337e-09   2.41796063e-10
-    2.22871420e-10   2.51309179e-09   4.42157514e-09   7.08595235e-09
-    8.30491194e-09   1.02219793e-08   1.11577286e-08   1.29670416e-08
-    1.23645969e-08]]
-				</covariance>
-			</outputs>
-		</pr_inversion>
-	</SASentry>
-</SASroot>
Index: prview/src/setup.py
===================================================================
--- prview/src/setup.py	(revision 592cf5755b1c4fad2e1c47ce98bdbc09727cb1f3)
+++ prview/src/setup.py	(revision 4851fcbcfbc58217382fcfbec6bf67d8fc72b5c8)
@@ -2,14 +2,16 @@
      Installation script for DANSE P(r) inversion perspective for SansView
 """
-
+import os
 from distutils.core import setup
 setup(
-    version = "0.9.1",
-    name="prview",
-    description = "P(r) inversion perspective for SansView",
-    package_dir = {"sans.perspectives":"sans/perspectives",
+      version="0.9.1",
+      name="prview",
+      description="P(r) inversion perspective for SansView",
+      package_dir={"sans.perspectives":"sans/perspectives",
                    "sans.perspectives.pr":"sans/perspectives/pr"},
-    packages = ["sans.perspectives",
+      packages=["sans.perspectives","sans",
                 "sans.perspectives.pr"],
+      package_data={"sans.perspectives.pr":['images/*']},
+      scripts= [os.path.join("bin", "PrView.py")],
     )
 
Index: prview/src/setup_exe.py
===================================================================
--- prview/src/setup_exe.py	(revision 524614bb9fec4460d54f825e80ce4733a9bf219f)
+++ prview/src/setup_exe.py	(revision 4851fcbcfbc58217382fcfbec6bf67d8fc72b5c8)
@@ -14,5 +14,6 @@
 # See for example the 'images' directory below.
 
-import os, sys
+import os
+import sys
 
 # When using the SansView build script, we need to be able to pass
Index: prview/src/testons.prv
===================================================================
--- prview/src/testons.prv	(revision e29281af9492559ee40915c3c2574b903c144737)
+++ 	(revision )
@@ -1,671 +1,0 @@
-<?xml version="1.0" ?>
-<SASroot version="1.0" xmlns="cansas1d/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="cansas1d/1.0 http://svn.smallangles.net/svn/canSAS/1dwg/trunk/cansas1d.xsd">
-	<SASentry>
-		<Title>
-			
-		</Title>
-		<SASdata>
-			<Idata>
-				<Q unit="1/A">
-					0.01
-				</Q>
-				<I unit="1/cm">
-					130173000.0
-				</I>
-				<Idev unit="1/cm">
-					7810380.0
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.02
-				</Q>
-				<I unit="1/cm">
-					95956500.0
-				</I>
-				<Idev unit="1/cm">
-					6889874.92352
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.03
-				</Q>
-				<I unit="1/cm">
-					55775400.0
-				</I>
-				<Idev unit="1/cm">
-					5562144.04801
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.04
-				</Q>
-				<I unit="1/cm">
-					23720800.0
-				</I>
-				<Idev unit="1/cm">
-					4080132.28297
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.05
-				</Q>
-				<I unit="1/cm">
-					6025700.0
-				</I>
-				<Idev unit="1/cm">
-					2702072.32074
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.06
-				</Q>
-				<I unit="1/cm">
-					332209.0
-				</I>
-				<Idev unit="1/cm">
-					1630533.29286
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.07
-				</Q>
-				<I unit="1/cm">
-					335963.0
-				</I>
-				<Idev unit="1/cm">
-					1632385.83164
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.08
-				</Q>
-				<I unit="1/cm">
-					1037490.0
-				</I>
-				<Idev unit="1/cm">
-					1882791.92822
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.09
-				</Q>
-				<I unit="1/cm">
-					816241.0
-				</I>
-				<Idev unit="1/cm">
-					1817124.36283
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.1
-				</Q>
-				<I unit="1/cm">
-					234630.0
-				</I>
-				<Idev unit="1/cm">
-					1578056.30616
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.11
-				</Q>
-				<I unit="1/cm">
-					230.644
-				</I>
-				<Idev unit="1/cm">
-					1310393.66282
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.12
-				</Q>
-				<I unit="1/cm">
-					100168.0
-				</I>
-				<Idev unit="1/cm">
-					1482278.9481
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.13
-				</Q>
-				<I unit="1/cm">
-					182129.0
-				</I>
-				<Idev unit="1/cm">
-					1545185.73682
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.14
-				</Q>
-				<I unit="1/cm">
-					111803.0
-				</I>
-				<Idev unit="1/cm">
-					1492476.76877
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.15
-				</Q>
-				<I unit="1/cm">
-					16326.8
-				</I>
-				<Idev unit="1/cm">
-					1374622.18985
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.16
-				</Q>
-				<I unit="1/cm">
-					6931.71
-				</I>
-				<Idev unit="1/cm">
-					1349225.30203
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.17
-				</Q>
-				<I unit="1/cm">
-					45283.6
-				</I>
-				<Idev unit="1/cm">
-					1423125.03761
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.18
-				</Q>
-				<I unit="1/cm">
-					50971.8
-				</I>
-				<Idev unit="1/cm">
-					1430523.94514
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.19
-				</Q>
-				<I unit="1/cm">
-					19812.5
-				</I>
-				<Idev unit="1/cm">
-					1382027.14445
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.2
-				</Q>
-				<I unit="1/cm">
-					146.532
-				</I>
-				<Idev unit="1/cm">
-					1308635.52497
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.21
-				</Q>
-				<I unit="1/cm">
-					9676.19
-				</I>
-				<Idev unit="1/cm">
-					1357845.47649
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.22
-				</Q>
-				<I unit="1/cm">
-					21749.2
-				</I>
-				<Idev unit="1/cm">
-					1385860.23552
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.23
-				</Q>
-				<I unit="1/cm">
-					15602.5
-				</I>
-				<Idev unit="1/cm">
-					1372987.00373
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.24
-				</Q>
-				<I unit="1/cm">
-					2700.12
-				</I>
-				<Idev unit="1/cm">
-					1331372.98909
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.25
-				</Q>
-				<I unit="1/cm">
-					1044.09
-				</I>
-				<Idev unit="1/cm">
-					1320163.14458
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.26
-				</Q>
-				<I unit="1/cm">
-					8110.76
-				</I>
-				<Idev unit="1/cm">
-					1353106.11219
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.27
-				</Q>
-				<I unit="1/cm">
-					10054.2
-				</I>
-				<Idev unit="1/cm">
-					1358931.07902
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.28
-				</Q>
-				<I unit="1/cm">
-					4251.65
-				</I>
-				<Idev unit="1/cm">
-					1338927.11129
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.29
-				</Q>
-				<I unit="1/cm">
-					38.5548
-				</I>
-				<Idev unit="1/cm">
-					1305272.17235
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.3
-				</Q>
-				<I unit="1/cm">
-					2295.45
-				</I>
-				<Idev unit="1/cm">
-					1329061.55744
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.31
-				</Q>
-				<I unit="1/cm">
-					5499.87
-				</I>
-				<Idev unit="1/cm">
-					1344036.45865
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.32
-				</Q>
-				<I unit="1/cm">
-					4158.67
-				</I>
-				<Idev unit="1/cm">
-					1338518.12818
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.33
-				</Q>
-				<I unit="1/cm">
-					752.025
-				</I>
-				<Idev unit="1/cm">
-					1317373.95653
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.34
-				</Q>
-				<I unit="1/cm">
-					308.434
-				</I>
-				<Idev unit="1/cm">
-					1311748.70489
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.35
-				</Q>
-				<I unit="1/cm">
-					2475.65
-				</I>
-				<Idev unit="1/cm">
-					1330114.09711
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.36
-				</Q>
-				<I unit="1/cm">
-					3174.91
-				</I>
-				<Idev unit="1/cm">
-					1333873.72254
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.37
-				</Q>
-				<I unit="1/cm">
-					1380.1
-				</I>
-				<Idev unit="1/cm">
-					1322922.6731
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.38
-				</Q>
-				<I unit="1/cm">
-					11.2373
-				</I>
-				<Idev unit="1/cm">
-					1303642.32388
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.39
-				</Q>
-				<I unit="1/cm">
-					815.932
-				</I>
-				<Idev unit="1/cm">
-					1318025.11554
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.4
-				</Q>
-				<I unit="1/cm">
-					1988.73
-				</I>
-				<Idev unit="1/cm">
-					1327170.07421
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.41
-				</Q>
-				<I unit="1/cm">
-					1531.36
-				</I>
-				<Idev unit="1/cm">
-					1324053.85077
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.42
-				</Q>
-				<I unit="1/cm">
-					276.75
-				</I>
-				<Idev unit="1/cm">
-					1311220.1762
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.43
-				</Q>
-				<I unit="1/cm">
-					127.297
-				</I>
-				<Idev unit="1/cm">
-					1308166.34842
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.44
-				</Q>
-				<I unit="1/cm">
-					1001.82
-				</I>
-				<Idev unit="1/cm">
-					1319786.15649
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.45
-				</Q>
-				<I unit="1/cm">
-					1297.13
-				</I>
-				<Idev unit="1/cm">
-					1322275.76012
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.46
-				</Q>
-				<I unit="1/cm">
-					566.229
-				</I>
-				<Idev unit="1/cm">
-					1315304.58357
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.47
-				</Q>
-				<I unit="1/cm">
-					3.50245
-				</I>
-				<Idev unit="1/cm">
-					1302797.61934
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.48
-				</Q>
-				<I unit="1/cm">
-					365.098
-				</I>
-				<Idev unit="1/cm">
-					1312630.21811
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.49
-				</Q>
-				<I unit="1/cm">
-					887.09
-				</I>
-				<Idev unit="1/cm">
-					1318720.81859
-				</Idev>
-			</Idata>
-			<Idata>
-				<Q unit="1/A">
-					0.5
-				</Q>
-				<I unit="1/cm">
-					684.787
-				</I>
-				<Idev unit="1/cm">
-					1316658.22646
-				</Idev>
-			</Idata>
-		</SASdata>
-		<SASsample name="">
-			<ID>
-				
-			</ID>
-		</SASsample>
-		<SASinstrument>
-			<name>
-				
-			</name>
-			<SASsource/>
-		</SASinstrument>
-		<pr_inversion version="1.0">
-			<filename>
-				sphere_test_data.txt
-			</filename>
-			<timestamp epoch="1297891667.32">
-				Wed Feb 16 16:27:47 2011
-			</timestamp>
-			<inputs>
-				<nterms>
-					10
-				</nterms>
-				<d_max>
-					140.0
-				</d_max>
-				<alpha>
-					0.0001
-				</alpha>
-				<slit_width>
-					0
-				</slit_width>
-				<slit_height>
-					0
-				</slit_height>
-				<qmin>
-					0.01
-				</qmin>
-				<qmax>
-					0.5
-				</qmax>
-			</inputs>
-			<outputs>
-				<elapsed>
-					0.015
-				</elapsed>
-				<rg>
-					62.4109796365
-				</rg>
-				<iq0>
-					91000000.0
-				</iq0>
-				<bck>
-					0.0
-				</bck>
-				<chi2>
-					290.0
-				</chi2>
-				<osc>
-					1.2
-				</osc>
-				<pos>
-					1.0
-				</pos>
-				<pos_err>
-					1.0
-				</pos_err>
-				<alpha_estimate>
-					8e-015
-				</alpha_estimate>
-				<nterms_estimate>
-					25
-				</nterms_estimate>
-				<coefficients>
-					[  5.76896693e+02   2.96867893e+00   1.52247673e+01  -4.81515836e+00
-   5.70560625e-01  -2.81535006e+00  -6.18771256e-01  -1.54554218e+00
-  -4.28600702e-01  -7.01684311e-01]
-				</coefficients>
-				<covariance>
-					[[  7.33134867e+03   2.68465397e+01   1.51208426e+02  -7.09433110e+01
-    1.58503520e+00  -3.73771057e+01  -8.90118965e+00  -1.98279033e+01
-   -5.59860896e+00  -8.84579877e+00]
- [  2.68465397e+01   1.34729384e+03   2.66555908e+02   8.36168242e+01
-    1.40629013e+01   7.88808782e+00  -3.20400761e+00  -4.48802579e-01
-   -2.61133640e+00   3.62410816e-01]
- [  1.51208426e+02   2.66555908e+02   4.02976930e+02   1.41900441e+02
-    4.95313912e+01   1.84654556e+01   7.43499345e+00   2.02632334e+00
-    5.42202539e-01  -3.09987307e-01]
- [ -7.09433110e+01   8.36168242e+01   1.41900441e+02   1.80150194e+02
-    7.95526073e+01   3.37461769e+01   1.52586311e+01   7.15267060e+00
-    2.89176053e+00   1.04230518e+00]
- [  1.58503520e+00   1.40629013e+01   4.95313912e+01   7.95526073e+01
-    9.31450376e+01   4.73587127e+01   2.21366264e+01   1.08088332e+01
-    4.89962892e+00   1.63398301e+00]
- [ -3.73771057e+01   7.88808782e+00   1.84654556e+01   3.37461769e+01
-    4.73587127e+01   5.36171439e+01   2.93393915e+01   1.43741803e+01
-    6.80151528e+00   2.38290291e+00]
- [ -8.90118965e+00  -3.20400761e+00   7.43499345e+00   1.52586311e+01
-    2.21366264e+01   2.93393915e+01   3.22235902e+01   1.80782074e+01
-    8.45825575e+00   3.04571990e+00]
- [ -1.98279033e+01  -4.48802579e-01   2.02632334e+00   7.15267060e+00
-    1.08088332e+01   1.43741803e+01   1.80782074e+01   1.93608358e+01
-    1.03295070e+01   3.59786399e+00]
- [ -5.59860896e+00  -2.61133640e+00   5.42202539e-01   2.89176053e+00
-    4.89962892e+00   6.80151528e+00   8.45825575e+00   1.03295070e+01
-    1.07269952e+01   4.38291116e+00]
- [ -8.84579877e+00   3.62410816e-01  -3.09987307e-01   1.04230518e+00
-    1.63398301e+00   2.38290291e+00   3.04571990e+00   3.59786399e+00
-    4.38291116e+00   4.03303494e+00]]
-				</covariance>
-			</outputs>
-		</pr_inversion>
-	</SASentry>
-</SASroot>
