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)
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 )
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)
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 )
def clear(self, local_config): local_config.clear() updateStep = local_config.getUpdatestep() self.assertEqual(len(updateStep), 0)
def clear(self, local_config): local_config.clear() updateStep = local_config.getUpdatestep( ) self.assertEqual( len(updateStep) , 0 )