Skip to content

feat: support input json in dp test#7

Closed
caic99 wants to merge 1 commit into
develfrom
w0ktvu-codex/add-i-flag-for-dp-test-command
Closed

feat: support input json in dp test#7
caic99 wants to merge 1 commit into
develfrom
w0ktvu-codex/add-i-flag-for-dp-test-command

Conversation

@caic99
Copy link
Copy Markdown
Owner

@caic99 caic99 commented Aug 4, 2025

Summary

  • add --input-json flag to dp test
  • allow testing using validation or training data from training input JSON
  • test new flag
  • handle rglob_patterns in validation and training systems when using --input-json
  • ensure --input-json, --datafile, and --system are mutually exclusive options

Testing

  • pre-commit run --files deepmd/entrypoints/test.py deepmd/main.py source/tests/pt/test_dp_test.py
  • pytest source/tests/pt/test_dp_test.py::TestDPTestSeA::test_dp_test_input_json -q
  • pytest source/tests/pt/test_dp_test.py::TestDPTestSeASpin::test_dp_test_input_json -q
  • pytest source/tests/pt/test_dp_test.py::TestDPTestSeARglob::test_dp_test_input_json_rglob -q
  • pytest source/tests/pt/test_dp_test.py::TestDPTestSeA::test_dp_test_input_json_train -q
  • pytest source/tests/pt/test_dp_test.py::TestDPTestSeASpin::test_dp_test_input_json_train -q
  • pytest source/tests/pt/test_dp_test.py::TestDPTestSeARglobTrain::test_dp_test_input_json_rglob_train -q

https://chatgpt.com/codex/tasks/task_b_688c66f97bd88332b5145f69cb8ff00d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant