cedadev / nappy

NASA Ames Processing in PYthon (NAPPy) - a Python library for reading, writing and converting NASA Ames files.
BSD 3-Clause "New" or "Revised" License
9 stars 13 forks source link

Option for user-provided var string parser #46

Closed LukeJones123 closed 2 years ago

LukeJones123 commented 2 years ago

Pull Request Checklist:

agstephens commented 2 years ago

Hi @LukeJones123, this PR looks good. Can you please add a couple of unit tests to verify that the code is doing the right thing. You could put them in:

/test_na_file.py

The usual tests are running fine for me and the solutions looks nice.

LukeJones123 commented 2 years ago

Hi Ag. I've added a test now. I thought it would clutter things up in test_na_file.py so I made a separate test module. It uses your 2010b.na file because it has a complicated units string for PV which is not parsed well by default.

agstephens commented 2 years ago

@LukeJones123 and @FObersteiner, I think you are discussing this further in #45. Let me know if any action is needed from my end.

FObersteiner commented 2 years ago

@agstephens Luke and I agree that it's not the most elegant solution, but we can both live with it - please go ahead and merge.

agstephens commented 2 years ago

Thanks @LukeJones123 @FObersteiner