Skip to content

Commit

Permalink
Merge pull request #3 from mwiesenberger/itertools
Browse files Browse the repository at this point in the history
Fix itertools bug
  • Loading branch information
LiamPattinson authored Nov 6, 2023
2 parents 2f87ce2 + 7001e99 commit af40866
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyloidal/cocos.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,8 @@ def identify_cocos(
if minor_radii is None:
# Return both variants if not provided with minor radii
return tuple(
itertools.chain.from_iterable(
sigma_to_cocos(sigma_bp, sigma_rpz, sigma_rtp, phi_by_2pi=x)
sigma_to_cocos(sigma_bp, sigma_rpz, sigma_rtp, psi_by_2pi=x)
for x in (True, False)
)
)

index = np.argmin(np.abs(safety_factor))
Expand Down

0 comments on commit af40866

Please sign in to comment.