Skip to content

Commit

Permalink
local pytest passing. osf paths updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffwoollard committed Jun 20, 2024
1 parent c567e34 commit e13b5de
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
pip install pytest
- name: Get test data from OSF
run: |
mkdir -p data/dataset_2_submissions tests/data/
mkdir -p data/dataset_2_submissions tests/data/ tests/results
wget https://files.osf.io/v1/resources/8h6fz/providers/dropbox/dataset_2_submissions/submission_0.pt?download=true -O data/dataset_2_submissions/submission_0.pt
wget https://files.osf.io/v1/resources/8h6fz/providers/dropbox/Ground_truth/gt_maps_flat_10.pt?download=true -O tests/data/gt_maps_flat_10.pt
wget https://files.osf.io/v1/resources/8h6fz/providers/dropbox/Ground_truth/metadata_10.csv?download=true -O tests/data/metadata_10.csv
wget https://files.osf.io/v1/resources/8h6fz/providers/dropbox/Ground_truth/test_maps_gt_flat_10.pt?download=true -O tests/data/gt_maps_flat_10.pt
wget https://files.osf.io/v1/resources/8h6fz/providers/dropbox/Ground_truth/test_metadata_10.csv?download=true -O tests/data/metadata_10.csv
wget https://files.osf.io/v1/resources/8h6fz/providers/dropbox/Ground_truth/mask_dilated_wide_224x224.mrc?download=true -O data/mask_dilated_wide_224x224.mrc
- name: Test with pytest
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
input_fname: results/test_map_to_map_distance_matrix_submission_0.pkl
input_fname: tests/results/test_map_to_map_distance_matrix_submission_0.pkl
metrics:
- l2
gt_metadata_fname: data/metadata.csv
gt_metadata_fname: tests/data/test_metadata_10.csv
n_replicates: 3
n_pool_microstate: 2
replicate_fraction: 0.9
Expand Down
6 changes: 3 additions & 3 deletions tests/config_files/test_config_map_to_map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ data:
metadata_key: populations
label_key: id
ground_truth:
volumes: tests/data/gt_maps_flat_10.pt
metadata: tests/data/metadata_10.csv
volumes: tests/data/test_maps_gt_flat_10.pt
metadata: tests/data/test_metadata_10.csv
mask:
do: true
volume: data/mask_dilated_wide_224x224.mrc
Expand All @@ -20,4 +20,4 @@ analysis:
normalize:
do: true
method: median_zscore
output: tests/test_map_to_map_distance_matrix_submission_0.pkl
output: tests/results/test_map_to_map_distance_matrix_submission_0.pkl
4 changes: 2 additions & 2 deletions tests/test_distribution_to_distribution.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from omegaconf import OmegaConf
from cryo_challenge._commands import run_distribution2distribution_pipeline

args = OmegaConf.create({'config': 'tests/config_files/test_config_map_to_map_distance_matrix.yaml'})

def test_run_distribution2distribution_pipeline(args):
def test_run_distribution2distribution_pipeline():
args = OmegaConf.create({'config': 'tests/config_files/test_config_distribution_to_distribution.yaml'})
run_distribution2distribution_pipeline.main(args)
4 changes: 2 additions & 2 deletions tests/test_map_to_map.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from omegaconf import OmegaConf
from cryo_challenge._commands import run_map2map_pipeline

args = OmegaConf.create({'config': 'tests/config_files/test_config_map_to_map_distance_matrix.yaml'})

def test_run_map2map_pipeline(args):
def test_run_map2map_pipeline():
args = OmegaConf.create({'config': 'tests/config_files/test_config_map_to_map.yaml'})
run_map2map_pipeline.main(args)

0 comments on commit e13b5de

Please sign in to comment.