SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2003.11036 · 2020

Detecting Multiple DLAs per Spectrum in SDSS DR12 with Gaussian Processes

arXiv · PDF · Open in the Atlas

Code that ran

7 of 13 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 7 have no contract verdict; 0 failures of our instrument; 6 no recorded run), measured 2026-11-22; 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/2003.11036.json · badge: /api/ran/2003.11036.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
jibanCat/desi_gpy_dla_detection community (classifier label)
classifier basis not recorded on the link
6 ran · 3 no recorded run
jibanCat/gpy_dla_detection community (classifier label)
classifier basis not recorded on the link
1 ran · 3 no recorded run
FunctionStatusWhere it lives
compute_1sigma_errors Ran
ran on a synthesized input
jibanCat/desi_gpy_dla_detection/gpy_dla_detection/compute_1sigma_errors.py
code served (permissive licence) · get_code("022f797d0dfdd328")
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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create MAP estimates for z_dlas and log_nhi
# Shape: (number of detected DLAs,) - using 3 DLAs as example
num_dlas = 3
MAP_z_dlas = np.array([2.5, 3.2, 1.8])
MAP_log_nhi = np.array([20.5, 21.2, 20.1])

# Create sample data
# Shape: (10000,) - large sample set
num_samples = 10000

# Generate samples around the MAP values with some spread
sample_z_dlas = np.random.normal(loc=2.5, scale=0.15, size=num_samples)
sample_log_nhi_samples = np.random.normal(loc=20.6, scale=0.6, size=num_samples)

# Generate log likelihoods - higher values near MAP estimates
sample_log_likelihoods = -0.5 * (
    ((sample_z_dlas - 2.5) / 0.1) ** 2 + 
    ((sample_log_nhi_samples - 20.6) / 0.3) ** 2
)

ARGS = {
    "MAP_z_dlas": MAP_z_dlas,
    "MAP_log_nhi": MAP_log_nhi,
    "sample_z_dlas": sample_z_dlas,
    "sample_log_nhi_samples": sample_log_nhi_samples,
    "sample_log_likelihoods": sample_log_likelihoods,
}
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 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_pca Ran
ran on a synthesized input
jibanCat/desi_gpy_dla_detection/gpy_dla_detection/learn_qso_model.py
code served (permissive licence) · get_code("2ac30eb42d1d6c6a")
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
from sklearn.decomposition import PCA

# Create small centered flux data
# Shape: (n_samples, n_features)
# Using 2 samples, 4 features to keep it tiny
np.random.seed(0)
centered_fluxes = np.random.randn(2, 4)

# Center the data to make it truly centered
centered_fluxes = centered_fluxes - centered_fluxes.mean(axis=0)

