Skip to content

fixed and enhanced basis-optimizer

ec336e9
Select commit
Loading
Failed to load commit list.
Open

Basis optimization CLI #910

fixed and enhanced basis-optimizer
ec336e9
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL failed Jun 20, 2025 in 4s

12 new alerts including 1 error

New alerts in code changed by this pull request

  • 1 error
  • 6 warnings
  • 5 notes

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 23 in src/sisl_toolbox/siesta/atom/_register_cli.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused global variable Note

The global variable '_script' is not used.

Check notice on line 378 in src/sisl_toolbox/siesta/minimizer/_minimize.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable opt is not used.

Check notice on line 379 in src/sisl_toolbox/siesta/minimizer/_minimize.py

See this annotation in the file changed.

Code scanning / CodeQL

Empty except Note

'except' clause does nothing but pass and there is no explanatory comment.

Check failure on line 34 in src/sisl_toolbox/siesta/minimizer/_register_cli.py

See this annotation in the file changed.

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.

Check notice on line 37 in src/sisl_toolbox/siesta/minimizer/basis_optimization.py

See this annotation in the file changed.

Code scanning / CodeQL

Empty except Note

'except' clause does nothing but pass and there is no explanatory comment.

Check warning on line 68 in src/sisl_toolbox/siesta/minimizer/basis_optimization.py

See this annotation in the file changed.

Code scanning / CodeQL

File is not always closed Warning

File is opened but is not closed.

Check notice on line 257 in src/sisl_toolbox/siesta/minimizer/basis_optimization.py

See this annotation in the file changed.

Code scanning / CodeQL

Except block handles 'BaseException' Note

Except block directly handles BaseException.

Check warning on line 394 in src/sisl_toolbox/siesta/minimizer/basis_optimization.py

See this annotation in the file changed.

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'table_row' is unnecessary as it is
redefined
before this value is used.

Check warning on line 395 in src/sisl_toolbox/siesta/minimizer/basis_optimization.py

See this annotation in the file changed.

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'atom_block' is unnecessary as it is
redefined
before this value is used.

Check warning on line 970 in src/sisl_toolbox/siesta/minimizer/basis_optimization.py

See this annotation in the file changed.

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'result' is unnecessary as it is
redefined
before this value is used.
This assignment to 'result' is unnecessary as it is
redefined
before this value is used.

Check warning on line 985 in src/sisl_toolbox/siesta/minimizer/basis_optimization.py

See this annotation in the file changed.

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'result' is unnecessary as it is
redefined
before this value is used.
This assignment to 'result' is unnecessary as it is
redefined
before this value is used.

Check warning on line 987 in src/sisl_toolbox/siesta/minimizer/basis_optimization.py

See this annotation in the file changed.

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'result' is unnecessary as it is
redefined
before this value is used.
This assignment to 'result' is unnecessary as it is
redefined
before this value is used.