Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/y/pyofss-gui-0.2/pyofss_gui/gui_fibre.py   pyofss-gui(Download)
from helpers import set_spinbox_data
 
from pyofss.modules.fibre import Fibre
 
 
    def __call__(self):
        data = self.get_data()
        del data["id"]
        return Fibre(**data)
 

src/p/y/pyofss-0.9/pyofss/tests/test_fibre.py   pyofss(Download)
# ==============================================================================
 
from pyofss.modules.fibre import Fibre
 
#from numpy.testing.utils import assert_almost_equal # uses decimal places
   def test_none( self ):
      """ Should use default value if no parameter given """
      fibre = Fibre()
      self.assertEqual( fibre.name, "fibre" )
      self.assertEqual( fibre.length, 1.0 )