Commit 0b6e7af3 authored by Ivan Tyagov's avatar Ivan Tyagov

Add forgotten property sheet assignment.

parent 2c5f7d75
<property_sheet_list> <property_sheet_list>
<portal_type id="Data Array">
<item>DataArray</item>
</portal_type>
<portal_type id="Data Product"> <portal_type id="Data Product">
<item>DefaultImage</item> <item>DefaultImage</item>
</portal_type> </portal_type>
......
...@@ -109,12 +109,15 @@ class Test(ERP5TypeTestCase): ...@@ -109,12 +109,15 @@ class Test(ERP5TypeTestCase):
data_array.setArray(array) data_array.setArray(array)
self.tic() self.tic()
# test array stored and we teturn ZBig Array instance
persistent_zbig_array = data_array.getArray() persistent_zbig_array = data_array.getArray()
self.assertEqual(ZBigArray, persistent_zbig_array.__class__)
self.assertEquals(array, persistent_zbig_array) self.assertEquals(array, persistent_zbig_array)
# try to resize it # try to resize it
#pure_numpy_array = persistent_zbig_array[:,:] # ZBigArray -> ndarray view of it #pure_numpy_array = persistent_zbig_array[:,:] # ZBigArray -> ndarray view of it
#pure_numpy_array.resize(100, 100) #pure_numpy_array = np.resize(pure_numpy_array, (100,100))
#self.assertNotEquals(pure_numpy_array.shape, persistent_zbig_array.shape)
# resize Zbig Array
#persistent_zbig_array.resize(100,100)
\ No newline at end of file \ No newline at end of file
Data Array | DataArray
Data Product | DefaultImage Data Product | DefaultImage
Ingestion Policy | IngestionPolicy Ingestion Policy | IngestionPolicy
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment