1 | ################################################################################ |
---|
2 | #SasView was developed by the University of Tennessee as part of the |
---|
3 | #Distributed Data Analysis of Neutron Scattering Experiments (DANSE) project |
---|
4 | #funded by the US National Science Foundation. |
---|
5 | #copyright 2008, University of Tennessee |
---|
6 | ################################################################################ |
---|
7 | #The set of routines that comprise this CORFUNC module were originally written |
---|
8 | #in 1994 at the behest of Anthony (Tony) Ryan by Thomas (Tom) Nye whilst an |
---|
9 | #undergraduate in Applied Mathematics at the University of Cambridge, and are |
---|
10 | #based on the earlier work of Gert Strobl (Universitat Freiburg) and co-workers |
---|
11 | #in the 1980's. The polydispersity analysis was proposed later by Guy Eeckhaut |
---|
12 | #(ICI). |
---|
13 | # |
---|
14 | #The original UNIX source was ported to the Windows environment (and given |
---|
15 | #a Java GUI) as part of Collaborative Computational Project #13, funded by the |
---|
16 | #UK Biotechnology & Biological Sciences Research Council and Engineering & |
---|
17 | #Physical Sciences Research Council, by CCP13 Post-Doctoral workers Richard |
---|
18 | #Denny and Mark Shotton in 1999. |
---|
19 | # |
---|
20 | #The alternative Hilbert transform (volume fraction profile) analysis of |
---|
21 | #Trevor Crowley (Salford University) and co-workers was suggested by Stephen |
---|
22 | #(Steve) King (ISIS Facility). Its incorporation was started by CCP13 Post- |
---|
23 | #Doctoral worker Matthew Rodman and finally implemented in 2004 by Steve King |
---|
24 | #and Damian Flannery (ISIS Facility), with help from Richard Heenan (ISIS |
---|
25 | #Facility). |
---|
26 | # |
---|
27 | #Copyright 2013, UK Science & Technology Facilities Council |
---|
28 | ################################################################################ |
---|
29 | |
---|
30 | """ |
---|
31 | This module implements correlation function analysis or calculates volume |
---|
32 | fraction profiles. |
---|
33 | |
---|
34 | :author: Steve King/ISIS |
---|
35 | |
---|
36 | """ |
---|
37 | import sys |
---|
38 | import wx |
---|
39 | import copy |
---|
40 | import logging |
---|
41 | |
---|
42 | from sans.guiframe.dataFitting import Data1D |
---|
43 | from sans.guiframe.events import NewPlotEvent |
---|
44 | from sans.guiframe.events import StatusEvent |
---|
45 | from sans.guiframe.gui_style import GUIFRAME_ID |
---|
46 | from sans.dataloader.loader import Loader |
---|
47 | from sans.guiframe.plugin_base import PluginBase |
---|
48 | |
---|
49 | class Plugin(PluginBase): |
---|
50 | """ |
---|
51 | This class defines the interface for Corfunc Plugin class |
---|
52 | that can be used by the gui_manager. |
---|
53 | """ |
---|
54 | |
---|
55 | def __init__(self, standalone=False): |
---|
56 | PluginBase.__init__(self, name="Corfunc", standalone=standalone) |
---|
57 | |
---|
58 | #dictionary containing data name and error on dy of that data |
---|
59 | # self.err_dy = {} |
---|
60 | |
---|
61 | #default state objects |
---|
62 | self.state_reader = None |
---|
63 | self._extensions = None |
---|
64 | self.temp_state = None |
---|
65 | self.__data = None |
---|
66 | |
---|
67 | # Log startup |
---|
68 | logging.info("Corfunc plug-in started") |
---|