SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1802.10157 · 2018

SCARLET: Source separation in multi-band images by Constrained Matrix Factorization

arXiv · PDF · Open in the Atlas

Code that ran

27 of 37 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 25 have no contract verdict; 2 failures of our instrument; 10 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1802.10157.json · badge: /api/ran/1802.10157.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
fred3m/scarlet canonical (classifier label)
classifier basis: census
10 ran · 5 no recorded run
pmelchior/scarlet canonical (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
gcmshadow/scarlet community (classifier label)
classifier basis not recorded on the link
8 ran · 3 no recorded run
herjy/scarlet community (classifier label)
classifier basis not recorded on the link
7 ran · 1 no recorded run
FunctionStatusWhere it lives
box_intersect Ran
ran on a synthesized input
fred3m/scarlet/scarlet/detect.py
code served (permissive licence) · get_code("fa5a71fd35d529a5")
How it ran

Ran 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 bool, 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 torch
import numpy as np

# Create a minimal Box class that supports the & operator
class Box:
    def __init__(self, shape):
        """
        Initialize a Box with a given shape.
        The & operator should return an object with a .shape attribute.
        """
        self._shape = shape
    
    @property
    def shape(self):
        return self._shape
    
    def __and__(self, other):
        """
        Implement the & operator to return a Box representing intersection.
        For testing, we'll create boxes that either overlap or don't.
        """
        # Return a box with non-zero shape (overlap exists)
        return Box((2, 3))

# Test with overlapping boxes
box1 = Box((4, 5))
box2 = Box((4, 5))

ARGS = {
    "box1": box1,
    "box2": box2,
}
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 bool, 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
channels_to_rgb Ran
ran on a synthesized input
fred3m/scarlet/scarlet/display.py
code served (permissive licence) · get_code("609f46126e6fdd0c")
How it ran

Ran 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

ARGS = {
    "channels": 3
}
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
channels_to_rgb Ran
ran on a synthesized input
gcmshadow/scarlet/scarlet/display.py
code served (permissive licence) · get_code("4a469f49e50f19d7")
How it ran

Ran 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

def channels_to_rgb(channels):
    """Get the linear mapping of multiple channels to RGB channels
    The mapping created here assumes the the channels are ordered in wavelength
    direction, starting with the shortest wavelength. The mapping seeks to produce
    a relatively even weights for across all channels. It does not consider e.g.
    signal-to-noise variations across channels or human perception.
    Parameters
    ----------
    channels: int in range(0,7)
        Number of channels
    Returns
    -------
    array (3, channels) to map onto RGB
    """
    assert channels in range(0, 7), 'No mapping has been implemented for more than {} channels'.format(channels)
    channel_map = np.zeros((3, channels))
    if channels == 1:
        channel_map[0, 0] = channel_map[1, 0] = channel_map[2, 0] = 1
    elif channels == 2:
        channel_map[0, 1] = 0.667
        channel_map[1, 1] = 0.333
        channel_map[1, 0] = 0.333
        channel_map[2, 0] = 0.667
        channel_map /= 0.667
    elif channels == 3:
        channel_map[0, 2] = 1
        channel_map[1, 1] = 1
        channel_map[2, 0] = 1
    elif channels == 4:
        channel_map[0, 3] = 1
        channel_map[0, 2] = 0.333
        channel_map[1, 2] = 0.667
        channel_map[1, 1] = 0.667
        channel_map[2, 1] = 0.333
        channel_map[2, 0] = 1
        channel_map /= 1.333
    elif channels == 5:
        channel_map[0, 4] = 1
        channel_map[0, 3] = 0.667
        channel_map[1, 3] = 0.333
        channel_map[1, 2] = 1
        channel_map[1, 1] = 0.333
        channel_map[2, 1] = 0.667
        channel_map[2, 0] = 1
        channel_map /= 1.667
    elif channels == 6:
        channel_map[0, 5] = 1
        channel_map[0, 4] = 0.667
        channel_map[0, 3] = 0.333
        channel_map[1, 4] = 0.333
        channel_map[1, 3] = 0.667
        channel_map[1, 2] = 0.667
        channel_map[1, 1] = 0.333
        channel_map[2, 2] = 0.333
        channel_map[2, 1] = 0.667
        channel_map[2, 0] = 1
        channel_map /= 2
    return channel_map

ARGS = {
    "channels": 3
}
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
common_projections Ran
ran on a synthesized input
gcmshadow/scarlet/scarlet/interpolation.py
code served (permissive licence) · get_code("c7b3bea951cfab74")
How it ran

Ran 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 3, 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

# Create two sample 2D images with distinct sizes
img1 = np.random.rand(4, 5).astype(np.float32)  # 4x5 image
img2 = np.random.rand(6, 7).astype(np.float32)  # 6x7 image

ARGS = {
    "img1": img1,
    "img2": img2,
}
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 3, 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
double_gaussian Ran
ran on a synthesized input
herjy/scarlet/scarlet/psf_match.py
code served (permissive licence) · get_code("01028fe9d12d2260")
How it ran

Ran 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, 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 coordinate grids for the function
Y, X = np.meshgrid(np.linspace(0, 10, 4), np.linspace(0, 10, 3))
coords = (Y, X)

# Define parameters for double_gaussian
y0 = 5.0
x0 = 5.0
A1 = 1.0
sigma1 = 1.5
A2 = 0.8
sigma2 = 2.0

ARGS = {
    'coords': coords,
    'y0': y0,
    'x0': x0,
    'A1': A1,
    'sigma1': sigma1,
    'A2': A2,
    'sigma2': sigma2
}
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, 4) — shape (3, 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
fast_zero_pad Ran
ran on a synthesized input
fred3m/scarlet/scarlet/fft.py
code served (permissive licence) · get_code("c762972251944add")
How it ran

Ran 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, 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 autograd.numpy as np

# Create a small test array
arr = np.array([[1.0, 2.0, 3.0],
                [4.0, 5.0, 6.0]])

# Define pad_width as a tuple of tuples
# Format: ((top, bottom), (left, right))
pad_width = ((1, 1), (2, 2))

ARGS = {
    "arr": arr,
    "pad_width": pad_width
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
autograd — 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, 7) — shape (4, 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
flux Ran
ran on a synthesized input
gcmshadow/scarlet/scarlet/measure.py
code served (permissive licence) · get_code("5dfc438d66678b96")
How it ran

Ran 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 1, dtype family float, shape (2,) 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)

class MockComponent:
    def __init__(self):
        self.frame = (0, 0, 4, 5)
        self.bbox = (1, 1, 3, 4)
        self._model = torch.randn(2, 4, 3)
    
    def set_frame(self, frame):
        self.frame = frame
    
    def get_model(self):
        return self._model

ARGS = {
    "component": MockComponent()
}
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 1, dtype family float, shape (2,) — shape (2,) 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
gaussian Ran
ran on a synthesized input
herjy/scarlet/scarlet/psf_match.py
code served (permissive licence) · get_code("03d84bdc8fd219c3")
How it ran

Ran 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 coordinate grids for a small 4x3 spatial region
Y, X = np.meshgrid(np.arange(4), np.arange(3), indexing='ij')
coords = (Y, X)

# Define parameters for the Gaussian function
y0 = 1.5  # center y coordinate
x0 = 1.0  # center x coordinate
amplitude = 2.0  # peak amplitude
sigma = 0.8  # standard deviation (controls width)

ARGS = {
    'coords': coords,
    'y0': y0,
    'x0': x0,
    'amplitude': amplitude,
    'sigma': sigma
}
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
get_best_fit_sed Ran
ran on a synthesized input
herjy/scarlet/scarlet/source.py
code served (permissive licence) · get_code("7838796abb4c9a6a")
How it ran

Ran 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, 2) 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

