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

All Samples(119)  |  Call(119)  |  Derive(0)  |  Import(0)

src/h/5/h5py-2.3.0/h5py/tests/test_file.py   h5py(Download)
    def test_default(self):
        """ Default semantics in the presence or absence of a file """
        fname = self.mktemp()
 
        # No existing file; create a new file and open RW
    def test_create(self):
        """ Mode 'w' opens file in overwrite mode """
        fname = self.mktemp()
        fid = File(fname, 'w')
        self.assertTrue(fid)
    def test_create_exclusive(self):
        """ Mode 'w-' opens file in exclusive mode """
        fname = self.mktemp()
        fid = File(fname, 'w-')
        self.assert_(fid)
    def test_append(self):
        """ Mode 'a' opens file in append/readwrite mode, creating if necessary """
        fname = self.mktemp()
        fid = File(fname, 'a')
        try:
    def test_readonly(self):
        """ Mode 'r' opens file in readonly mode """
        fname = self.mktemp()
        fid = File(fname, 'w')
        fid.close()

src/h/5/h5py-HEAD/h5py/tests/test_file.py   h5py(Download)
    def test_default(self):
        """ Default semantics in the presence or absence of a file """
        fname = self.mktemp()
 
        # No existing file; create a new file and open RW
    def test_create(self):
        """ Mode 'w' opens file in overwrite mode """
        fname = self.mktemp()
        fid = File(fname, 'w')
        self.assertTrue(fid)
    def test_create_exclusive(self):
        """ Mode 'w-' opens file in exclusive mode """
        fname = self.mktemp()
        fid = File(fname, 'w-')
        self.assert_(fid)
    def test_append(self):
        """ Mode 'a' opens file in append/readwrite mode, creating if necessary """
        fname = self.mktemp()
        fid = File(fname, 'a')
        try:
    def test_readonly(self):
        """ Mode 'r' opens file in readonly mode """
        fname = self.mktemp()
        fid = File(fname, 'w')
        fid.close()

src/h/5/h5py-2.3.0/h5py/tests/test_group.py   h5py(Download)
    def setUp(self):
        self.f = File(self.mktemp(), 'w')
 
    def tearDown(self):
        if self.f:
    def setUp(self):
        self.f = File(self.mktemp(), 'w')
        self.groups = [
            'grp1', 'grp1/sg1', 'grp1/sg2', 'grp2', 'grp2/sg1', 'grp2/sg1/ssg1'
            ]
    def setUp(self):
        self.f = File(self.mktemp(), 'w')
        self.ename = self.mktemp()
        self.ef = File(self.ename, 'w')
        self.ef.create_group('external')
                    pass
            return w
        orig_name = self.mktemp()
        new_name = self.mktemp()
        f = File(orig_name, 'w')

src/h/5/h5py-HEAD/h5py/tests/test_group.py   h5py(Download)
    def setUp(self):
        self.f = File(self.mktemp(), 'w')
 
    def tearDown(self):
        if self.f:
    def setUp(self):
        self.f = File(self.mktemp(), 'w')
        self.groups = [
            'grp1', 'grp1/sg1', 'grp1/sg2', 'grp2', 'grp2/sg1', 'grp2/sg1/ssg1'
            ]
    def setUp(self):
        self.f = File(self.mktemp(), 'w')
        self.ename = self.mktemp()
        self.ef = File(self.ename, 'w')
        self.ef.create_group('external')
                    pass
            return w
        orig_name = self.mktemp()
        new_name = self.mktemp()
        f = File(orig_name, 'w')

src/p/r/praxes-HEAD/praxes/io/phynx/tests/test_file.py   praxes(Download)
    def test_close(self):
        f = self.mktemp()
        f.close()
        self.assertRaises(ValueError, f.values)
 

src/h/5/h5py-HEAD/h5py/tests/test_slicing.py   h5py(Download)
    def setUp(self):
        self.f = File(self.mktemp(), 'w')
 
    def tearDown(self):
        if self.f:
    def setUp(self):
        self.f = File(self.mktemp(), 'w')
        self.arr = np.arange(10)
        self.dset = self.f.create_dataset('x', data=self.arr)
 

src/h/5/h5py-HEAD/h5py/tests/test_selections.py   h5py(Download)
    def setUp(self):
        self.f = h5py.File(self.mktemp(), 'w')
        self.dsid = self.f.create_dataset('x', ()).id
 
    def tearDown(self):

src/h/5/h5py-HEAD/h5py/tests/test_dimension_scales.py   h5py(Download)
    def setUp(self):
        self.f = File(self.mktemp(), 'w')
        self.f['data'] = np.ones((4, 3, 2), 'f')
        self.f['data2'] = np.ones((4, 3, 2), 'f')
        self.f['x1'] = np.ones((2), 'f')

src/h/5/h5py-HEAD/h5py/tests/test_datatype.py   h5py(Download)
    def setUp(self):
        self.f = File(self.mktemp(), 'w')
 
    def tearDown(self):
        if self.f:

src/h/5/h5py-HEAD/h5py/tests/test_dataset.py   h5py(Download)
    def setUp(self):
        self.f = File(self.mktemp(), 'w')
 
    def tearDown(self):
        if self.f:

  1 | 2 | 3  Next