Tidies after the first ported basis-set exporters (#868)

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, perl, python
Ambito
testing, tooling

Direzione di ricerca

Start with tests/basis/python_port_test.py:46-57 and tests/windows/ecceqm_win.py:139, then check the named parser scripts and stale references in the listed docs and parser files. Run the basis tests and Windows test where available; settle the orphaned Perl modules only after checking their callers, and investigate the encoding concern on Windows. Done when the applicable fixes and cleanup are verified without breaking existing callers.

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

Descrizione

enhancement

Small items noticed reviewing the first batch of ported basis-set exporters. None breaks anything today.

  1. tests/basis/python_port_test.py:46-57 — reader_agreement() shells out to perl -MJSON::PP. On a machine without Perl or without JSON::PP it records a FAILURE rather than a SKIP, so tests/basis goes red on exactly the Perl-free Windows machine #868 is working towards. It should skip when the interpreter or module is absent.

  2. tests/windows/ecceqm_win.py:139 — hard-codes tree + "/python/python.exe" with no python.exe fallback, unlike the C++ it mirrors (src/dsm/chemistry/TGBSConfig.C). Test-only, but it will fail on a tree whose bundled interpreter sits elsewhere.

  3. scripts/parsers/wrNWChemGBS.pm and wrORCAGBS.pm are now orphaned in the same way wrECCEQMGBS.pm was, but were kept while that one was deleted. Harmless, just inconsistent -- worth settling one way, bearing in mind the rule that a shared Perl module stays until its last Perl caller is gone.

  4. Stale references to a file that no longer exists: docs/claude/codereg/ecce-qm-is-a-bundled-code.md:25 and scripts/parsers/ai.ecceqm:21 name wrECCEQMGBS.pm; scripts/parsers/ai.orca:1067 names wrORCAGBS.pm.

  5. Not established: Python decodes stdin with the locale encoding, where the Perl passed bytes through. Under C/POSIX this round-trips via surrogateescape (checked), but a non-ASCII basis-set label on a Windows cp1252 console could be re-encoded differently. Low risk, needs a Windows machine to settle.

Lingua principale
C
Stelle
10
Fork
8
Merge medio
6h 32m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 FriendsofECCE/ECCE

Tutte le issue di FriendsofECCE/ECCE

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.