SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.16224 · 2024

From Text to Test: AI-Generated Control Software for Materials Science Instruments

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 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/2406.16224.json · badge: /api/ran/2406.16224.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
nrel/de canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
ackley Ran
ran, violated the contract we drafted
nrel/de/Optimization_example.py
code served (permissive licence) · get_code("2f52fbd956b495b9")
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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from numba import jit
import numpy as np

@jit(nopython=True)
def ackley(indv):
    term1 = -20 * np.exp(-0.2 * np.sqrt(0.5 * (indv[0] ** 2 + indv[1] ** 2)))
    term2 = -np.exp(0.5 * (np.cos(2 * np.pi * indv[0]) + np.cos(2 * np.pi * indv[1])))
    value = term1 + term2 + np.e + 20
    return value

# Create a valid individual (2D array for the Ackley function)
indv = np.array([0.5, -0.3], dtype=np.float64)

ARGS = {
    "indv": indv
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
append_numba_compat Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
nrel/de/DE.py
code served (permissive licence) · get_code("e5939c14c9fa375e")
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 (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
from numba import jit, prange

@jit(nopython=True, fastmath=True)
def append_numba_compat(original, values_to_append):
    total_length = original.size + values_to_append.size
    result = np.empty(total_length, dtype=np.float64)
    result[:original.size] = original
    result[original.size:total_length] = values_to_append
    return result

# Create test arrays
original = np.array([1.0, 2.0, 3.0], dtype=np.float64)
values_to_append = np.array([4.0, 5.0], dtype=np.float64)

ARGS = {
    "original": original,
    "values_to_append": values_to_append,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 (5,) — shape (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
clean_raw_data Ran
ran, honoured the contract we drafted
nrel/de/SDM_extraction.py
code served (permissive licence) · get_code("2866382d8ccf2c9f")
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
import tempfile
import os

# Create a temporary directory and a sample IV curve file
temp_dir = tempfile.mkdtemp()
iv_folder = temp_dir
iv_filename = 'sample_iv_curve.txt'
iv_filepath = os.path.join(iv_folder, iv_filename)

# Create sample IV data: voltage and current columns
sample_data = np.array([
    [0.0, 0.001],
    [0.5, 0.002],
    [1.0, 0.003],
    [1.5, 0.004],
    [2.0, 0.005],
    [-0.5, -0.001],
    [-1.0, -0.002],
])

np.savetxt(iv_filepath, sample_data, fmt='%e')

# Create output folder for potential file writing
output_folder = tempfile.mkdtemp()

ARGS = {
    'iv_folder': iv_folder,
    'iv_curve': iv_filename,
    'vmin': -1.0,
    'vmax': 2.0,
    'output_folder': output_folder,
    'write_to_file': True,
    'output_filename': 'cleaned_iv_data.txt'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_objective_function Ran
ran; our contract draft was wrong, not the code
nrel/de/SDM_extraction.py
code served (permissive licence) · get_code("4d214ebee6b0841e")
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 CPUDispatcher. 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

ARGS = {
    "voltage": np.array([0.5, 0.6, 0.7, 0.8], dtype=np.float64),
    "current": np.array([0.1, 0.15, 0.2, 0.25], dtype=np.float64),
    "temperature_celsius": 25.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CPUDispatcher — a CPUDispatcher output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a CPUDispatcher 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
lambertw_newton Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
nrel/de/SDM_extraction.py
code served (permissive licence) · get_code("0c9f1aa15bf9eabc")
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
import torch
from numba import jit

torch.manual_seed(0)

@jit(nopython=True, fastmath=True)
def lambertw_newton(z, tol=1e-06, max_iter=10):
    w = np.log(z + 1)
    for i in range(max_iter):
        ew = np.exp(w)
        w_next = w - (w * ew - z) / (ew + w * ew)
        if np.all(np.abs(w_next - w) < tol):
            return w_next
        w = w_next
    return w

# Create small numpy arrays for testing
# z should be a positive numpy array (scalar or array-like)
z_scalar = np.array(0.5, dtype=np.float64)
z_array = np.array([0.5, 1.0, 1.5, 2.0], dtype=np.float64)

ARGS = {
    "z": z_array,
    "tol": 1e-06,
    "max_iter": 10,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy, torch — 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
lambertw_newton Ran
ran; our contract draft was wrong, not the code
nrel/de/lambertW_approximation.py
code served (permissive licence) · get_code("33949077b9da199e")
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

# The function lambertw_newton takes:
# - z: array-like input for Lambert W function computation
# - tol: tolerance for convergence (default 1e-06)
# - max_iter: maximum iterations (default 10)

# Looking at the function body:
# - z is used in arithmetic operations (z + 1, w * ew - z)
# - It performs np.log, np.exp, np.abs, np.all on arrays
# - So z should be a numpy array

# Create a small numpy array as input
z = np.array([0.5, 1.0, 1.5, 2.0])

ARGS = {
    "z": z,
    "tol": 1e-06,
    "max_iter": 10
}
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
load_raw_data Ran
ran, honoured the contract we drafted
nrel/de/DE.py
code served (permissive licence) · get_code("19df5949782730bf")
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
import tempfile
import os

# Create a temporary file with sample IV curve data
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.txt', delete=False)
temp_filename = temp_file.name

# Write sample voltage and current data
# Format: voltage (column 0), current (column 1)
sample_data = """0.5 1e-6
1.0 2e-6
1.5 3e-6
2.0 4e-6
2.5 5e-6
3.0 6e-6"""

temp_file.write(sample_data)
temp_file.close()

# Define arguments for load_raw_data
ARGS = {
    'iv_curve': temp_filename,
    'vmin': 1.0,
    'vmax': 2.5,
    'output_folder': None,
    'write_to_file': False,
    'output_filename': 'cleaned_data.txt'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
differential_evolution Not yet run
unverified (harvested, no recorded run)
nrel/de/DE.py
code served (permissive licence) · get_code("aa8c2fb5db65c560")
How it ran

no invocation recorded.

Also present in other papers' code

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

Large language models (LLMs) are transforming the landscape of chemistry and materials science. Recent examples of LLM-accelerated experimental research include virtual assistants for parsing synthesis recipes from the literature, or using the extracted knowledge to guide synthesis and characterization. Despite these advancements, their application is constrained to labs with automated instruments and control software, leaving much of materials science reliant on manual processes. Here, we demonstrate the rapid deployment of a Python-based control module for a Keithley 2400 electrical source measure unit using ChatGPT-4. Through iterative refinement, we achieved effective instrument management with minimal human intervention. Additionally, a user-friendly graphical user interface (GUI) was created, effectively linking all instrument controls to interactive screen elements. Finally, we integrated this AI-crafted instrument control software with a high-performance stochastic optimization algorithm to facilitate rapid and automated extraction of electronic device parameters related to semiconductor charge transport mechanisms from current-voltage (IV) measurement data. This integration resulted in a comprehensive open-source toolkit for semiconductor device characterization and analysis using IV curve measurements. We demonstrate the application of these tools by acquiring, analyzing, and parameterizing IV data from a Pt/Cr$_2$O$_3$:Mg/$β$-Ga$_2$O$_3$ heterojunction diode, a novel stack for high-power and high-temperature electronic devices. This approach underscores the powerful synergy between LLMs and the development of instruments for scientific inquiry, showcasing a path for further acceleration in materials science.

For agents

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

get_harvested_code_for_paper("2406.16224")
get_code_for_paper("2406.16224")
have("2406.16224")

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

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

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

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

Connect an agent — have() is free.