Changeset 37d53225 in sasview for src/sas/sasgui/perspectives


Ignore:
Timestamp:
Jul 18, 2017 10:55:35 AM (7 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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
7dda833
Parents:
626f833
Message:

Implement computation of IDF

Location:
src/sas/sasgui/perspectives/corfunc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/corfunc/corfunc.py

    r463e7ffc r37d53225  
    189189            # Show the transformation as a curve instead of points 
    190190            new_plot.symbol = GUIFRAME_ID.CURVE_SYMBOL_NUM 
     191        elif label == IDF_LABEL: 
     192            new_plot.xaxis("{x}", 'A') 
     193            new_plot.yaxis("{G}", '') 
     194 
     195            new_plot.xtransform = 'x' 
     196            new_plot.ytransform = 'y' 
     197            group_id = GROUP_ID_IDF 
     198            new_plot.symbol = GUIFRAME_ID.CURVE_SYMBOL_NUM 
    191199        new_plot.id = label 
    192200        new_plot.name = label 
  • src/sas/sasgui/perspectives/corfunc/corfunc_panel.py

    r7cde638 r37d53225  
    276276            return 
    277277        self._transformed_data = transforms 
    278         (transform1, transform3) = transforms 
     278        (transform1, transform3, idf) = transforms 
    279279        import numpy as np 
    280280        plot_x = transform1.x[np.where(transform1.x <= 200)] 
     
    283283        # No need to shorten gamma3 as it's only calculated up to x=200 
    284284        self._manager.show_data(transform3, TRANSFORM_LABEL3) 
     285        self._manager.show_data(idf, IDF_LABEL) 
    285286        # Only enable extract params button if a fourier trans. has been done 
    286287        if self.transform_type == 'fourier': 
  • src/sas/sasgui/perspectives/corfunc/plot_labels.py

    r03e3902 r37d53225  
    66TRANSFORM_LABEL1 = r"$\Gamma_1(x)$" 
    77TRANSFORM_LABEL3 = r"$\Gamma_3(x)$" 
     8 
     9GROUP_ID_IDF = r"$G(x)$" 
     10IDF_LABEL = r"$G(x)$" 
Note: See TracChangeset for help on using the changeset viewer.