Skip to content

Commit 2abe3de

Browse files
committed
Remove global_statics and unused fixture
Global_statics was mainly used in versions of parcels with c compilation
1 parent 7be4f8e commit 2abe3de

3 files changed

Lines changed: 0 additions & 58 deletions

File tree

parcels/tools/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from .converters import *
22
from .exampledata_utils import *
3-
from .global_statics import *
43
from .interpolation_utils import *
54
from .loggers import *
65
from .statuscodes import *

parcels/tools/global_statics.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

tests/test_kernel_execution.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import uuid
2-
31
import numpy as np
42
import pytest
53

6-
import parcels
74
from parcels import (
85
AdvectionRK4,
96
FieldOutOfBoundError,
@@ -16,18 +13,6 @@
1613
from tests.utils import create_fieldset_unit_mesh
1714

1815

19-
@pytest.fixture()
20-
def parcels_cache(monkeypatch, tmp_path_factory):
21-
"""Dedicated folder parcels used to store cached Kernel C code/libraries and log files."""
22-
tmp_path = tmp_path_factory.mktemp(f"c-code-{uuid.uuid4()}")
23-
24-
def fake_get_cache_dir():
25-
return tmp_path
26-
27-
monkeypatch.setattr(parcels.kernel, "get_cache_dir", fake_get_cache_dir)
28-
yield tmp_path
29-
30-
3116
@pytest.fixture
3217
def fieldset_unit_mesh():
3318
return create_fieldset_unit_mesh()

0 commit comments

Comments
 (0)