gafusion / omas

Ordered Multidimensional Array Structure
http://gafusion.github.io/omas
MIT License
32 stars 15 forks source link

Bugfixes and test for identify_cocos #231

Closed LiamPattinson closed 1 year ago

LiamPattinson commented 1 year ago

Hi! I'm working on Pyrokinetics, and I'd like to use your functions identify_cocos and cocos_transform to ensure any equilibrium data we read in is converted to COCOS 1. When I tried using identify_cocos, I found that it always raised NameError as pi wasn't defined. This PR makes the following changes:

Please let me know if it looks like I've made a mistake anywhere or otherwise misunderstood the function. If all looks good, would it be possible to get this in a 89.1 release?

bclyons12 commented 1 year ago

I did some testing with a bunch of different gEQDSKs. The 2*pi changes appear correct. Thanks @LiamPattinson

orso82 commented 1 year ago

version 0.90.0 has been released on PYPI