geomagpy / magpy

MagPy (or GeomagPy) is a Python package for analysing and displaying geomagnetic data.
BSD 3-Clause "New" or "Revised" License
45 stars 27 forks source link

In export function 'youforgottodefineafilename' appended to the file is not desirable #116

Closed stephanbracke closed 2 years ago

stephanbracke commented 2 years ago

We noticed on some exports ( espacially imfv and cdf) If the name of the file is not filled in, we have an append of 'youforgottodefineafilename' before altough the timepattern is sufficient and correct. This makes it necessary to manually correct the name afterwards. It is due to two lines in the code

https://github.com/geomagpy/magpy/blob/ae91462f1644ebf89fbe570ce1cf67d1d89eb926/magpy/gui/magpy_gui.py#L2732-L2733

For the moment I commented them out which solved the problem for us when doing the imfv/cdf exports

leonro commented 2 years ago

Corrected in bcc1cb884c2ae8532b13fd14ddfcaa07878115ed