Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix errors for zero atom inputs #4005

Merged
merged 3 commits into from
Jul 23, 2024

Update source/tests/universal/common/cases/model/utils.py

747e1c9
Select commit
Loading
Failed to load commit list.
Merged

fix: fix errors for zero atom inputs #4005

Update source/tests/universal/common/cases/model/utils.py
747e1c9
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Jul 23, 2024 in 0s

0.00% of diff hit (within 100.00% threshold of 82.83%)

View this Pull Request on Codecov

0.00% of diff hit (within 100.00% threshold of 82.83%)

Annotations

Check warning on line 203 in deepmd/dpmodel/atomic_model/base_atomic_model.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/dpmodel/atomic_model/base_atomic_model.py#L203

Added line #L203 was not covered by tests

Check warning on line 490 in deepmd/dpmodel/descriptor/dpa1.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/dpmodel/descriptor/dpa1.py#L490

Added line #L490 was not covered by tests

Check warning on line 840 in deepmd/dpmodel/descriptor/dpa1.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/dpmodel/descriptor/dpa1.py#L839-L840

Added lines #L839 - L840 were not covered by tests

Check warning on line 853 in deepmd/dpmodel/descriptor/dpa1.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/dpmodel/descriptor/dpa1.py#L852-L853

Added lines #L852 - L853 were not covered by tests

Check warning on line 882 in deepmd/dpmodel/descriptor/dpa1.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/dpmodel/descriptor/dpa1.py#L882

Added line #L882 was not covered by tests

Check warning on line 398 in deepmd/dpmodel/descriptor/repformers.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/dpmodel/descriptor/repformers.py#L398

Added line #L398 was not covered by tests

Check warning on line 344 in deepmd/dpmodel/descriptor/se_r.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/dpmodel/descriptor/se_r.py#L344

Added line #L344 was not covered by tests

Check warning on line 99 in deepmd/dpmodel/utils/nlist.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/dpmodel/utils/nlist.py#L98-L99

Added lines #L98 - L99 were not covered by tests

Check warning on line 101 in deepmd/dpmodel/utils/nlist.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/dpmodel/utils/nlist.py#L101

Added line #L101 was not covered by tests

Check warning on line 104 in deepmd/dpmodel/utils/nlist.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/dpmodel/utils/nlist.py#L104

Added line #L104 was not covered by tests

Check warning on line 261 in deepmd/pt/model/atomic_model/base_atomic_model.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/atomic_model/base_atomic_model.py#L259-L261

Added lines #L259 - L261 were not covered by tests

Check warning on line 508 in deepmd/pt/model/descriptor/repformers.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/repformers.py#L508

Added line #L508 was not covered by tests

Check warning on line 620 in deepmd/pt/model/descriptor/se_a.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/se_a.py#L620

Added line #L620 was not covered by tests

Check warning on line 661 in deepmd/pt/model/descriptor/se_a.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/se_a.py#L661

Added line #L661 was not covered by tests

Check warning on line 703 in deepmd/pt/model/descriptor/se_a.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/se_a.py#L702-L703

Added lines #L702 - L703 were not covered by tests

Check warning on line 346 in deepmd/pt/model/descriptor/se_r.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/se_r.py#L346

Added line #L346 was not covered by tests

Check warning on line 371 in deepmd/pt/model/descriptor/se_r.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/se_r.py#L371

Added line #L371 was not covered by tests

Check warning on line 385 in deepmd/pt/model/descriptor/se_r.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/se_r.py#L385

Added line #L385 was not covered by tests

Check warning on line 668 in deepmd/pt/model/descriptor/se_t.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/se_t.py#L668

Added line #L668 was not covered by tests

Check warning on line 691 in deepmd/pt/model/descriptor/se_t.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/se_t.py#L691

Added line #L691 was not covered by tests

Check warning on line 718 in deepmd/pt/model/descriptor/se_t.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/descriptor/se_t.py#L718

Added line #L718 was not covered by tests

Check warning on line 127 in deepmd/pt/model/model/spin_model.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/model/spin_model.py#L124-L127

Added lines #L124 - L127 were not covered by tests

Check warning on line 172 in deepmd/pt/model/model/spin_model.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/model/spin_model.py#L170-L172

Added lines #L170 - L172 were not covered by tests

Check warning on line 194 in deepmd/pt/model/task/dipole.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/task/dipole.py#L194

Added line #L194 was not covered by tests

Check warning on line 245 in deepmd/pt/model/task/polarizability.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

deepmd/pt/model/task/polarizability.py#L245

Added line #L245 was not covered by tests