# Analyze the function:
# - img: reshaped to (B, -1), so needs to be array-like with first dim = B
# - S: used in np.dot(S, S.T) and np.dot(S, Y.T), so needs shape (components, features)
# - The function solves: min_A ||img - AS||^2
# - img should have shape (B, height, width) or similar
# - S should have shape (num_components, num_features)

# Create small test data
B = 2  # batch size
num_components = 3
num_features = 4
height = 2
width = 2

# img: shape (B, height, width) - a batch of 2 images, 2x2 each
img = np.random.randn(B, height, width).astype(np.float64)

# S: shape (num_components, num_features) - SED templates
# num_features should match height*width after reshaping img
num_features = height * width
S = np.random.randn(num_components, num_features).astype(np.float64)

ARGS = {
    "img": img,
    "S": S,
}
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, 2) — shape (3, 2) 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_blend Ran
ran; our contract draft was wrong, not the code
pmelchior/scarlet/scarlet/testing/api.py
code served (permissive licence) · get_code("5b1edbc5178af928")
How it ran

Ran 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 NpzFile. 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 os
import numpy as np
from io import BytesIO
import tempfile

# Create a temporary directory with a sample .npz file for testing
temp_dir = tempfile.mkdtemp()

# Create a sample .npz file
sample_data = {
    'array1': np.array([1, 2, 3, 4]),
    'array2': np.array([[1, 2], [3, 4]])
}
npz_path = os.path.join(temp_dir, 'test_blend.npz')
np.savez(npz_path, **sample_data)

