You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While I was reading/reviwing the code, I found couple of unused imports/variables (listed below). I suggest adding pre-commit hooks with pylint, yapf, and prospector to format/lint code at commits. This would capture these and also improves readability of the code.
Unused imports:
os,mpl,plt, Element, Lattice, and SiteCollection in analysis.py.
Structure and numpy in convergence.py.
os in generation.py.
mpl in io.py.
Slab, Element, PeriodicSite in vasp_data.py.
warnings and Structure in test_analysis.py.
warnings, os, Structure, and Slab in test_convergence.py
Thank you for reviewing the code and flagging these! I have now removed the unused imports in the latest commit on develop - these will be merged with master once the JOSS review is complete. Regarding unused variables, pylint doesn't pick up on where low and high are referenced later on in dataframe query, so they were left in.
Hi,
Thanks for developing this nice package.
While I was reading/reviwing the code, I found couple of unused imports/variables (listed below). I suggest adding
pre-commit
hooks withpylint
,yapf
, andprospector
to format/lint code at commits. This would capture these and also improves readability of the code.Unused imports:
os
,mpl
,plt
,Element
,Lattice
, andSiteCollection
inanalysis.py
.Structure
andnumpy
inconvergence.py
.os
ingeneration.py
.mpl
inio.py
.Slab
,Element
,PeriodicSite
invasp_data.py
.warnings
andStructure
intest_analysis.py
.warnings
,os
,Structure
, andSlab
intest_convergence.py
warnings
,Structure
intest_generation.py
warnings
,os
,Structure
,surfaxe.io
intest_io.py
Unused variables:
files
herelow
andhigh
hereBest regards,
Pezhman
The text was updated successfully, but these errors were encountered: