示例#1
0
    def AllActive(self, local_config):
        updateStep = local_config.getUpdatestep()
        ministep = updateStep[0]
        self.assertEqual(1, len(ministep))
        dataset = ministep["ALL_DATA"]

        self.assertTrue("PERLIN_PARAM" in dataset)

        obsdata = ministep.getLocalObsData()
        self.assertEqual(len(obsdata), 3)
示例#2
0
    def AllActive(self , local_config):
        updateStep = local_config.getUpdatestep( )
        ministep = updateStep[0]
        self.assertEqual( 1 , len(ministep) )
        dataset = ministep["ALL_DATA"]
        
        self.assertTrue( "PERLIN_PARAM" in dataset )

        obsdata = ministep.getLocalObsData()
        self.assertEqual( len(obsdata) , 3 )
示例#3
0
    def AttachMinistep(self, local_config):

        # Update step
        updatestep = local_config.getUpdatestep()
        self.assertTrue(isinstance(updatestep, LocalUpdateStep))
        n1 = len(updatestep)

        # Ministep
        ministep = local_config.createMinistep("MINISTEP")
        self.assertTrue(isinstance(ministep, LocalMinistep))

        # Attach
        updatestep.attachMinistep(ministep)
        self.assertTrue(isinstance(updatestep[0], LocalMinistep))

        self.assertEqual(len(updatestep), n1 + 1)
示例#4
0
    def AttachMinistep( self, local_config):                        
            
        # Update step
        updatestep = local_config.getUpdatestep( )
        self.assertTrue(isinstance(updatestep, LocalUpdateStep))
        n1 = len(updatestep)

        # Ministep                                      
        ministep = local_config.createMinistep("MINISTEP")
        self.assertTrue(isinstance(ministep, LocalMinistep))   
        
        # Attach
        updatestep.attachMinistep(ministep)
        self.assertTrue(isinstance(updatestep[0], LocalMinistep))
        
        self.assertEqual( len(updatestep) , n1 + 1 )            
示例#5
0
 def clear(self, local_config):
     local_config.clear()
     updateStep = local_config.getUpdatestep()
     self.assertEqual(len(updateStep), 0)
示例#6
0
 def clear(self, local_config):
     local_config.clear()
     updateStep = local_config.getUpdatestep( )
     self.assertEqual( len(updateStep) , 0 )