SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.18258 · 2023

Validating full-spectrum fitting with a synthetic integral-field spectroscopic observation of the Milky Way

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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; 1 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 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/2310.18258.json · badge: /api/ran/2310.18258.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
purmortal/galcraft canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
FunctionStatusWhere it lives
age_metal Ran
ran; our contract draft was wrong, not the code
purmortal/galcraft/GalCraft/ssp_utils/pegasehr_interp_util.py
code served (permissive licence) · get_code("93acb5df56ef8231")
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

# Construct valid arguments for age_metal function
# The function extracts age and metallicity from a filename by parsing it
# and indexing into provided grids

# Create age and metal grids - these are arrays that will be indexed
age_grid = np.array([0.5, 1.0, 2.0, 5.0, 10.0])
metal_grid = np.array([-2.0, -1.0, 0.0, 0.2, 0.5])

# Create a filename that follows the expected format
# The function expects: filename[:-4].split('_') to produce indices at positions -2 and -1
# For example: "prefix_data_2_3.txt" -> ["prefix", "data", "2", "3"] -> indices 2 and 3
filename = "spectrum_miles_2_3.txt"

ARGS = {
    "filename": filename,
    "age_grid": age_grid,
    "metal_grid": metal_grid,
}
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
age_metal_alpha Ran
ran; our contract draft was wrong, not the code
purmortal/galcraft/GalCraft/ssp_utils/miles_util.py
code served (permissive licence) · get_code("3ec84add278df4fc")
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

# Create mock MILES filenames that match the expected pattern
# Pattern: Z[m|p]<metallicity>T<age> with optional alpha enhancement
passedFiles = [
    '/path/to/MILES_baseFe_Zm0.40T12.5893.fits',
    '/path/to/MILES_baseFe_Zp0.22T8.5893.fits',
]

ARGS = {
    'passedFiles': passedFiles
}
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
initialize_Dirs Ran
ran; our contract draft was wrong, not the code
purmortal/galcraft/GalCraft/modules/utils.py
code served (permissive licence) · get_code("66acd156f11bf57f")
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

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
config_dir = os.path.join(temp_dir, 'config')
model_dir = os.path.join(temp_dir, 'models')
template_dir = os.path.join(temp_dir, 'templates')
output_dir = os.path.join(temp_dir, 'output')

os.makedirs(config_dir, exist_ok=True)
os.makedirs(model_dir, exist_ok=True)
os.makedirs(template_dir, exist_ok=True)
os.makedirs(output_dir, exist_ok=True)

# Create a default configuration file
default_file = os.path.join(temp_dir, 'default_dirs.txt')
with open(default_file, 'w') as f:
    f.write('# Default directory configuration\n')
    f.write(f'configDir={config_dir}\n')
    f.write(f'modelDir={model_dir}\n')
    f.write(f'templateDir={template_dir}\n')
    f.write(f'outputDir={output_dir}\n')

# Create a minimal CommandOptions class
class CommandOptions:
    def __init__(self, defaultDir):
        self.defaultDir = defaultDir

command_options = CommandOptions(default_file)

ARGS = {
    'CommandOptions': command_options
}
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
process_Oversampling_templates Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
purmortal/galcraft/GalCraft/modules/SSPLoader.py
code served (permissive licence) · get_code("c1b7e6282c9d181b")
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 scipy import ndimage

# Create a small 3D array to represent a star image
star = np.random.rand(4, 5, 6).astype(np.float32)

# Zoom factor for interpolation
factor = 2.0

# Integer indices
i = 0
j = 1
k = 2

ARGS = {
    "star": star,
    "factor": factor,
    "i": i,
    "j": j,
    "k": k
}
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 — 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
reddening_cal00 Ran
ran, violated the contract we drafted
purmortal/galcraft/GalCraft/modules/utils.py
code served (permissive licence) · get_code("ec04e5b69f44d566")
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 (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

# Construct arguments for reddening_cal00
# The function expects:
# - lam: wavelength array in Angstrom
# - ebv: E(B-V) color excess (scalar or array)

# Create wavelength array in Angstrom
# Valid range is 0.12 to 2.2 micrometers = 1200 to 22000 Angstrom
lam = np.array([1500.0, 3000.0, 5500.0, 10000.0])

# E(B-V) color excess - typical values are small (0 to ~1)
ebv = 0.5

ARGS = {
    "lam": lam,
    "ebv": ebv
}
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 (4,) — shape (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
rotate Ran
ran, honoured the contract we drafted
purmortal/galcraft/GalCraft/modules/Cot.py
code served (permissive licence) · get_code("ce8f7e303c8c8a20")
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 numpy as np

# The rotate function takes:
# - th: an angle in degrees (numeric)
# - x: x-coordinate(s) (numeric, can be scalar or array)
# - y: y-coordinate(s) (numeric, can be scalar or array)

ARGS = {
    "th": 45.0,
    "x": 3.0,
    "y": 4.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 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
vactoair Ran
ran, violated the contract we drafted
purmortal/galcraft/GalCraft/ssp_utils/alphaMC_util.py
code served (permissive licence) · get_code("e63cc92982955367")
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 (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 test vacuum wavelengths as a numpy array
vacwl_array = np.array([1000.0, 2500.0, 5000.0, 10000.0])

ARGS = {
    "vacwl": vacwl_array
}
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 (4,) — shape (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
age_metal_alpha Not yet run
unverified (harvested, no recorded run)
purmortal/galcraft/GalCraft/ssp_utils/conroyinmiles_util.py
code served (permissive licence) · get_code("b2edc7d50a0b4220")
How it ran

no invocation recorded.

doppler_shift Not yet run
unverified (harvested, no recorded run)
purmortal/galcraft/GalCraft/modules/utils.py
code served (permissive licence) · get_code("6d54f80f09fbc2e0")
How it ran

no invocation recorded.

Also present in other papers' code

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

Ongoing deep IFS observations of disk galaxies provide opportunities for comparison with the Milky Way (MW) to understand galaxy evolution. However, such comparisons are marred by many challenges such as selection effects, differences in observations and methodology, and proper validation of full-spectrum fitting methods. In this study, we present a novel code GalCraft to address these challenges by generating mock IFS data cubes of the MW using simple stellar population models and a mock MW stellar catalog derived from E-Galaxia. We use the widely adopted full-spectrum fitting code pPXF to investigate the ability to recover kinematics and stellar populations for an edge-on mock MW IFS observation. We confirm that differences in kinematics, mean age, [M/H], and [$α$/Fe] between thin and thick disks can be distinguished. However, the age distribution is overestimated in the ranges between 2 - 4 and 12 - 14 Gyr compared to the expected values. This is likely due to the age spacing and degeneracy of SSP templates. We find systematic offsets in the recovered kinematics due to insufficient spectral resolution and the variation of line-of-sight velocity distribution with age and [M/H]. With future higher resolution and multi-[$α$/Fe] SSP templates, GalCraft will be useful to validate key signatures such as [$α$/Fe]-[M/H] distribution at different $R$ and $|z|$ and potentially infer radial migration and kinematic heating efficiency to study detailed chemodynamical evolution of MW-like galaxies.

For agents

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

get_harvested_code_for_paper("2310.18258")
get_code_for_paper("2310.18258")
have("2310.18258")

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

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

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

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

Connect an agent — have() is free.