refactor: refactor update_sel and save min_nbor_dist #3829
81.68% of diff hit (within 100.00% threshold of 82.53%)
View this Pull Request on Codecov
81.68% of diff hit (within 100.00% threshold of 82.53%)
Annotations
Check warning on line 775 in deepmd/dpmodel/descriptor/dpa2.py
codecov / codecov/patch
deepmd/dpmodel/descriptor/dpa2.py#L775
Added line #L775 was not covered by tests
Check warning on line 783 in deepmd/dpmodel/descriptor/dpa2.py
codecov / codecov/patch
deepmd/dpmodel/descriptor/dpa2.py#L782-L783
Added lines #L782 - L783 were not covered by tests
Check warning on line 791 in deepmd/dpmodel/descriptor/dpa2.py
codecov / codecov/patch
deepmd/dpmodel/descriptor/dpa2.py#L790-L791
Added lines #L790 - L791 were not covered by tests
Check warning on line 377 in deepmd/dpmodel/descriptor/se_r.py
codecov / codecov/patch
deepmd/dpmodel/descriptor/se_r.py#L377
Added line #L377 was not covered by tests
Check warning on line 380 in deepmd/dpmodel/descriptor/se_r.py
codecov / codecov/patch
deepmd/dpmodel/descriptor/se_r.py#L380
Added line #L380 was not covered by tests
Check warning on line 379 in deepmd/dpmodel/descriptor/se_t.py
codecov / codecov/patch
deepmd/dpmodel/descriptor/se_t.py#L379
Added line #L379 was not covered by tests
Check warning on line 382 in deepmd/dpmodel/descriptor/se_t.py
codecov / codecov/patch
deepmd/dpmodel/descriptor/se_t.py#L382
Added line #L382 was not covered by tests
Check warning on line 150 in deepmd/dpmodel/model/base_model.py
codecov / codecov/patch
deepmd/dpmodel/model/base_model.py#L150
Added line #L150 was not covered by tests
Check warning on line 232 in deepmd/dpmodel/model/spin_model.py
codecov / codecov/patch
deepmd/dpmodel/model/spin_model.py#L232
Added line #L232 was not covered by tests
Check warning on line 267 in deepmd/pt/entrypoints/main.py
codecov / codecov/patch
deepmd/pt/entrypoints/main.py#L267
Added line #L267 was not covered by tests
Check warning on line 269 in deepmd/pt/entrypoints/main.py
codecov / codecov/patch
deepmd/pt/entrypoints/main.py#L269
Added line #L269 was not covered by tests
Check warning on line 275 in deepmd/pt/entrypoints/main.py
codecov / codecov/patch
deepmd/pt/entrypoints/main.py#L275
Added line #L275 was not covered by tests
Check warning on line 300 in deepmd/pt/entrypoints/main.py
codecov / codecov/patch
deepmd/pt/entrypoints/main.py#L299-L300
Added lines #L299 - L300 were not covered by tests
Check warning on line 605 in deepmd/pt/model/descriptor/dpa2.py
codecov / codecov/patch
deepmd/pt/model/descriptor/dpa2.py#L605
Added line #L605 was not covered by tests
Check warning on line 613 in deepmd/pt/model/descriptor/dpa2.py
codecov / codecov/patch
deepmd/pt/model/descriptor/dpa2.py#L612-L613
Added lines #L612 - L613 were not covered by tests
Check warning on line 621 in deepmd/pt/model/descriptor/dpa2.py
codecov / codecov/patch
deepmd/pt/model/descriptor/dpa2.py#L620-L621
Added lines #L620 - L621 were not covered by tests
Check warning on line 444 in deepmd/pt/model/descriptor/se_r.py
codecov / codecov/patch
deepmd/pt/model/descriptor/se_r.py#L444
Added line #L444 was not covered by tests
Check warning on line 447 in deepmd/pt/model/descriptor/se_r.py
codecov / codecov/patch
deepmd/pt/model/descriptor/se_r.py#L447
Added line #L447 was not covered by tests
Check warning on line 355 in deepmd/pt/model/descriptor/se_t.py
codecov / codecov/patch
deepmd/pt/model/descriptor/se_t.py#L355
Added line #L355 was not covered by tests
Check warning on line 358 in deepmd/pt/model/descriptor/se_t.py
codecov / codecov/patch
deepmd/pt/model/descriptor/se_t.py#L358
Added line #L358 was not covered by tests
Check warning on line 138 in deepmd/pt/model/model/dp_zbl_model.py
codecov / codecov/patch
deepmd/pt/model/model/dp_zbl_model.py#L138
Added line #L138 was not covered by tests
Check warning on line 141 in deepmd/pt/model/model/dp_zbl_model.py
codecov / codecov/patch
deepmd/pt/model/model/dp_zbl_model.py#L141
Added line #L141 was not covered by tests
Check warning on line 140 in deepmd/pt/model/model/frozen.py
codecov / codecov/patch
deepmd/pt/model/model/frozen.py#L140
Added line #L140 was not covered by tests
Check warning on line 56 in deepmd/pt/utils/serialization.py
codecov / codecov/patch
deepmd/pt/utils/serialization.py#L56
Added line #L56 was not covered by tests
Check warning on line 77 in deepmd/pt/utils/serialization.py
codecov / codecov/patch
deepmd/pt/utils/serialization.py#L77
Added line #L77 was not covered by tests