Skip to content

Commit

Permalink
removed check & updated local adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
matveyvarg committed Jun 10, 2024
1 parent 08a941d commit c2f0d01
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 70 deletions.
5 changes: 1 addition & 4 deletions deker/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
TimeDimensionSchema,
VArraySchema,
)
from deker.tools import check_memory, not_deleted
from deker.tools import not_deleted
from deker.types import Serializer


Expand Down Expand Up @@ -278,9 +278,6 @@ def create(
:param custom_attributes: ``Array`` or ``VArray`` custom attributes
:param id_: ``Array`` or ``VArray`` unique UUID string
"""
schema = self.array_schema
shape = schema.arrays_shape if hasattr(schema, "arrays_shape") else schema.shape
check_memory(shape, schema.dtype, self.__adapter.ctx.config.memory_limit)
array = self.__manager.create(primary_attributes, custom_attributes, id_)
self.logger.debug(
f"{array.__class__.__name__} id={array.id} {primary_attributes=}, {custom_attributes=} created"
Expand Down
Loading

0 comments on commit c2f0d01

Please sign in to comment.