murphyqm / pytesimal

Model the conductive cooling of small planetary bodies with temperature-dependent material properties
MIT License
1 stars 0 forks source link

Flake8 error E712 comparison to True should be 'if cond is True:' or 'if cond:' #15

Closed murphyqm closed 3 years ago

murphyqm commented 3 years ago

Getting linting error for "new_crit_depth.py" for the line radii_index = int(((d_val)[crossing == True]))

error output: E712 comparison to True should be 'if cond is True:' or 'if cond:'

However, in the context, an if statement does not work. Have tried (failed pytest):

murphyqm commented 3 years ago

Fixed by replacing crossing == True with crossing is True