# Define ARGS
ARGS = {
    'blend_id': 'test_blend',
    'path': temp_dir
}
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 NpzFile — a NpzFile output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NpzFile output the recorded ndim 1 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
get_filter_bounds Ran
ran on a synthesized input
fred3m/scarlet/scarlet/interpolation.py
code served (permissive licence) · get_code("5129633075a467cf")
How it ran

Ran 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 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

# Create a small coordinates array
# The function expects coords with shape (n, 2) where each row is [y_coord, x_coord]
# Including both positive and negative coordinates to test the bounds logic
coords = np.array([
    [-2, 1],
    [1, -3],
    [0, 2],
    [3, -1]
], dtype=int)

ARGS = {
    "coords": coords
}
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 int — 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
get_filter_coords Ran
ran on a synthesized input
fred3m/scarlet/scarlet/interpolation.py
code served (permissive licence) · get_code("ae372a6b1295d160")
How it ran

Ran 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 int, shape (3, 3, 2) 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 2D filter array with odd dimensions
filter_values = np.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0]
])

# Test case 1: without explicit center (will be auto-calculated)
ARGS = {
    'filter_values': filter_values,
    'center': None
}
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 3, dtype family int, shape (3, 3, 2) — shape (3, 3, 2) 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_filter_slices Ran
ran on a synthesized input
herjy/scarlet/scarlet/transformation.py
code served (permissive licence) · get_code("0797f19575911143")
How it ran

Ran 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 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

# Create a small coordinate array
# The function expects coords to be a 2D array where:
# - coords[:, 0] contains y coordinates
# - coords[:, 1] contains x coordinates
# We'll create a 4x2 array (4 coordinates, each with x and y)
coords = np.array([
    [1, 2],      # y=1, x=2
    [-1, 3],     # y=-1, x=3
    [0, -2],     # y=0, x=-2
    [2, 1]       # y=2, x=1
], dtype=int)

ARGS = {
    "coords": coords
}
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 int — 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
get_local_blend_ids Ran
ran; our contract draft was wrong, not the code
pmelchior/scarlet/scarlet/testing/api.py
code served (permissive licence) · get_code("c9ae8bfcd6a8134f")
How it ran

Ran 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 os
import tempfile
from typing import List

