Skip to content

Conversation

@bobleesj
Copy link

imac@imacs-iMac diffpy.srfit % python -m diffpy.srfit.tests.run
WARNING:diffpy.srfit.tests:No module named 'sas', SaS tests skipped.
WARNING:diffpy.srfit.tests:Cannot import pyobjcryst, pyobjcryst tests skipped.
WARNING:diffpy.srfit.tests:Cannot import diffpy.srreal, PDF tests skipped.
......ssss................................sssssssssss....ssssss...........................sss..s..............
----------------------------------------------------------------------
Ran 110 tests in 0.213s

OK (skipped=25)

from numpy import ceil, exp, log, log2, pi, sign, sqrt
from numpy.fft import fftfreq, ifft
from scipy.special import erf
from scipy.special import erfc
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

erf was imported to calculate erfc but erfc is provided

@bobleesj bobleesj changed the title Fix flake8 error lambda functions (E731) by importing the func from a library Fix flake8 error lambda functions (E731) by importing ercf from scipy Aug 21, 2024
@bobleesj bobleesj changed the title Fix flake8 error lambda functions (E731) by importing ercf from scipy Fix flake8 error lambda functions (E731) by importing erfc from scipy Aug 21, 2024
Copy link
Contributor

@sbillinge sbillinge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done!

@sbillinge sbillinge merged commit 15d57bd into diffpy:cookie Aug 22, 2024
@bobleesj bobleesj deleted the cookie-lambda-func2 branch August 22, 2024 11:11
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

Successfully merging this pull request may close these issues.

2 participants