Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Nov 11, 2022
1 parent 1852b59 commit bfacc0e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Breaking Changes
- The old ``Spectrogram`` class has been removed. (`#76 <https://github.com/sunpy/radiospectra/pull/76>`__)
- The new ``Spectrogram2`` class has been renamed to ``Spectrogram``. (`#76 <https://github.com/sunpy/radiospectra/pull/76>`__)
- Adding colorbar functionality to ``plot`` (`#80 <https://github.com/sunpy/radiospectra/pull/80>`__)
- Renamed ``CALLISTOClient`` to ``eCallistoClient`` (`#61 <https://github.com/sunpy/radiospectra/pull/61>`__)

0.4.0 (2022-05-24)
==================
Expand Down
12 changes: 6 additions & 6 deletions radiospectra/net/sources/ecallisto.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ class eCALLISTOClient(GenericClient):
-----
`Specific information on the meaning of the filename. <http://soleil.i4ds.ch/solarradio/data/readme.txt>`__
From the filename alone there's no way to tell about either the frequency or duration.
Therefore we only return a start time.
Examples
--------
>>> from radiospectra import net
Expand Down Expand Up @@ -60,14 +63,11 @@ def pre_search_hook(cls, *args, **kwargs):

def post_search_hook(self, exdict, matchdict):
original = super().post_search_hook(exdict, matchdict)
i0 = 0
if "_" in original["suffix"]:
i0 = 1
original["ID"] = original["suffix"][i0:]
original["ID"] = original["suffix"].replace("_", "")
del original["suffix"]
# Don't know the end time for all files see https://github.com/sunpy/radiospectra/issues/60
# We don't know the end time for all files
# https://github.com/sunpy/radiospectra/issues/60
del original["End Time"]

return original

@classmethod
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ filterwarnings =
# See https://github.com/numpy/numpy/issues/15748#issuecomment-598584838
ignore:numpy.ufunc size changed:RuntimeWarning
ignore:numpy.ndarray size changed:RuntimeWarning
# Zeep
ignore:'cgi' is deprecated:DeprecationWarning

[pycodestyle]
max_line_length = 100
Expand Down

0 comments on commit bfacc0e

Please sign in to comment.