# Create a temporary directory with some blend files
temp_dir = tempfile.mkdtemp()

# Create some test blend files with names that will be split by '.'
blend_filenames = [
    "blend_001.blend",
    "blend_002.blend",
    "blend_003.blend",
    "model_alpha.blend",
    "scene_beta.blend"
]

for filename in blend_filenames:
    filepath = os.path.join(temp_dir, filename)
    with open(filepath, 'w') as f:
        f.write("")  # Create empty files

ARGS = {
    "path": temp_dir
}
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 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
get_minimal_boxsize Ran
ran on a synthesized input
fred3m/scarlet/scarlet/initialization.py
code served (permissive licence) · get_code("0fc8fb03cebac2b4")
How it ran

Ran 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 int, ndim 0, dtype family int, 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 torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    "size": 100,
    "min_size": 21,
    "increment": 10,
}
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 int, ndim 0, dtype family int, 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
get_model Ran
ran on a synthesized input
gcmshadow/scarlet/scarlet/measure.py
code served (permissive licence) · get_code("8f54c0b99cc9d4b9")
How it ran

Ran 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 Linear. 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
import torch.nn as nn

torch.manual_seed(0)

class MockComponent:
    def __init__(self):
        self.frame = torch.tensor([[1.0, 2.0, 3.0, 4.0]])
        self.bbox = torch.tensor([[0.5, 1.5, 2.5, 3.5]])
        self._model = nn.Linear(4, 2)
        self._frame_history = []
    
    def set_frame(self, frame):
        self._frame_history.append(frame)
        self.frame = frame
    
    def get_model(self):
        return self._model

component = MockComponent()

ARGS = {
    "component": component
}
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 Linear — a Linear output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Linear 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
get_pixel_spectrum Ran
ran on a synthesized input
fred3m/scarlet/scarlet/initialization.py
code served (permissive licence) · get_code("380a95e22f8af0a6")
How it ran

Ran 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 1, dtype family float, shape (6,) 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
import logging

logging.basicConfig(level=logging.INFO)

class MockPSF:
    """Mock PSF object that provides get_model() method"""
    def get_model(self):
        # Returns (channels, height, width) array
        psf_array = np.random.rand(3, 5, 5)
        return psf_array


class MockObservation:
    """Mock Observation object with required attributes and methods"""
    def __init__(self, channels=3, height=8, width=8, has_psf=False):
        # data shape: (channels, height, width)
        self.data = np.random.rand(channels, height, width) + 0.1
        self.psf = MockPSF() if has_psf else None
    
    def get_pixel(self, sky_coord):
        # Returns pixel coordinates as array-like
        # sky_coord is a tuple, return normalized pixel position
        return np.array([3.5, 4.2])


# Create mock observations
obs1 = MockObservation(channels=3, height=8, width=8, has_psf=False)
obs2 = MockObservation(channels=3, height=8, width=8, has_psf=False)

# Create mock models (rendered models for source in each observation)
model1 = np.random.rand(3, 8, 8) + 0.01
model2 = np.random.rand(3, 8, 8) + 0.01

ARGS = {
    'sky_coord': (4.0, 5.0),
    'observations': [obs1, obs2],
    'correct_psf': False,
    'models': [model1, model2],
    'concat': True,
}
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 1, dtype family float, shape (6,) — shape (6,) 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_projection_slices Ran
ran on a synthesized input
fred3m/scarlet/scarlet/interpolation.py
code served (permissive licence) · get_code("5673a4ea33b2749f")
How it ran

Ran 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 numpy as np

torch = None  # not needed for this function

# Create a small test image (2D array)
image = np.random.rand(5, 7).astype(np.float32)

# Create a larger shape for the projection
shape = (12, 14)

# Test case 1: with yx0=None (image will be centered)
ARGS = {
    "image": image,
    "shape": shape,
    "yx0": None,
}
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 — 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
img_to_3channel Ran
ran on a synthesized input
fred3m/scarlet/scarlet/display.py
code served (permissive licence) · get_code("8c1f007c5ddb44ae")
How it ran

