Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions ndsl/initialization/allocator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations

import warnings
from collections.abc import Callable, Sequence
from typing import Any

Expand Down Expand Up @@ -58,25 +57,6 @@ def add_data_dimensions(

self.sizer.data_dimensions.update(data_dimension_descriptions)

@classmethod
def from_backend(cls, sizer: GridSizer, backend: str) -> QuantityFactory:
"""Initialize a QuantityFactory to use a specific GT4Py backend.

Note: This method is deprecated. Please change your code to use the
constructor instead.

Args:
sizer: GridSizer object that determines the array sizes.
backend: GT4Py backend name used for performance-optimized allocation.
"""
warnings.warn(
"QuantityFactory.from_backend(sizer, backend) is deprecated. Use "
"QuantityFactory(sizer, backend=backend) instead.",
DeprecationWarning,
stacklevel=2,
)
return cls(sizer, backend=backend)

def empty(
self,
dims: Sequence[str],
Expand Down
8 changes: 0 additions & 8 deletions tests/initialization/test_allocator.py

This file was deleted.