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

compute output stat for atomic model #3642

Merged
merged 13 commits into from
Apr 7, 2024

fix ut

2171e19
Select commit
Loading
Failed to load commit list.
Merged

compute output stat for atomic model #3642

fix ut
2171e19
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL succeeded Apr 7, 2024 in 3s

10 new alerts

New alerts in code changed by this pull request

  • 7 warnings
  • 3 notes

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 132 in source/tests/pt/model/test_atomic_model_stat.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note test

Variable nf is not used.

Check notice on line 132 in source/tests/pt/model/test_atomic_model_stat.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note test

Variable nloc is not used.

Check notice on line 132 in source/tests/pt/model/test_atomic_model_stat.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note test

Variable nnei is not used.

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

See this annotation in the file changed.

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class Warning

Assignment overwrites attribute type_map, which was previously defined in subclass
DPAtomicModel
.
Assignment overwrites attribute type_map, which was previously defined in subclass
DPAtomicModel
.
Assignment overwrites attribute type_map, which was previously defined in subclass
LinearEnergyAtomicModel
.

Check warning on line 60 in deepmd/pt/model/atomic_model/dp_atomic_model.py

See this annotation in the file changed.

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class Warning

Assignment overwrites attribute type_map, which was previously defined in superclass
BaseAtomicModel
.

Check warning on line 67 in deepmd/pt/model/atomic_model/linear_atomic_model.py

See this annotation in the file changed.

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class Warning

Assignment overwrites attribute type_map, which was previously defined in superclass
BaseAtomicModel
.

Check warning on line 84 in deepmd/pt/model/atomic_model/pairtab_atomic_model.py

See this annotation in the file changed.

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class Warning

Assignment overwrites attribute rcond, which was previously defined in superclass
BaseAtomicModel
.

Check warning on line 86 in deepmd/pt/model/atomic_model/pairtab_atomic_model.py

See this annotation in the file changed.

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class Warning

Assignment overwrites attribute type_map, which was previously defined in superclass
BaseAtomicModel
.

Check warning on line 69 in deepmd/dpmodel/atomic_model/pairtab_atomic_model.py

See this annotation in the file changed.

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class Warning

Assignment overwrites attribute type_map, which was previously defined in superclass
BaseAtomicModel
.

Check warning on line 72 in deepmd/dpmodel/atomic_model/pairtab_atomic_model.py

See this annotation in the file changed.

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class Warning

Assignment overwrites attribute type_map, which was previously defined in superclass
BaseAtomicModel
.