Ran 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 (3, 3, 5) 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 multi-channel image with shape (channels, height, width)
# Using 4 channels, 3 height, 5 width for distinct dimensions
img = np.random.rand(4, 3, 5).astype(np.float32)

# Create a channel map for 4 channels
channel_map = np.array([
    [1.0, 0.333, 0.0, 0.0],
    [0.0, 0.667, 0.667, 0.0],
    [0.0, 0.0, 0.333, 1.0]
], dtype=np.float32)

ARGS = {
    "img": img,
    "channel_map": channel_map,
    "fill_value": 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 ndarray, ndim 3, dtype family float, shape (3, 3, 5) — shape (3, 3, 5) 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
img_to_3channel Ran
ran on a synthesized input
gcmshadow/scarlet/scarlet/display.py
code served (permissive licence) · get_code("def0a10810077962")
How it ran

Ran 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 (3, 5, 6) 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 test image with 4 channels, height 5, width 6
img = np.random.rand(4, 5, 6).astype(np.float32)

# Create channel_map manually (3 x 4)
channel_map = np.array([
    [1.0, 0.5, 0.0, 0.0],
    [0.0, 0.5, 1.0, 0.0],
    [0.0, 0.0, 0.0, 1.0]
], dtype=np.float32)

fill_value = 0.0

ARGS = {
    "img": img,
    "channel_map": channel_map,
    "fill_value": fill_value
}
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 3, dtype family float, shape (3, 5, 6) — shape (3, 5, 6) 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
moffat Ran
ran on a synthesized input
herjy/scarlet/scarlet/psf_match.py
code served (permissive licence) · get_code("025cdf3ba20ed087")
How it ran

Ran 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; no output shape is stated. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-26T21:52:49Z. 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

torch.manual_seed(0)

# Create coordinate grids for the moffat function
# The function expects coords to be a tuple of (Y, X) where each is a 2D array
y_coords = torch.linspace(0, 10, 4)
x_coords = torch.linspace(0, 10, 3)
Y, X = torch.meshgrid(y_coords, x_coords, indexing='ij')

coords = (Y, X)

# Define scalar parameters for the moffat function
y0 = 5.0
x0 = 5.0
amplitude = 10.0
alpha = 2.0
beta = 1.5

ARGS = {
    'coords': coords,
    'y0': y0,
    'x0': x0,
    'amplitude': amplitude,
    'alpha': alpha,
    'beta': beta
}
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 — no output shape is stated: no later run recorded an output shape for this sample (observed_output and metamorphic_properties carry none; shape_contract and output_contract record ndim only)
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 syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); 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
overlapped_slices Ran
ran on a synthesized input
fred3m/scarlet/scarlet/bbox.py
code served (permissive licence) · get_code("cb492b5b0a9c4153")
How it ran

Ran 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 torch
import numpy as np

# Create a stand-in Box class that mimics scarlet.bbox.Box
class Box:
    def __init__(self, origin, shape):
        """
        origin: tuple of starting indices (y, x)
        shape: tuple of box dimensions (height, width)
        """
        self.origin = np.array(origin)
        self.shape = np.array(shape)
    
    def __and__(self, other):
        """Intersection operator (&) - returns overlapping Box"""
        # Calculate overlapping region
        min_origin = np.maximum(self.origin, other.origin)
        max_end_self = self.origin + self.shape
        max_end_other = other.origin + other.shape
        max_end = np.minimum(max_end_self, max_end_other)
        
        overlap_shape = np.maximum(0, max_end - min_origin)
        return Box(min_origin, overlap_shape)
    
    def __sub__(self, origin):
        """Subtraction operator (-) - translates box by origin"""
        new_origin = self.origin - np.array(origin)
        return Box(new_origin, self.shape)
    
    @property
    def slices(self):
        """Returns tuple of slice objects for array indexing"""
        slices = tuple(
            slice(int(self.origin[i]), int(self.origin[i] + self.shape[i]))
            for i in range(len(self.origin))
        )
        return slices

