Exemplo n.º 1
0
 def test_configure(self):
   """
   Test _configure().
   """
   slipFn = ConstRateSlipFn()
   slipFn._configure()
   return
Exemplo n.º 2
0
 def test_configure(self):
     """
 Test _configure().
 """
     slipFn = ConstRateSlipFn()
     slipFn._configure()
     return
Exemplo n.º 3
0
    def test_initialize(self):
        """
    Test initialize().
    """
        from spatialdata.spatialdb.SimpleDB import SimpleDB
        from spatialdata.spatialdb.SimpleIOAscii import SimpleIOAscii

        ioSlipRate = SimpleIOAscii()
        ioSlipRate.inventory.filename = "sliprate.spatialdb"
        ioSlipRate._configure()
        dbSlipRate = SimpleDB()
        dbSlipRate.inventory.iohandler = ioSlipRate
        dbSlipRate.inventory.label = "slip rate"
        dbSlipRate._configure()

        ioSlipTime = SimpleIOAscii()
        ioSlipTime.inventory.filename = "sliptime.spatialdb"
        ioSlipTime._configure()
        dbSlipTime = SimpleDB()
        dbSlipTime.inventory.iohandler = ioSlipTime
        dbSlipTime.inventory.label = "slip time"
        dbSlipTime._configure()

        slipFn = ConstRateSlipFn()
        slipFn.inventory.dbSlipRate = dbSlipRate
        slipFn.inventory.dbSlipTime = dbSlipTime
        slipFn._configure()
        slipFn.preinitialize()
        slipFn.verifyConfiguration()
        slipFn.initialize()
        return
Exemplo n.º 4
0
  def test_initialize(self):
    """
    Test initialize().
    """
    from spatialdata.spatialdb.SimpleDB import SimpleDB
    from spatialdata.spatialdb.SimpleIOAscii import SimpleIOAscii

    ioSlipRate = SimpleIOAscii()
    ioSlipRate.inventory.filename = "sliprate.spatialdb"
    ioSlipRate._configure()
    dbSlipRate = SimpleDB()
    dbSlipRate.inventory.iohandler = ioSlipRate
    dbSlipRate.inventory.label = "slip rate"
    dbSlipRate._configure()
    
    ioSlipTime = SimpleIOAscii()
    ioSlipTime.inventory.filename = "sliptime.spatialdb"
    ioSlipTime._configure()
    dbSlipTime = SimpleDB()
    dbSlipTime.inventory.iohandler = ioSlipTime
    dbSlipTime.inventory.label = "slip time"
    dbSlipTime._configure()
    
    slipFn = ConstRateSlipFn()
    slipFn.inventory.dbSlipRate = dbSlipRate
    slipFn.inventory.dbSlipTime = dbSlipTime
    slipFn._configure()
    slipFn.preinitialize()
    slipFn.verifyConfiguration()
    slipFn.initialize()
    return
Exemplo n.º 5
0
 def test_constructor(self):
     """
 Test constructor.
 """
     slipFn = ConstRateSlipFn()
     return