| bmask |
Ran ran, violated the contract we drafted |
DIAGNijmegen/oncology-uls-plus/evaluation/eval_uls.py code served (permissive licence) · get_code("e2aeb5cefefd197a") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family float, shape (5, 6, 7) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
from scipy.ndimage import binary_erosion, binary_dilation
STRUCT = np.ones((3, 3, 3), dtype=bool)
def bmask(m: np.ndarray) -> np.ndarray:
return np.logical_xor(m, binary_erosion(m, structure=STRUCT, iterations=1))
# Create a small 3D binary mask as input
# The function expects a numpy array with boolean or integer values
m_input = np.random.randint(0, 2, size=(5, 6, 7), dtype=bool)
ARGS = {
"m": m_input
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 3, dtype family float, shape (5, 6, 7) — shape (5, 6, 7) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| create_dataset_structure |
Ran ran; our contract draft was wrong, not the code |
DIAGNijmegen/oncology-uls-plus/preprocessing/uclp/nnunet_writer.py code served (permissive licence) · get_code("012f29c8acb11a74") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
from pathlib import Path
import tempfile
ARGS = {
'output_dir': tempfile.mkdtemp(),
'dataset_id': 31,
'dataset_name': 'MSD_Liver'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| default_adapter |
Ran ran; our contract draft was wrong, not the code |
DIAGNijmegen/oncology-uls-plus/preprocessing/uclp/io_utils.py code served (permissive licence) · get_code("8da40245324e20bf") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import tempfile
from pathlib import Path
# Create temporary directories and mock files
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name)
input_images_dir = temp_path / "images"
input_labels_dir = temp_path / "labels"
input_images_dir.mkdir(exist_ok=True)
input_labels_dir.mkdir(exist_ok=True)
# Create mock image and label files with matching base names
(input_images_dir / "scan_001.nii.gz").touch()
(input_labels_dir / "scan_001.nii.gz").touch()
(input_images_dir / "scan_002.mha").touch()
(input_labels_dir / "scan_002.mha").touch()
(input_images_dir / "scan_003.nii").touch()
(input_labels_dir / "scan_003.nii").touch()
# Create a config dict with the required keys
config = {
'input_images': str(input_images_dir),
'input_labels': str(input_labels_dir)
}
ARGS = {
'config': config
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| dice |
Ran ran, honoured the contract we drafted |
DIAGNijmegen/oncology-uls-plus/evaluation/eval_uls.py code served (permissive licence) · get_code("8498d62e321f1e04") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# The function expects two numpy arrays (a and b)
# It converts them to boolean, computes intersection and sums
# So we need two boolean-convertible numpy arrays
a = np.array([1, 0, 1, 0], dtype=np.uint8)
b = np.array([1, 1, 0, 0], dtype=np.uint8)
ARGS = {
"a": a,
"b": b,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| extract_case_id |
Ran ran; our contract draft was wrong, not the code |
DIAGNijmegen/oncology-uls-plus/preprocessing/uclp/uclp_preprocess.py code served (permissive licence) · get_code("2516be393705ea56") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
from pathlib import Path
def extract_case_id(file_path):
"""Extract case identifier from file path.
For most datasets, uses the filename stem.
For WORC-style datasets (where image is always 'image.nii.gz'),
uses the parent directory name as the case ID.
"""
path = Path(file_path)
stem = path.stem.replace('.nii', '').replace('.mha', '')
if stem in ['image', 'scan', 'img']:
return path.parent.name
return stem
ARGS = {
'file_path': '/data/case_001/image.nii.gz'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| generate_case_id |
Ran ran; our contract draft was wrong, not the code |
DIAGNijmegen/oncology-uls-plus/preprocessing/uclp/nnunet_writer.py code served (permissive licence) · get_code("6f4ff65c73170cff") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
ARGS = {
'source_name': 'MSD_Liver',
'case_id': '130',
'lesion_idx': 0,
'aug_idx': None,
'lesion_type': None,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_agreement_rows |
Ran ran; our contract draft was wrong, not the code |
DIAGNijmegen/oncology-uls-plus/evaluation/plot_uls_combined.py code served (permissive licence) · get_code("9b1fb0d65060fd41") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import csv
from pathlib import Path
import tempfile
import os
# Create a temporary CSV file with test data
temp_dir = tempfile.mkdtemp()
csv_path = Path(temp_dir) / "test_agreement.csv"
# Write test CSV data
csv_content = """scope,lesion_type,agree_dsc_mean,agree_dsc_std,agree_biou_mean,agree_biou_std,n_unique_lesions_triplets
agreement,lesion_type_1,0.85,0.05,0.78,0.06,10
agreement,lesion_type_2.nii.gz,0.92,0.03,0.88,0.04,15
agreement,lesion_type_3.nii,0.80,0.07,0.75,0.08,12
other_scope,lesion_type_4,0.90,0.02,0.85,0.03,20
agreement,lesion_type_5,0.75,0.10,0.70,0.12,8
"""
with open(csv_path, 'w', newline='') as f:
f.write(csv_content)
ARGS = {
"csv_path": csv_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_config |
Ran ran; our contract draft was wrong, not the code |
DIAGNijmegen/oncology-uls-plus/preprocessing/uclp/config.py code served (permissive licence) · get_code("47e6694c6c9d9c8a") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import tempfile
from pathlib import Path
import yaml
# Create temporary directories and files for testing
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name)
# Create required directories
input_images_dir = temp_path / "images"
input_images_dir.mkdir(exist_ok=True)
input_labels_dir = temp_path / "labels"
input_labels_dir.mkdir(exist_ok=True)
lesion_types_dir = temp_path / "lesion_types"
lesion_types_dir.mkdir(exist_ok=True)
# Create a temporary YAML config file
config_data = {
'name': 'test_dataset',
'id': 0,
'input_images': str(input_images_dir),
'input_labels': str(input_labels_dir),
'crop_size': [64, 64, 64],
'num_augmentations': 5,
'lesion_types_dir': str(lesion_types_dir),
'output_dir': str(temp_path / 'output'),
'random_seed': 42,
'body_threshold_hu': -500,
'max_sampling_attempts': 50,
'min_lesion_size_voxels': 50,
'adapter': 'default',
'append_lesion_type': False
}
yaml_file = temp_path / "config.yaml"
with open(yaml_file, 'w') as f:
yaml.dump(config_data, f)
ARGS = {
'yaml_path': str(yaml_file)
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- yaml — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_evaluation_rows |
Ran ran; our contract draft was wrong, not the code |
DIAGNijmegen/oncology-uls-plus/evaluation/plot_uls_combined.py code served (permissive licence) · get_code("7e990adc0ae7a9ba") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import csv
from pathlib import Path
import tempfile
# Create a temporary CSV file with test data
temp_dir = tempfile.TemporaryDirectory()
csv_path = Path(temp_dir.name) / "evaluation.csv"
# Write test CSV data
csv_content = """lesion_type,scope,dsc_mean,dsc_std,biou_mean,biou_std,n_unique_lesions
lesion_A.nii.gz,evaluation,0.85,0.05,0.78,0.06,10
lesion_B.nii,evaluation,0.92,0.03,0.88,0.04,15
lesion_C,evaluation,0.75,0.08,0.70,0.09,8
lesion_D.nii.gz,training,0.80,0.07,0.75,0.08,12
"""
with csv_path.open('w', newline='') as f:
f.write(csv_content)
ARGS = {
'csv_path': csv_path,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_evaluation_rows |
Ran ran; our contract draft was wrong, not the code |
DIAGNijmegen/oncology-uls-plus/evaluation/plot_uls_metrics.py code served (permissive licence) · get_code("7a1cba03c9b98d00") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import csv
import tempfile
from pathlib import Path
# Create a temporary CSV file with test data
temp_dir = tempfile.TemporaryDirectory()
csv_path = Path(temp_dir.name) / "test_evaluation.csv"
# Write test CSV data
csv_content = """scope,lesion_type,dsc_mean,dsc_std,biou_mean,biou_std
evaluation,tumor.nii.gz,0.85,0.05,0.78,0.06
evaluation,lesion.nii,0.82,0.04,0.75,0.07
evaluation,other_type,0.90,0.03,0.88,0.04
training,skip_this.nii.gz,0.50,0.10,0.45,0.12
evaluation,missing_values.nii.gz,,0.02,,0.05
"""
with csv_path.open('w', newline='') as f:
f.write(csv_content)
ARGS = {
"csv_path": csv_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| msd_adapter |
Ran ran; our contract draft was wrong, not the code |
DIAGNijmegen/oncology-uls-plus/preprocessing/uclp/io_utils.py code served (permissive licence) · get_code("1e6d8a038db1fc06") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import tempfile
import os
from pathlib import Path
# Create temporary directories for testing
temp_dir = tempfile.mkdtemp()
input_images_dir = os.path.join(temp_dir, 'imagesTr')
input_labels_dir = os.path.join(temp_dir, 'labelsTr')
os.makedirs(input_images_dir, exist_ok=True)
os.makedirs(input_labels_dir, exist_ok=True)
# Create dummy image and label files
image_file_1 = os.path.join(input_images_dir, 'scan_001.nii.gz')
image_file_2 = os.path.join(input_images_dir, 'scan_002.mha')
label_file_1 = os.path.join(input_labels_dir, 'scan_001.nii.gz')
label_file_2 = os.path.join(input_labels_dir, 'scan_002.mha')
# Create dummy files (empty)
Path(image_file_1).touch()
Path(image_file_2).touch()
Path(label_file_1).touch()
Path(label_file_2).touch()
# Create config dictionary
config = {
'input_images': input_images_dir,
'input_labels': input_labels_dir
}
ARGS = {
'config': config
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| normalize_lesion_type_names |
Ran ran; our contract draft was wrong, not the code |
DIAGNijmegen/oncology-uls-plus/evaluation/plot_uls_combined.py code served (permissive licence) · get_code("e3e796b90a93cba6") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
from typing import Dict, Tuple
# Setup code to construct valid arguments for normalize_lesion_type_names
# Create sample data dict with lesion type names mapping to tuples of (d_mean, d_std, b_mean, b_std)
data = {
'soft-tissue---skin': (0.5, 0.1, 0.7, 0.2),
'adrenals': (0.6, 0.15, 0.8, 0.25),
'lymph-node': (0.4, 0.08, 0.6, 0.18),
'skeleton': (0.55, 0.12, 0.75, 0.22),
'liver': (0.65, 0.18, 0.85, 0.28),
'lung': (0.45, 0.09, 0.65, 0.19)
}
# Create n_samples dict mapping lesion types to sample counts
n_samples = {
'soft-tissue---skin': 100,
'adrenals': 50,
'lymph-node': 75,
'skeleton': 120,
'liver': 90,
'lung': 85
}
ARGS = {
'data': data,
'n_samples': n_samples
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| order_types |
Ran ran; our contract draft was wrong, not the code |
DIAGNijmegen/oncology-uls-plus/evaluation/plot_uls_metrics.py code served (permissive licence) · get_code("11027aeeed6b3468") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
from typing import List
def order_types(types: List[str]) -> List[str]:
items = sorted([t for t in types if t != 'ALL'])
if 'ALL' in types:
items.append('ALL')
return items
ARGS = {
'types': ['zebra', 'apple', 'ALL', 'banana']
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| sample_point_in_sphere |
Ran ran, honoured the contract we drafted |
DIAGNijmegen/oncology-uls-plus/preprocessing/uclp/cropper.py code served (permissive licence) · get_code("8fafdd2879bb1124") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
np.random.seed(42)
ARGS = {
"radius": 10.0
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| is_inside_body |
Not yet run unverified (harvested, no recorded run) |
DIAGNijmegen/oncology-uls-plus/preprocessing/uclp/cropper.py code served (permissive licence) · get_code("6cfcdb82a409a196") How it ran |