# Create two overlapping bounding boxes
bbox1 = Box(origin=(2, 3), shape=(5, 6))
bbox2 = Box(origin=(4, 5), shape=(4, 5))

ARGS = {
    "bbox1": bbox1,
    "bbox2": bbox2,
}
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 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
project_image Ran
ran on a synthesized input
gcmshadow/scarlet/scarlet/interpolation.py
code served (permissive licence) · get_code("399194c75ab1ab15")
How it ran

Ran 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 (12, 14) 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 2D image
image = np.random.rand(5, 7).astype(np.float32)

# Define the shape of the projection (larger than the image)
shape = (12, 14)

# Set yx0 to None to center the image (or could specify explicit coordinates)
yx0 = None

ARGS = {
    "image": image,
    "shape": shape,
    "yx0": yx0,
}
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 (12, 14) — shape (12, 14) 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
prox_cone Ran
ran on a synthesized input
gcmshadow/scarlet/scarlet/operator.py
code served (permissive licence) · get_code("e3f100ed55e5130f")
How it ran

Ran 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 (2, 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

# Analyzing the function prox_cone:
# - X: 2D numpy array with shape (k, n) - used as X[i] and X[i] = Y
# - step: numeric parameter (used in function signature but not in body)
# - G: optional parameter, defaults to None, but used in the function body as G[j]
#      G appears to be a list/array of vectors of length n

# The function iterates:
# - k times (rows of X)
# - n times (columns/dimensions)
# - For each row, it creates Vs list and calls find_Q, find_relevant_dim, use_relevant_dim

# Sizing strategy:
# - k = 2 (small batch size)
# - n = 4 (small dimension size)
# - G should be a list of n vectors, each of length n

k = 2
n = 4

# Create X: shape (2, 4) - small test matrix
X = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
], dtype=np.float64)

# Create G: list of n vectors, each of length n
# These represent constraint normals/directions
G = [
    np.array([1.0, 0.0, 0.0, 0.0], dtype=np.float64),
    np.array([0.0, 1.0, 0.0, 0.0], dtype=np.float64),
    np.array([0.0, 0.0, 1.0, 0.0], dtype=np.float64),
    np.array([0.0, 0.0, 0.0, 1.0], dtype=np.float64),
]

# step parameter - numeric value
step = 0.1

