Skip to content

Commit

Permalink
CreateArrayLock removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Rybakov committed May 7, 2024
1 parent e7b0da4 commit 8255e27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions deker/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ def _create( # type: ignore
"array_adapter": self.__array_adapter, # type: ignore[dict-item]
}
)
array = VArray(**arr_params) # type: ignore[arg-type]
obj = VArray
else:
arr_params.update({"adapter": self.__array_adapter}) # type: ignore[dict-item]
array = Array(**arr_params) # type: ignore[arg-type]
self._adapter.create(array)
obj = Array
array = self._adapter.create(obj(**arr_params)) # type: ignore[arg-type]
return array

def create(
Expand Down
3 changes: 1 addition & 2 deletions deker/subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,7 @@ def _update(array_data: ArrayPositionedData) -> None:
},
"custom_attributes": custom_attributes,
}
array = Array(**kwargs) # type: ignore[arg-type]
self.__array_adapter.create(array)
array = self.__array_adapter.create(Array(**kwargs)) # type: ignore[arg-type]
subset = array[array_data.bounds]
subset.update(array_data.data)

Expand Down

0 comments on commit 8255e27

Please sign in to comment.