Changeset 1b0707e1 in sasview for sansrealspace/src/realspace


Ignore:
Timestamp:
Sep 27, 2007 2:52:46 PM (17 years ago)
Author:
Mathieu Doucet <doucetm@…>
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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
f98961f
Parents:
02cb31a
Message:

Unit tests for simulation of oriented systems

Location:
sansrealspace/src/realspace/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansrealspace/src/realspace/test/early_test.py

    r02cb31a r1b0707e1  
    233233     
    234234    ana = ana.runXY([0.1, 0.01]) 
    235     sim = math.pi/2*model.getIq2D(0.1, 0.01) 
     235    sim = model.getIq2D(0.1, 0.01) 
    236236    print model.npts 
    237237    print ana, sim, sim/ana, ana/sim 
  • sansrealspace/src/realspace/test/utest_oriented.py

    r02cb31a r1b0707e1  
    9696         
    9797        ana_val = self.ana.runXY([0.1, 0.2]) 
    98         sim_val = math.pi/2 * self.model.getIq2D(0.1, 0.2) 
     98        sim_val = self.model.getIq2D(0.1, 0.2) 
    9999        #print ana_val, sim_val, sim_val/ana_val 
    100100         
     
    109109         
    110110        ana_val = self.ana.runXY([0.1, 0.2]) 
    111         sim_val = math.pi/2 * self.model.getIq2D(0.1, 0.2) 
     111        sim_val = self.model.getIq2D(0.1, 0.2) 
    112112        #print ana_val, sim_val, sim_val/ana_val 
    113113         
     
    122122         
    123123        ana_val = self.ana.runXY([0.1, 0.2]) 
    124         sim_val = math.pi/2 * self.model.getIq2D(0.1, 0.2) 
     124        sim_val = self.model.getIq2D(0.1, 0.2) 
    125125        #print ana_val, sim_val, sim_val/ana_val 
    126126         
     
    165165         
    166166        ana_val = self.ana.runXY([0.1, 0.2]) 
    167         sim_val = math.pi/2 * self.canvas.getIq2D(0.1, 0.2) 
     167        sim_val = self.canvas.getIq2D(0.1, 0.2) 
    168168        #print ana_val, sim_val, sim_val/ana_val 
    169169         
     
    178178         
    179179        ana_val = self.ana.runXY([0.1, 0.2]) 
    180         sim_val = math.pi/2 * self.canvas.getIq2D(0.1, 0.2) 
     180        sim_val = self.canvas.getIq2D(0.1, 0.2) 
    181181        #print ana_val, sim_val, sim_val/ana_val 
    182182         
     
    191191         
    192192        ana_val = self.ana.runXY([0.05, 0.15]) 
    193         sim_val = math.pi/2 * self.canvas.getIq2D(0.05, 0.15) 
     193        sim_val = self.canvas.getIq2D(0.05, 0.15) 
    194194        #print ana_val, sim_val, sim_val/ana_val 
    195195         
Note: See TracChangeset for help on using the changeset viewer.