| add_noise |
Ran ran on a synthesized input |
tobias-liaudat/wf-psf/long-runs/LR-PSF-field-generation.py code served (permissive licence) · get_code("f6f5fdb1a5d1f5f7") 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 2, dtype family float, shape (4, 3) 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
# Create a small test image (2D array)
image = np.random.randn(4, 3) # 4x3 image with distinct dimensions
# Set desired SNR value
desired_SNR = 10.0
# Construct the arguments dictionary
ARGS = {
"image": image,
"desired_SNR": desired_SNR
}
- 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 ndarray, ndim 2, dtype family float, shape (4, 3) — shape (4, 3) 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
|
| compute_mono_metric |
Ran ran on a synthesized input |
cosmostat/wf-psf/src/wf_psf/metrics/metrics.py code served (permissive licence) · get_code("13728e18dc29a95a") 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 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 numpy as np
class MockPSFField:
"""Mock PSF field model that returns monochromatic PSFs."""
def predict_mono_psfs(self, input_positions, lambda_obs, phase_N):
"""Return PSF predictions with shape [batch, height, width]."""
batch_size = input_positions.shape[0]
# Return small PSF images of shape [batch, 4, 3]
return np.random.randn(batch_size, 4, 3)
class MockPSFSimulator:
"""Mock PSF simulator that provides feasible_N method."""
def feasible_N(self, lambda_obs):
"""Return a phase_N value for given wavelength."""
return 5
ARGS = {
"tf_semiparam_field": MockPSFField(),
"gt_tf_semiparam_field": MockPSFField(),
"simPSF_np": MockPSFSimulator(),
"tf_pos": np.array([[0.1, 0.2], [0.3, 0.4], [0.5, 0.6], [0.7, 0.8]], dtype=np.float32),
"lambda_list": [0.5, 0.55, 0.6],
"batch_size": 2,
}
- 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 2, 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
|
| compute_mono_metric |
Ran ran on a synthesized input |
tobias-liaudat/wf-psf/wf_psf/metrics.py code served (permissive licence) · get_code("ab9ebb16d8380bd2") 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 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 numpy as np
class MockPSFField:
"""Mock PSF field that returns synthetic PSF data."""
def predict_mono_psfs(self, input_positions, lambda_obs, phase_N):
# Returns shape [batch_size, psf_height, psf_width]
batch_size = input_positions.shape[0]
psf_height, psf_width = 5, 6
return np.random.rand(batch_size, psf_height, psf_width)
class MockSimPSF:
"""Mock PSF simulator."""
def feasible_N(self, lambda_obs):
# Returns a phase_N value
return 10
# Create small but distinct tensor shapes for positions
tf_pos = np.array([
[0.1, 0.2],
[0.3, 0.4],
[0.5, 0.6],
[0.7, 0.8],
], dtype=np.float32)
lambda_list = [0.5, 0.6, 0.7]
ARGS = {
'tf_semiparam_field': MockPSFField(),
'GT_tf_semiparam_field': MockPSFField(),
'simPSF_np': MockSimPSF(),
'tf_pos': tf_pos,
'lambda_list': lambda_list,
'batch_size': 2,
}
- 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 2, 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
|
| compute_opd_metrics |
Ran ran on a synthesized input |
cosmostat/wf-psf/src/wf_psf/metrics/metrics.py code served (permissive licence) · get_code("ed8b3bcd5e5337d8") 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
import torch
import torch.nn as nn
torch.manual_seed(0)
class MockPSFField(nn.Module):
"""Mock PSF field object that implements predict_opd and obscurations."""
def __init__(self, opd_shape=(4, 5, 6), obscuration_shape=(5, 6)):
super().__init__()
# obscurations: should be a tensor-like object with .numpy() method
self.obscurations = torch.ones(obscuration_shape, dtype=torch.complex64)
# Add some variation to obscurations to create a mask
self.obscurations[0:2, 0:3] = 0
self.opd_shape = opd_shape
def predict_opd(self, batch_pos):
"""Predict OPD maps for given positions.
Args:
batch_pos: numpy array of shape [batch_size, 2]
Returns:
tensor of shape [batch_size, height, width]
"""
batch_size = batch_pos.shape[0]
height, width = self.opd_shape[1], self.opd_shape[2]
# Return random OPD maps
opd = torch.randn(batch_size, height, width, dtype=torch.float32)
return opd
# Create ground truth and trained models
gt_tf_semiparam_field = MockPSFField(opd_shape=(4, 5, 6), obscuration_shape=(5, 6))
tf_semiparam_field = MockPSFField(opd_shape=(4, 5, 6), obscuration_shape=(5, 6))
# Create positions array: [batch_size x 2]
pos = np.array([
[0.1, 0.2],
[0.3, 0.4],
[0.5, 0.6],
[0.7, 0.8],
], dtype=np.float32)
ARGS = {
'tf_semiparam_field': tf_semiparam_field,
'gt_tf_semiparam_field': gt_tf_semiparam_field,
'pos': pos,
'batch_size': 2,
}
- 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
|
| compute_opd_metrics |
Ran ran on a synthesized input |
tobias-liaudat/wf-psf/wf_psf/metrics.py code served (permissive licence) · get_code("44f68c8dfb2e5a81") 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
import torch
import torch.nn as nn
torch.manual_seed(0)
class MockPSFField(nn.Module):
"""Mock PSF field object with required methods and attributes."""
def __init__(self, opd_shape=(2, 4, 4)):
super().__init__()
self.opd_shape = opd_shape
# obscurations: shape (4, 4), real values between 0 and 1
self.register_buffer('obscurations', torch.ones(4, 4, dtype=torch.complex64))
def predict_opd(self, positions):
"""
Predict OPD maps for given positions.
Parameters
----------
positions: numpy.ndarray [batch x 2]
Positions where to predict OPD maps.
Returns
-------
opd_maps: torch.Tensor [batch x 4 x 4]
OPD maps for each position.
"""
batch_size = positions.shape[0]
# Generate synthetic OPD maps: batch_size x 4 x 4
opd_maps = torch.randn(batch_size, 4, 4, dtype=torch.float32)
return opd_maps
# Create mock field objects
tf_semiparam_field = MockPSFField(opd_shape=(2, 4, 4))
GT_tf_semiparam_field = MockPSFField(opd_shape=(2, 4, 4))
# Create positions array: batch x 2 (8 samples, 2D positions)
pos = np.random.rand(8, 2).astype(np.float32)
# Define ARGS dictionary with all parameters
ARGS = {
'tf_semiparam_field': tf_semiparam_field,
'GT_tf_semiparam_field': GT_tf_semiparam_field,
'pos': pos,
'batch_size': 16
}
- 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
|
| configure_optimizer_and_loss |
Ran ran on a synthesized input |
cosmostat/wf-psf/src/wf_psf/training/train_utils.py code served (permissive licence) · get_code("48f0c42461d04867") 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. 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 tensorflow as tf
ARGS = {
"learning_rate": 0.001,
"optimizer": None,
"loss": None,
"metrics": None,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple — a tuple output has no array shape of its own; none is 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
|
| crop_at_center |
Ran ran on a synthesized input |
tobias-liaudat/wf-psf/wf_psf/method_comp_utils.py code served (permissive licence) · get_code("0c51fa80c5127608") 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 Tensor, ndim 2, dtype family float, shape (4, 3) 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 torch
import numpy as np
torch.manual_seed(0)
# Create a small image tensor (2D array with distinct dimensions for probing)
# Shape: (10, 8) - distinct sizes so dimensions can be identified
img = torch.randn(10, 8)
# Define output_size as a tuple specifying desired crop dimensions
output_size = (4, 3)
ARGS = {
"img": img,
"output_size": output_size,
}
- 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 Tensor, ndim 2, dtype family float, shape (4, 3) — shape (4, 3) 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
|
| gen_Pea |
Ran ran on a synthesized input |
tobias-liaudat/wf-psf/wf_psf/graph_utils.py code served (permissive licence) · get_code("6e3f5fbc31f05ba2") 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 2, dtype family float, shape (4, 4) 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
# Create a small pairwise distances matrix
# Using a 4x4 symmetric matrix of distances
np.random.seed(0)
distances = np.random.rand(4, 4)
# Make it symmetric
distances = (distances + distances.T) / 2
# Ensure diagonal is small positive values (distances from point to itself)
np.fill_diagonal(distances, 0.1)
# Parameters for the function
e = 2.0 # exponent parameter
a = 1.5 # diagonal multiplier parameter
ARGS = {
"distances": distances,
"e": e,
"a": a,
}
- 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 ndarray, ndim 2, dtype family float, shape (4, 4) — shape (4, 4) 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
|
| get_number_of_stars |
Ran ran on a synthesized input |
cosmostat/wf-psf/src/wf_psf/plotting/plots_interface.py code served (permissive licence) · get_code("7b14212fa4ca487c") 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 int; 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
import re
# Construct a valid metrics dictionary for the function
# The function expects a dict where:
# - keys are arbitrary (used in items())
# - values are lists of dicts
# - each inner dict has a single key (run_id) that contains digits
metrics = {
"experiment_1": [
{"run_100_stars": {"accuracy": 0.95}},
{"run_250_stars": {"accuracy": 0.97}}
],
"experiment_2": [
{"run_50_stars": {"accuracy": 0.92}},
{"run_150_stars": {"accuracy": 0.94}}
]
}
ARGS = {
"metrics": metrics
}
- 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 list, ndim 1, dtype family int — 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
|
| l1_schedule_rule |
Ran ran on a synthesized input |
cosmostat/wf-psf/src/wf_psf/training/train_utils.py code served (permissive licence) · get_code("2f29a1b35d5b0125") 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 logging
logger = logging.getLogger(__name__)
def l1_schedule_rule(epoch_n: int, l1_rate: float) -> float:
"""
Schedule the L1 rate based on the epoch number.
If the current epoch is a multiple of 10 (except for the first epoch),
the L1 rate is halved. Otherwise, the L1 rate remains unchanged.
Parameters
----------
epoch_n: int
The current epoch number, where the epoch index starts from 0.
l1_rate: float
The current L1 regularization rate.
Returns
-------
float
The updated L1 rate for the given epoch.
"""
if epoch_n != 0 and epoch_n % 10 == 0:
scheduled_l1_rate = l1_rate / 2
logger.info(f'Epoch {epoch_n:05d}: L1 rate is {scheduled_l1_rate:0.4e}.')
return scheduled_l1_rate
return l1_rate
ARGS = {
"epoch_n": 10,
"l1_rate": 0.001,
}
- 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 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
|
| masked_mse |
Ran ran on a synthesized input |
cosmostat/wf-psf/src/wf_psf/training/train_utils.py code served (permissive licence) · get_code("2c0a2a340ea4921a") 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 EagerTensor, 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 tensorflow as tf
import numpy as np
# Set seed for reproducibility
tf.random.set_seed(0)
np.random.seed(0)
# Create small tensors with distinct dimensions
batch_size = 2
height = 4
width = 3
# y_true: shape (batch, height, width)
y_true = tf.constant(np.random.randn(batch_size, height, width), dtype=tf.float32)
# y_pred: shape (batch, height, width)
y_pred = tf.constant(np.random.randn(batch_size, height, width), dtype=tf.float32)
# mask: shape (batch, height, width) with values in [0, 1]
# 0 means include, 1 means ignore, (0,1) means partial weight
mask = tf.constant(np.random.uniform(0, 1, (batch_size, height, width)), dtype=tf.float32)
# sample_weight: shape (batch,) - optional per-sample weights
sample_weight = tf.constant(np.random.uniform(0.5, 1.5, (batch_size,)), dtype=tf.float32)
ARGS = {
"y_true": y_true,
"y_pred": y_pred,
"mask": mask,
"sample_weight": sample_weight,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type EagerTensor, 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
|
| pairwise_distances |
Ran ran on a synthesized input |
tobias-liaudat/wf-psf/wf_psf/graph_utils.py code served (permissive licence) · get_code("7e39131e0575e26d") 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 2, dtype family float, shape (3, 3) 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
# Create a small array of observation positions
# obs_pos should be shape (n_observations, 2) where each row is [x, y]
obs_pos = np.array([
[0.0, 0.0],
[1.0, 1.0],
[2.0, 0.5]
], dtype=np.float32)
ARGS = {
"obs_pos": obs_pos
}
- 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 ndarray, ndim 2, dtype family float, shape (3, 3) — shape (3, 3) 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
|
| register_psfclass |
Ran ran on a synthesized input |
cosmostat/wf-psf/src/wf_psf/psf_models/psf_models.py code served (permissive licence) · get_code("f7055178f3186e36") 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 type. 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 logging
logger = logging.getLogger(__name__)
class MockPSFFactory:
"""Mock PSF Factory class with ids attribute."""
ids = ["psf_type_1", "psf_type_2", "psf_type_3"]
ARGS = {
"psf_factory_class": MockPSFFactory
}
- 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 type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
|
| compute_ccd_misalignment |
Not yet run unverified (harvested, no recorded run) |
cosmostat/wf-psf/src/wf_psf/instrument/ccd_misalignments.py code served (permissive licence) · get_code("0403f663df07ae1d") How it ran |
| match_psfs |
Not yet run unverified (harvested, no recorded run) |
tobias-liaudat/wf-psf/wf_psf/method_comp_utils.py code served (permissive licence) · get_code("28c66cd70d05c7ca") How it ran |
| select_vstar |
Not yet run unverified (harvested, no recorded run) |
tobias-liaudat/wf-psf/wf_psf/graph_utils.py code served (permissive licence) · get_code("b386bb52465d191a") How it ran |
| set_psf_model |
Not yet run unverified (harvested, no recorded run) |
cosmostat/wf-psf/src/wf_psf/psf_models/psf_models.py code served (permissive licence) · get_code("38aabee8e512ab42") How it ran |