das-developers / das2py

An efficient space physics data client for python
https://das2.org/das2py
MIT License
6 stars 4 forks source link

das2.convert for undefined units error #5

Closed cpiker closed 2 years ago

cpiker commented 2 years ago

The following code snippet fails with a hard segfault:

import das2
das2.convert(1.0, "us2000", "TT2000")

This is was not listed as a das2C issue because it is most likely triggered by improper module initialization.

cpiker commented 2 years ago

This issue is fixed in the latest commit: 7d43bc8fd9 which adds general TT2000 inter-conversions via das2.from_epoch() and das2.to_epoch()