Changeset 9a15a87 in sasview


Ignore:
Timestamp:
Aug 22, 2016 4:08:36 AM (8 years ago)
Author:
lewis
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
c97d76a
Parents:
6f343e3 (diff), 525aaa2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into corfunc

Files:
22 added
8 edited

Legend:

Unmodified
Added
Removed
  • docs/sphinx-docs/source/conf.py

    refc27a7 r4394be16  
    6262version = '4.0.0' 
    6363# The full version, including alpha/beta/rc tags. 
    64 release = '4.0.0-alpha' 
     64release = '4.0.0-beta' 
    6565 
    6666# The language for content autogenerated by Sphinx. Refer to documentation 
  • sasview/README.txt

    r243fbc0 ree6d4ad  
    441- Features 
    55=========== 
     6 
     7    - New in Version 4.0.0-beta 
     8      -------------------- 
     9      This beta adds support for the magnetic and multilevel models of 3.1.2 
     10      and along with a host of bug fixes found in the alpha. 
     11 
     12      - Model package changes and improvements 
     13         - All 3.1.2 models now available in new interface 
     14         - Old custom models should now still work 
     15            - '''NOTE:''' These will be deprecated in a future version. Old 
     16            custom models should be converted to the new model format which  
     17            is now the same as the built in models and offers much better 
     18            support. 
     19         - Custom model editor now creates new style models 
     20         - Custom model editor supports better error checking 
     21      - Documentation improvements 
     22        - Continued general cleanup 
     23      - Other improvements/additions 
     24         - Support for new canSAS 2D data files added 
     25         - Plot axes range can now be set manually as well as by zooming 
     26         - Plot annotations can now be moved around after being placed on plot. 
     27         - The active optimizer is now listed on the top of the fit panel. 
     28         - Linear fits now update qmin and max when the x scale limits are 
     29         changed.  Also the plot range no longer resets after a fit. 
     30      - Bug fixes 
     31         - Fixes bug #511 Errors in linearized fits and clean up of interface 
     32         including Kratky representation 
     33         - Fixes bug #186 Data operation Tool now executes when something is 
     34         entered in the text box and does not wait for the user to hit enter 
     35         - Fixes bug #459 plot context menu bug 
     36         - Fixes bug #559 copy to clipboard in graph menu broken 
     37         - Fixes bug #466 cannot remove a linear fit from graph 
     38         - Numerous bugs introduced in the alpha 
     39 
     40 
    641 
    742    - New in Version 4.0.0-alpha 
  • sasview/__init__.py

    r801a296 r4394be16  
    1 __version__ = "4.0.0-alpha" 
     1__version__ = "4.0.0-beta" 
    22__build__ = "GIT_COMMIT" 
    33try: 
  • sasview/installer_generator.py

    r09afe90 r525aaa2  
    199199    msg += """Source: "dist\plugin_models\*";\tDestDir: "{userdesktop}\..\.sasview\plugin_models";\t""" 
    200200    msg += """Flags: recursesubdirs createallsubdirs\n"""  
     201    msg += """Source: "dist\compiled_models\*";\tDestDir: "{userdesktop}\..\.sasmodels\compiled_models";\t""" 
     202    msg += """Flags: recursesubdirs createallsubdirs\n""" 
    201203    msg += """Source: "dist\config\custom_config.py";\tDestDir: "{userdesktop}\..\.sasview\config";\t"""  
    202204    msg += """Flags: recursesubdirs createallsubdirs\n""" 
  • sasview/setup_exe.py

    r09afe90 r525aaa2  
    209209data_files += guiframe.data_files() 
    210210 
     211# precompile sas models into the sasview build path; doesn't matter too much 
     212# where it is so long as it is a place that will get cleaned up afterwards. 
     213import sasmodels.core 
     214dll_path = os.path.join(build_path, 'compiled_models') 
     215compiled_dlls = sasmodels.core.precompile_dlls(dll_path, dtype='double') 
     216 
     217# include the compiled models as data; coordinate the target path for the 
     218# data with installer_generator.py 
     219data_files.append(('compiled_models', compiled_dlls)) 
     220 
    211221import sasmodels 
    212222data_files += sasmodels.data_files() 
  • docs/sphinx-docs/source/user/analysis.rst

    r8f46df7 r0390040  
    66.. toctree:: 
    77   :maxdepth: 1 
    8     
     8 
    99   Model Fitting <sasgui/perspectives/fitting/fitting> 
    10     
     10 
    1111   P(r) Inversion <sasgui/perspectives/pr/pr_help> 
    12     
     12 
    1313   Invariant Calculation <sasgui/perspectives/invariant/invariant_help> 
     14 
     15   Correlation Function <sasgui/perspectives/corfunc/corfunc_help> 
  • sasview/sasview.py

    rcde6e52 r2387abc  
    148148            logging.error(traceback.format_exc()) 
    149149 
     150        # Corfunc perspective 
     151        try: 
     152            import sas.sasgui.perspectives.corfunc as module 
     153            corfunc_plug = module.Plugin() 
     154            self.gui.add_perspective(corfunc_plug) 
     155        except: 
     156            logging.error("Unable to load corfunc module") 
     157 
    150158        #Calculator perspective 
    151159        try: 
  • src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter1D.py

    r895c9cb r2387abc  
    9595        self.parent.SetFocus() 
    9696 
     97        # If true, there are 3 qrange bars 
     98        self.is_corfunc = False 
     99 
    97100 
    98101    def get_symbol_label(self): 
     
    214217        if active_ctrl == None: 
    215218            return 
     219        if hasattr(event, 'is_corfunc'): 
     220            self.is_corfunc = event.is_corfunc 
    216221        if event.id in self.plots.keys(): 
    217222            ctrl = event.ctrl 
     
    222227            values = [max(x_data.min(), float(ctrl[0].GetValue())), 
    223228                      min(x_data.max(), float(ctrl[1].GetValue()))] 
     229            if len(ctrl) == 3: 
     230                colors.append('purple') 
     231                values.append(min(x_data.max(), float(ctrl[2].GetValue()))) 
    224232            if self.ly == None: 
    225233                self.ly = [] 
     
    293301        ly0x = ly[0].get_xdata() 
    294302        ly1x = ly[1].get_xdata() 
     303        ly2x = None 
     304        if self.is_corfunc: ly2x = ly[2].get_xdata() 
    295305        self.q_ctrl[0].SetBackgroundColour('white') 
    296306        self.q_ctrl[1].SetBackgroundColour('white') 
     
    306316                self.q_ctrl[0].SetValue(str(pos_x)) 
    307317                self.q_ctrl[1].SetBackgroundColour('pink') 
     318        elif ly2x is not None and ly1x >= ly2x: 
     319            if self.vl_ind == 1: 
     320                ly[2].set_xdata(posx) 
     321                ly[2].set_zorder(nop) 
     322                self.q_ctrl[2].SetValue(str(pos_x)) 
     323            elif self.vl_ind == 2: 
     324                ly[1].set_xdata(posx) 
     325                ly[1].set_zorder(nop) 
     326                self.q_ctrl[1].SetValue(str(pos_x)) 
     327 
    308328 
    309329    def _get_cusor_lines(self, event): 
     
    325345            dqmin = math.fabs(event.xdata - self.ly[0].get_xdata()) 
    326346            dqmax = math.fabs(event.xdata - self.ly[1].get_xdata()) 
    327             is_qmax = dqmin > dqmax 
    328             if is_qmax: 
    329                 self.vl_ind = 1 
     347            if not self.is_corfunc: 
     348                is_qmax = dqmin > dqmax 
     349                if is_qmax: 
     350                    self.vl_ind = 1 
     351                else: 
     352                    self.vl_ind = 0 
    330353            else: 
    331                 self.vl_ind = 0 
     354                dqmax2 = math.fabs(event.xdata - self.ly[2].get_xdata()) 
     355                closest = min(dqmin, dqmax, dqmax2) 
     356                self.vl_ind = { dqmin: 0, dqmax: 1, dqmax2: 2 }.get(closest) 
    332357 
    333358    def cusor_line(self, event): 
Note: See TracChangeset for help on using the changeset viewer.