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

From flake 8 #122

Open
giadarol opened this issue Dec 2, 2019 · 0 comments
Open

From flake 8 #122

giadarol opened this issue Dec 2, 2019 · 0 comments

Comments

@giadarol
Copy link
Collaborator

giadarol commented Dec 2, 2019

000_run_simulation.py:1:11: E401 multiple imports on one line
000_run_simulation.py:7:1: E402 module level import not at top of file

001_reload_state_and_run.py:1:11: E401 multiple imports on one line
001_reload_state_and_run.py:7:1: E402 module level import not at top of file

003_change_preamble.py:6:1: E402 module level import not at top of file

BassErsk.py:1:1: F403 'from cmath import *' used; unable to detect undefined names
BassErsk.py:2:1: F403 'from numpy import *' used; unable to detect undefined names
BassErsk.py:22:13: F405 'sqrt' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:23:34: F405 'sqrt' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:23:39: F405 'pi' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:29:15: F405 'exp' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:33:30: F405 'sign' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:34:30: F405 'sign' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:38:13: F405 'sqrt' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:39:34: F405 'sqrt' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:39:39: F405 'pi' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:45:15: F405 'exp' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:49:30: F405 'sign' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:50:30: F405 'sign' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:60:13: F405 'sqrt' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:63:13: F405 'acosh' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:64:9: F841 local variable 'mu' is assigned to but never used
BassErsk.py:65:9: F841 local variable 'phi' is assigned to but never used
BassErsk.py:68:14: F405 'acosh' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:72:21: F405 'log' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:76:13: F405 'conj' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:78:27: F405 'exp' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:79:18: F405 'cosh' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:79:35: F405 'cos' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:79:54: F405 'cosh' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:80:25: F405 'sinh' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:80:42: F405 'sin' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:80:61: F405 'sinh' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:81:18: F405 'sinh' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:81:35: F405 'sinh' may be undefined, or defined from star imports: cmath, numpy
BassErsk.py:83:28: F405 'pi' may be undefined, or defined from star imports: cmath, numpy

beam_and_timing.py:57:1: F401 'numpy.array' imported but unused
beam_and_timing.py:222:13: F401 'numpy.exp' imported but unused
beam_and_timing.py:222:13: F401 'numpy.pi' imported but unused

cross_ionization.py:479:9: F841 local variable 'v0' is assigned to but never used

dynamics_Boris_f2py.py:53:1: F401 'numpy.sum' imported but unused
dynamics_Boris_f2py.py:53:1: F401 'numpy.array' imported but unused
dynamics_Boris_f2py.py:53:1: F401 'numpy.cross' imported but unused
dynamics_Boris_f2py.py:143:14: F632 use ==/!= to compare str, bytes, and int literals

dynamics_strong_B_generalized.py:76:14: F632 use ==/!= to compare str, bytes, and int literals

gas_ionization_class.py:56:1: F403 'from numpy import *' used; unable to detect undefined names
gas_ionization_class.py:96:15: F405 'sqrt' may be undefined, or defined from star imports: numpy
gas_ionization_class.py:107:23: F405 'floor' may be undefined, or defined from star imports: numpy

h000_find_and_modify_preamble.py:77:46: F821 undefined name 'newbegin'
h000_find_and_modify_preamble.py:82:12: F821 undefined name 'end'
h000_find_and_modify_preamble.py:85:39: F821 undefined name 'end'
h000_find_and_modify_preamble.py:85:44: F821 undefined name 'newend'

init.py:57:1: F401 'scipy.constants.m_p' imported but unused
init.py:277:9: E722 do not use bare 'except'
init.py:799:36: E712 comparison to True should be 'if cond is True:' or 'if cond:'
init.py:814:36: E712 comparison to True should be 'if cond is True:' or 'if cond:'
init.py:838:36: E712 comparison to True should be 'if cond is True:' or 'if cond:'