ARGS = {
    'X': X,
    'step': step,
    'G': G,
}
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 (2, 4) — shape (2, 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
sort_by_radius Ran
ran on a synthesized input
gcmshadow/scarlet/scarlet/operator.py
code served (permissive licence) · get_code("22f8a375d9af043a")
How it ran

Ran 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 1, dtype family int, shape (12,) 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

ARGS = {
    "shape": (4, 3),
    "center": None,
}
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 1, dtype family int, shape (12,) — shape (12,) 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
sort_by_radius Ran
ran on a synthesized input
herjy/scarlet/scarlet/operator.py
code served (permissive licence) · get_code("73eab8ee673489ad")
How it ran

Ran 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 1, dtype family int, shape (3072,) 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

ARGS = {
    "shape": (64, 48)
}
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 1, dtype family int, shape (3072,) — shape (3072,) 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
zscale Ran
ran on a synthesized input
herjy/scarlet/scarlet/display.py
code served (permissive licence) · get_code("c18eceb1e0fae726")
How it ran

Ran 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

# Create a small test image as a numpy array
# The function expects an array with .size attribute and .reshape() method
img = np.random.rand(10, 8).astype(np.float32)

ARGS = {
    "img": img,
    "contrast": 0.25,
    "samples": 500,
    "fraction": 0.75
}
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
bounds_to_bbox Not yet run
unverified (harvested, no recorded run)
fred3m/scarlet/scarlet/detect.py
code served (permissive licence) · get_code("7685bd9e0b61668e")
How it ran

no invocation recorded.

convolve Not yet run
unverified (harvested, no recorded run)
fred3m/scarlet/scarlet/fft.py
code served (permissive licence) · get_code("f64f9f315400a3ed")
How it ran

no invocation recorded.

convolve Not yet run
unverified (harvested, no recorded run)
gcmshadow/scarlet/scarlet/fft.py
code served (permissive licence) · get_code("e6458fe124e7e5ee")
How it ran

no invocation recorded.

footprint_intersect Not yet run
unverified (harvested, no recorded run)
fred3m/scarlet/scarlet/detect.py
code served (permissive licence) · get_code("e19d6606be65dbfc")
How it ran

no invocation recorded.

get_blend_ids Not yet run
unverified (harvested, no recorded run)
pmelchior/scarlet/scarlet/testing/api.py
code served (permissive licence) · get_code("e6dcb05d3d66201a")
How it ran

no invocation recorded.

get_psf_spectrum Not yet run
unverified (harvested, no recorded run)
fred3m/scarlet/scarlet/initialization.py
code served (permissive licence) · get_code("0a1925f2ef97f7b1")
How it ran

no invocation recorded.

match_psf Not yet run
unverified (harvested, no recorded run)
fred3m/scarlet/scarlet/fft.py
code served (permissive licence) · get_code("47543c70ea3e72ce")
How it ran

no invocation recorded.

match_psfs Not yet run
unverified (harvested, no recorded run)
gcmshadow/scarlet/scarlet/fft.py
code served (permissive licence) · get_code("b78c5b0837a51743")
How it ran

no invocation recorded.

max_pixel Not yet run
unverified (harvested, no recorded run)
gcmshadow/scarlet/scarlet/measure.py
code served (permissive licence) · get_code("03c08ce8d98ca390")
How it ran

no invocation recorded.

prox_strict_monotonic Not yet run
unverified (harvested, no recorded run)
herjy/scarlet/scarlet/operator.py
code served (permissive licence) · get_code("af8381e2c1ce599f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 37 samples lifted from this paper's linked repositories, 37 carry a function identity and 0 do not. Of the 36 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 36 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We present the source separation framework SCARLET for multi-band images, which is based on a generalization of the Non-negative Matrix Factorization to alternative and several simultaneous constraints. Our approach describes the observed scene as a mixture of components with compact spatial support and uniform spectra over their support. We present the algorithm to perform the matrix factorization and introduce constraints that are useful for optical images of stars and distinct stellar populations in galaxies, in particular symmetry and monotonicity with respect to the source peak position. We also derive the treatment of correlated noise and convolutions with band-dependent point spread functions, rendering our approach applicable to coadded images observed under variable seeing conditions. SCARLET thus yields a PSF-matched photometry measurement with an optimally chosen weight function given by the mean morphology in all available bands. We demonstrate the performance of SCARLET for deblending crowded extragalactic scenes and on an AGN jet -- host galaxy separation problem in deep 5-band imaging from the Hyper Suprime-Cam Stategic Survey Program. Using simulations with prominent crowding we show that SCARLET yields superior results to the HSC-SDSS deblender for the recovery of total fluxes, colors, and morphologies. Due to its non-parametric nature, a conceptual limitation of SCARLET is its sensitivity to undetected sources or multiple stellar population within detected sources, but an iterative strategy that adds components at the location of significant residuals appears promising. The code is implemented in Python with C++ extensions and is available at https://github.com/fred3m/scarlet

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1802.10157")
get_code_for_paper("1802.10157")
have("1802.10157")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1802.10157.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1802.10157.svg)](https://syntology.ai/paper/1802.10157)

Connect an agent — have() is free.