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

未關閉
#1,326 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
c, perl, python
領域
testing, tooling

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
C
星號
10
分支
8
平均合併
6 小時 32 分鐘
30 天內合併 PR
1

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

FriendsofECCE/ECCE 的其他 Issue

查看 FriendsofECCE/ECCE 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。