ARGS = {
    "centered_fluxes": centered_fluxes,
    "num_components": 2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
log_prior Ran
ran on a synthesized input
jibanCat/desi_gpy_dla_detection/gpy_dla_detection/civ_log_posterior_mcmc.py
code served (permissive licence) · get_code("8f0c7d82e160263d")
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 float64, ndim 0, 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

# Define a simple PDF function that takes log_nciv as input
def simple_pdf(log_nciv):
    """A simple probability density function for log_nciv"""
    # Returns a small positive value
    return np.exp(-0.5 * log_nciv**2)

# Set up parameter values
z_civ = 2.5
log_nciv = 12.5
sigma = 0.8
min_z_civ = 0.0
max_z_civ = 5.0
min_log_nciv = 10.0
max_log_nciv = 15.0
min_sigma = 0.1
max_sigma = 2.0
pdf = simple_pdf

ARGS = {
    "z_civ": z_civ,
    "log_nciv": log_nciv,
    "sigma": sigma,
    "min_z_civ": min_z_civ,
    "max_z_civ": max_z_civ,
    "min_log_nciv": min_log_nciv,
    "max_log_nciv": max_log_nciv,
    "min_sigma": min_sigma,
    "max_sigma": max_sigma,
    "pdf": pdf
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
log_prior Ran
ran on a synthesized input
jibanCat/gpy_dla_detection/gpy_dla_detection/log_posterior_mcmc.py
code served (permissive licence) · get_code("ba1656569f75254c")
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 float64, ndim 0, 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

# Define a simple PDF function that takes log_nhi as input
def simple_pdf(log_nhi):
    """A simple data-driven prior PDF for logNHI"""
    # Return a probability density value between 0 and 1
    # Using a simple gaussian-like function centered around log_nhi=20
    return np.exp(-0.5 * ((log_nhi - 20.5) ** 2) / (2 ** 2))

ARGS = {
    "z_dla": 2.5,
    "log_nhi": 20.3,
    "min_z_dla": 0.0,
    "max_z_dla": 5.0,
    "min_log_nhi": 19.0,
    "max_log_nhi": 22.0,
    "pdf": simple_pdf,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
read_single_folder Ran
ran on a synthesized input
jibanCat/desi_gpy_dla_detection/gpy_dla_detection/desi_spectrum_reader.py
code served (permissive licence) · get_code("1bba51d8c45dd38e")
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 os
import tempfile
import shutil

# Create a temporary directory structure with the required files
temp_dir = tempfile.mkdtemp()
folder_path = os.path.join(temp_dir, "test_folder")
os.makedirs(folder_path, exist_ok=True)

# Create dummy spectra and zbest files
spectra_file = os.path.join(folder_path, "spectra-brick-0.fits")
zbest_file = os.path.join(folder_path, "zbest-brick-0.fits")

# Create empty files to simulate the required files
with open(spectra_file, 'w') as f:
    f.write("dummy spectra content")

with open(zbest_file, 'w') as f:
    f.write("dummy zbest content")

ARGS = {
    "folder_path": folder_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
searchsorted_method Ran
ran on a synthesized input
jibanCat/desi_gpy_dla_detection/gpy_dla_detection/dla_gp.py
code served (permissive licence) · get_code("6643fe6830fa209c")
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 (10,) 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

# Set random seed for reproducibility
np.random.seed(42)

# W is a 1D array of weights (should be non-negative)
# N is an integer representing the number of samples to draw
W = np.array([0.1, 0.2, 0.3, 0.4])
N = 10

ARGS = {
    "W": W,
    "N": N,
}
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 (10,) — shape (10,) 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
select_region_indices_searchsorted Ran
ran on a synthesized input
jibanCat/desi_gpy_dla_detection/gpy_dla_detection/dla_gp.py
code served (permissive licence) · get_code("d6611d7723100dd8")
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 (0,) 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

# Set random seed for reproducibility
np.random.seed(0)

# Create small sample data for the function
N_scan = 5
N_total = 10

# initial_z: redshift samples from initial scan
initial_z = np.array([0.5, 1.2, 1.8, 2.3, 3.1])

# initial_logL: log-likelihood values corresponding to initial_z
initial_logL = np.array([-10.5, -5.2, -3.1, -8.0, -2.5])

# z_all: full set of redshift values to be filtered
z_all = np.array([0.48, 0.51, 0.52, 1.15, 1.25, 1.80, 1.82, 2.25, 3.05, 3.15])

# z_tol: redshift tolerance window
z_tol = 0.02

# logL_null: log-likelihood threshold (None means use max of initial_logL)
logL_null = None

ARGS = {
    "initial_z": initial_z,
    "initial_logL": initial_logL,
    "z_all": z_all,
    "z_tol": z_tol,
    "logL_null": logL_null,
}
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 (0,) — shape (0,) 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
effective_optical_depth Not yet run
unverified (harvested, no recorded run)
jibanCat/gpy_dla_detection/gpy_dla_detection/effective_optical_depth.py
code served (permissive licence) · get_code("3d95104cef874ae9")
How it ran

no invocation recorded.

load_checkpoint Not yet run
unverified (harvested, no recorded run)
jibanCat/desi_gpy_dla_detection/gpy_dla_detection/learn_qso_model.py
code served (permissive licence) · get_code("37ff6453958c1c15")
How it ran

no invocation recorded.

log_posterior Not yet run
unverified (harvested, no recorded run)
jibanCat/desi_gpy_dla_detection/gpy_dla_detection/civ_log_posterior_mcmc.py
code served (permissive licence) · get_code("e526638297f8bc45")
How it ran

no invocation recorded.

log_posterior Not yet run
unverified (harvested, no recorded run)
jibanCat/gpy_dla_detection/gpy_dla_detection/log_posterior_mcmc.py
code served (permissive licence) · get_code("aeb461c43d91bc2b")
How it ran

no invocation recorded.

sample_log_likelihood_k_civs Not yet run
unverified (harvested, no recorded run)
jibanCat/desi_gpy_dla_detection/gpy_dla_detection/civ_log_posterior_mcmc.py
code served (permissive licence) · get_code("f25adc7747d6f1a1")
How it ran

no invocation recorded.

sample_log_likelihood_k_dlas Not yet run
unverified (harvested, no recorded run)
jibanCat/gpy_dla_detection/gpy_dla_detection/log_posterior_mcmc.py
code served (permissive licence) · get_code("a5b9fa4ad266a3c5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 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 13 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-22.

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 a revised version of our automated technique using Gaussian processes (GPs) to detect Damped Lyman-$α$ absorbers (DLAs) along quasar (QSO) sightlines. The main improvement is to allow our Gaussian process pipeline to detect multiple DLAs along a single sightline. Our DLA detections are regularised by an improved model for the absorption from the Lyman-$α$ forest which improves performance at high redshift. We also introduce a model for unresolved sub-DLAs which reduces mis-classifications of absorbers without detectable damping wings. We compare our results to those of two different large-scale DLA catalogues and provide a catalogue of the processed results of our Gaussian process pipeline using 158 825 Lyman-$α$ spectra from SDSS data release 12. We present updated estimates for the statistical properties of DLAs, including the column density distribution function (CDDF), line density ($dN/dX$), and neutral hydrogen density ($Ω_{\textrm{DLA}}$).

For agents

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

get_harvested_code_for_paper("2003.11036")
get_code_for_paper("2003.11036")
have("2003.11036")

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

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

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

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

Connect an agent — have() is free.