myfilemanager.py:26:13: E722 do not use bare 'except'
myloadmat_to_obj.py:1:1: F401 '.myfilemanager.myloadmat' imported but unused
myloadmat_to_obj.py:1:1: F401 '.myfilemanager.myloadmat_to_obj' imported but unused
myloadmat_to_obj.py:1:1: F401 '.myfilemanager.obj_from_dict' imported but unused
myloadmat_to_obj.py:1:1: F401 '.myfilemanager.obj_to_dict' imported but unused

mystyle.py:80:13: E711 comparison to None should be 'if cond is not None:'

proc_video3.py:55:1: F401 'pylab.show' imported but unused
proc_video3.py:55:1: F401 'pylab.xlabel' imported but unused
proc_video3.py:55:1: F401 'pylab.ylabel' imported but unused

sec_emission_model_cos_low_ener.py:53:1: F401 'numpy.sqrt' imported but unused

sec_emission_model_flat_low_ener.py:53:1: F401 'numpy.sqrt' imported but unused
sec_emission_model_flat_low_ener.py:53:1: F401 'numpy.cos' imported but unused
sec_emission_model_flat_low_ener.py:53:1: F401 'numpy.pi' imported but unused

sec_emission_model_perfect_absorber.py:54:1: F401 'os' imported but unused
sec_emission_model_perfect_absorber.py:57:1: F401 'scipy.io as sio' imported but unused
sec_emission_model_perfect_absorber.py:58:1: F401 'numpy.random.rand' imported but unused
sec_emission_model_perfect_absorber.py:59:1: F401 '.sec_emission_model_ECLOUD.SEY_model_ECLOUD' imported but unused

sincc_cosincc_cubsincc.py:53:1: F403 'from numpy import *' used; unable to detect undefined names
sincc_cosincc_cubsincc.py:62:15: F405 'sin' may be undefined, or defined from star imports: numpy
sincc_cosincc_cubsincc.py:72:20: F405 'cos' may be undefined, or defined from star imports: numpy
sincc_cosincc_cubsincc.py:82:20: F405 'sin' may be undefined, or defined from star imports: numpy

space_charge_class_electromagnetic.py:66:1: E402 module level import not at top of file
space_charge_class_electromagnetic.py:66:1: F401 'matplotlib.pyplot as plt' imported but unused
space_charge_class_electromagnetic.py:67:1: E402 module level import not at top of file
space_charge_class_electromagnetic.py:67:1: F401 'matplotlib as mpl' imported but unused
space_charge_class_electromagnetic.py:68:1: E402 module level import not at top of file
space_charge_class_electromagnetic.py:68:1: F401 '.rhocompute as rhocom' imported but unused
space_charge_class_electromagnetic.py:69:1: E402 module level import not at top of file
space_charge_class_electromagnetic.py:69:1: F401 'mpl_toolkits.axes_grid1.make_axes_locatable' imported but unused

space_charge_class_electromagnetic.py:70:1: E402 module level import not at top of file
space_charge_class_electromagnetic.py:70:1: F401 'matplotlib.colors' imported but unused
space_charge_class_electromagnetic.py:71:1: E402 module level import not at top of file
space_charge_class_electromagnetic.py:71:1: F811 redefinition of unused 'iff' from line 58
space_charge_class_electromagnetic.py:71:1: F401 '.int_field_for as iff' imported but unused
space_charge_class_electromagnetic.py:73:1: E731 do not assign a lambda expression, use a def
space_charge_class_electromagnetic.py:175:30: E711 comparison to None should be 'if cond is not None:'

space_charge_class.py:57:1: E731 do not assign a lambda expression, use a def
Transverse_Efield_map_for_frozen_cloud.py:4:1: F401 'PyHEADTAIL.particles.slicing.UniformBinSlicer' imported but unused
Transverse_Efield_map_for_frozen_cloud.py:65:13: F841 local variable 'dz' is assigned to but never used
Transverse_Efield_map_for_frozen_cloud.py:93:12: F632 use ==/!= to compare str, bytes, and int literals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant