Skip to content

Commit

Permalink
Bunch of linter errors averted with None defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
alhom committed Aug 28, 2024
1 parent 1191f6d commit 7388fa0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/create_time_energy_spectrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
# bin edges of kinetic energy in electron volts (energies below and above the last and first and )
EkinBinEdges = np.logspace(np.log10(100),np.log10(80e3),66)

# Initialize as none
xReq = None
yReq = None
zReq = None

# give a list of cids
cids = (4502051,4951951,5551701)

Expand Down Expand Up @@ -152,7 +157,7 @@
cidsTemp = []
if 'cids' not in locals():
print('Finding nearest cells with vspace from given coordinates')
if ('xReq' not in locals()) or ('yReq' not in locals()) or ('zReq' not in locals()):
if (xReq is None) or (yReq is None) or (zReq is None):
print('ERROR: cids or (xReq,yReq,zReq) coordinates must be given')
quit()
if xReq.shape == yReq.shape == zReq.shape:
Expand Down

0 comments on commit 7388fa0

Please sign in to comment.