ASE job input.yml can contain numpy scalars, which the worker's YAML reader rejects

Aperta
#1,156 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, yaml
Ambito
backend

Direzione di ricerca

Start by reading ASEAdapter.write_input_file() and ase_script.py, named in the issue. Trace how coordinates and numeric settings are serialized, then check the worker's YAML loading path against the shown numpy scalar tag. Done means ASE job inputs contain plain Python numeric values and the worker can read the reported TS conformer input.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Some ASE job inputs written by ARC contain coordinates serialized as numpy objects:

xyz:
  coords: !!python/tuple
  - !!python/tuple
    - !!python/object/apply:numpy._core.multiarray.scalar
      - &id001 !!python/object/apply:numpy.dtype

ase_script.py then fails to read the input:

yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:numpy._core.multiarray.scalar'

Observed: 6 of 147 TS conformer optimization inputs (conf_opt jobs of TSs), so the coordinates probably come from a TS-guess adapter that returns numpy floats.

Possible fix: cast coordinates (and any other numeric settings) to plain Python types before the input is dumped, for example in ASEAdapter.write_input_file().

🤖 Generated with Claude Code

Lingua principale
Python
Stelle
55
Fork
26
Merge medio
3g 3h
PR unite (30g)
8

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ReactionMechanismGenerator/ARC

Tutte le issue di ReactionMechanismGenerator/ARC

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.