refactor: refactor update_sel and save min_nbor_dist #3829
82.98% of diff hit (target 82.53%)
View this Pull Request on Codecov
82.98% of diff hit (target 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 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 264 in deepmd/pt/entrypoints/main.py
codecov / codecov/patch
deepmd/pt/entrypoints/main.py#L264
Added line #L264 was not covered by tests
Check warning on line 266 in deepmd/pt/entrypoints/main.py
codecov / codecov/patch
deepmd/pt/entrypoints/main.py#L266
Added line #L266 was not covered by tests
Check warning on line 272 in deepmd/pt/entrypoints/main.py
codecov / codecov/patch
deepmd/pt/entrypoints/main.py#L272
Added line #L272 was not covered by tests
Check warning on line 297 in deepmd/pt/entrypoints/main.py
codecov / codecov/patch
deepmd/pt/entrypoints/main.py#L296-L297
Added lines #L296 - L297 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 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
Check warning on line 450 in deepmd/tf/descriptor/se_a_mask.py
codecov / codecov/patch
deepmd/tf/descriptor/se_a_mask.py#L450
Added line #L450 was not covered by tests
Check warning on line 123 in deepmd/tf/entrypoints/compress.py
codecov / codecov/patch
deepmd/tf/entrypoints/compress.py#L122-L123
Added lines #L122 - L123 were not covered by tests
Check warning on line 172 in deepmd/tf/model/linear.py
codecov / codecov/patch
deepmd/tf/model/linear.py#L172
Added line #L172 was not covered by tests
Check warning on line 304 in deepmd/tf/model/pairtab.py
codecov / codecov/patch
deepmd/tf/model/pairtab.py#L304
Added line #L304 was not covered by tests