Review of the remaining ported basis-set exporters, and the merge order for all seven (#868)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
调研方向
Start with src/dsm/chemistry/TGBSConfig.C and rdStandardGBS.py, then inspect the six exporter scripts and the named port tests alongside tests/basis/run_tests.py and scripts/parsers/README. First verify the reported Windows command selection, ECP indexing, input decoding, test registration, and stale references. Done means the listed defects are fixed, tests are registered and run, and the merge order preserves the guarded per-code C++ command selection.
由索引模型根据 Issue 内容生成。
描述
Review of cx/868-gbs-gamess, cx/868-gbs-molpro-molcas, cx/868-gbs-legacy-misc, cx/868-gbsdav. As with the earlier branches, every pinned reference was regenerated from the parent commit's Perl and reproduces (gamess 105/105, legacy-misc 60/60, molpro-molcas 56/56 over 40 hash seeds, gbsdav by running its own test against the Perl). Numeric formatting, locale behaviour and option handling match Perl byte-for-byte on every input tried. No branch mentions python3. The ports themselves are sound; what follows is what stands between them and merging.
Must fix before merging
1. cx/868-gbs-legacy-misc breaks Windows basis-set export for every code still using Perl. Its src/dsm/chemistry/TGBSConfig.C hunk replaces the unconditional "perl "" with an unconditional bundled python.exe`, dropping the per-code test the sibling branches have:
- string command = "perl \"" + ...
+ ecce::fs::path py = ecce::fs::path(Ecce::ecceHome()) / "python" / "python.exe";
+ string pyExe = ecce::fs::exists(py) ? py.string() : string("python.exe");
+ string command = "\"" + pyExe + "\" \"" + ...
So on Windows std2Gaussian-16, std2NWChem, std2ORCA, std2molpro and std2molcas -- all still Perl -- would be handed to python.exe. It also writes ecce::fs:: inline rather than the namespace fs = ecce::fs; alias the other branches use. The Python writers on this branch are byte-faithful; only the C++ hunk is wrong.
2. Unguarded shells[index - 1] (as in #1327): present in wrGamesGBS.py:139, wracesIIGBS.py:106, wrHondoGBS.py:142, wrMeldefGBS.py:155, wrsupermoleculeGBS.py:172, wrtx93GBS.py:39. An ECP with 9+ components gives IndexError and a partial write (583-679 bytes against Perl's 801-1051) with exit 1. Absent from molpro-molcas, which guards it, and from gbsdav. Related, same class: wrGamesGBS.py:126 rows[0] also dies on a shell whose only line carries a Fortran D exponent, which both readers drop and Perl emitted as an empty shell.
3. Non-UTF-8 stdin (#1327 item 2): rdStandardGBS.py is byte-identical across all six exporter branches, so this is one fix in one file. cx/868-gbsdav does not share it -- it opens files encoding='latin-1' and round-trips correctly.
4. Tests registered nowhere. None of these four touches CMakeLists.txt or .github/workflows/, and tests/basis/run_tests.py has an explicit CASES list that is unmodified, so gamess_python_port_test.py, molpro_molcas_port_test.py, legacy_misc_port_test.py and tests/tools/gbsdav_converter_test.py never run. All four pass when run by hand.
5. Stale reference: scripts/parsers/README:91 still lists wrGamesGBS.pm, which the gamess branch deletes. Separately, the new rdStandardGBS.py appears in no paths: frontmatter under docs/claude/, so the grep -rl lookup CLAUDE.md requires finds nothing for it; it belongs in docs/claude/codereg/rdstandardgbs-pms-namebasis-format-used-to-have.md.
The usage-banner divergence from #1327 is NOT present on any of these four.
Merge order
Every exporter branch rewrites the same dump() hunk, so all 12 pairs among the six conflict; cx/868-gbsdav is clean against all of them.
cx/868-gbsdav-- independent and conflict-free.- Fix the stdin decoding once in
rdStandardGBS.py, thencx/868-gbs-core, which sets the agreedTGBSConfig.Cshape (guarded per-codeif,util/Filesystem.Hwithnamespace fs = ecce::fs;inside#ifdef _WIN32). - Then gaussian-modern, gaussian-legacy, molpro-molcas, gamess.
legacy-misclast, and only once its C++ hunk is rewritten in the guarded form.
Resolve each TGBSConfig.C conflict by adding the branch's code names to the single if in core -- never by taking a branch's whole hunk, which is how item 1 would reach main.
Not established
Nothing was compiled and no suite was run. Whether legacy-misc compiles at all without the fs alias is unverified, as is anything about Windows execution: the python.exe path, quoting under cmd.exe, and the runtime form of Ecce::ecceHome(). Perl's hash order is randomised, so for multi-centre outputs sorted-line comparison was used; a pure reordering within one atom block would not have been caught. The molpro test's own atom_order() normalisation sorts blocks before comparing, which could mask an ordering regression inside a block. The 9+ component ECPs and D-exponent-only shells are constructed inputs; whether any shipped basis set in data/admin/basissets can produce them was not checked.
- 主要语言
- C
- 星标
- 10
- 派生
- 8
- 平均合并
- 6 小时 32 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
FriendsofECCE/ECCE 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
FriendsofECCE/ECCE#1353 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
FriendsofECCE/ECCE#1348 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
FriendsofECCE/ECCE#1345 ·
查看 FriendsofECCE/ECCE 的全部 Issue
相似的 Issue
-
documentation
难度 2/5 1-3 小时 新手友好度 84/100
Life-Framework/Life-Framework#5378 ·
维护者通常 1 天内回复
-
Bug Status: Needs Triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug status: planned ui
难度 2/5 1-3 小时 新手友好度 70/100
ChupathingyCE/chupathingyce#2126 ·
维护者通常 1 天内回复
-
good first issue simulation
难度 1/5 1-3 小时 新手友好度 92/100
MarcosAsh/Lattice_Fluid_Dynamics#270 ·
维护者通常 1 天内回复
-
needs-kind
难度 1/5 1 小时以内 新手友好度 82/100
falcosecurity/libs#3173 · 1 条评论 ·
维护者通常 1 天内回复