Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
robsdavis committed Sep 13, 2024
1 parent 5560763 commit 3133598
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
run: |
python -m pip install -U pip
pip install -r prereq.txt
- name: Limit OpenMP threads
- name: Limit OpenMP threads (Critical for macOS else it can hang without error)
run: |
echo "OMP_NUM_THREADS=2" >> $GITHUB_ENV
- name: Test Core
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: PR Tutorials
on:
push:
branches: [main, release]
# pull_request:
# types: [opened, synchronize, reopened]
pull_request:
types: [opened, synchronize, reopened]
schedule:
- cron: "2 3 * * 4"
workflow_dispatch:
Expand Down
1 change: 0 additions & 1 deletion tests/metrics/test_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,6 @@ def test_evaluate_performance_time_series_survival(
@pytest.mark.slow_1
@pytest.mark.slow
def test_image_support_perf() -> None:

dataset = datasets.MNIST(".", download=True)

X1 = ImageDataLoader(dataset).sample(100)
Expand Down
2 changes: 0 additions & 2 deletions tests/metrics/test_privacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from synthcity.plugins.core.dataloader import GenericDataLoader, ImageDataLoader


@pytest.mark.skipif(sys.platform != "linux", reason="Only test on linux for speed")
@pytest.mark.parametrize(
"evaluator_t",
[
Expand Down Expand Up @@ -84,7 +83,6 @@ def test_evaluator(evaluator_t: Type, test_plugin: Plugin) -> None:

@pytest.mark.skipif(sys.platform != "linux", reason="Linux only for faster results")
def test_image_support() -> None:

dataset = datasets.MNIST(".", download=True)

X1 = ImageDataLoader(dataset).sample(100)
Expand Down
1 change: 0 additions & 1 deletion tests/metrics/test_sanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ def test_evaluate_distant_values(test_plugin: Plugin) -> None:

@pytest.mark.skipif(sys.platform != "linux", reason="Linux only for faster results")
def test_image_support() -> None:

dataset = datasets.MNIST(".", download=True)

X1 = ImageDataLoader(dataset).sample(100)
Expand Down
2 changes: 0 additions & 2 deletions tests/metrics/test_statistical.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def test_evaluate_wasserstein_distance(test_plugin: Plugin) -> None:
assert WassersteinDistance.direction() == "minimize"


@pytest.mark.skipif(sys.platform != "linux", reason="Only test on linux for speed")
@pytest.mark.parametrize("test_plugin", [Plugins().get("ctgan")])
def test_evaluate_prdc(test_plugin: Plugin) -> None:
X, y = load_iris(return_X_y=True, as_frame=True)
Expand Down Expand Up @@ -287,7 +286,6 @@ def test_evaluate_survival_km_distance(test_plugin: Plugin) -> None:

@pytest.mark.skipif(sys.platform != "linux", reason="Linux only for faster results")
def test_image_support() -> None:

dataset = datasets.MNIST(".", download=True)

X1 = ImageDataLoader(dataset).sample(100)
Expand Down
2 changes: 0 additions & 2 deletions tests/plugins/core/models/test_image_gan.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
)
# Load MNIST dataset as tensors
batch_size = 128

dataset = datasets.MNIST(".", download=True, transform=data_transform)

dataset = Subset(dataset, np.arange(len(dataset))[:100])
dataset = FlexibleDataset(dataset)

Expand Down
2 changes: 0 additions & 2 deletions tests/plugins/core/test_dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,6 @@ def test_time_series_survival_pack_unpack_padding(as_numpy: bool) -> None:
@pytest.mark.parametrize("height", [55, 64])
@pytest.mark.parametrize("width", [32, 22])
def test_image_dataloader_sanity(height: int, width: int) -> None:

dataset = datasets.MNIST(".", download=True)

loader = ImageDataLoader(
Expand Down Expand Up @@ -682,7 +681,6 @@ def test_image_dataloader_sanity(height: int, width: int) -> None:

@pytest.mark.skipif(sys.platform != "linux", reason="Linux only for faster results")
def test_image_dataloader_create_from_info() -> None:

dataset = datasets.MNIST(".", download=True)

loader = ImageDataLoader(
Expand Down
2 changes: 0 additions & 2 deletions tests/plugins/generic/test_ddpm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# stdlib
import sys
from itertools import product
from typing import Any, Generator

Expand Down Expand Up @@ -109,7 +108,6 @@ def test_plugin_generate(test_plugin: Plugin) -> None:
assert test_plugin.schema_includes(X_gen)


@pytest.mark.skipif(sys.platform != "linux", reason="Only test on linux for speed")
@pytest.mark.parametrize(
"test_plugin", extend_fixtures(is_classification=[True, False])
)
Expand Down

0 comments on commit 3133598

Please sign in to comment.