Skip to content

Commit

Permalink
chores: move and rename qml parser code
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidni committed Aug 7, 2023
1 parent e1b68e0 commit aa88dfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions catalog_tools/io/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
import pandas as pd
import requests

from catalog_tools.download.download_qml import CustomContentHandler
from catalog_tools.io.parser import CustomContentHandler


class FDSNWSEventClient():
def __init__(self, url: str):
"""
Args:
url: base url of the FDSNWS event service
url: base url of the FDSNWS event service
(eg. 'https://earthquake.usgs.gov/fdsnws/event/1/query')
"""

Expand Down Expand Up @@ -85,9 +85,9 @@ def get_events(self, start_time: Optional[datetime] = None,


def main():
url = 'https://earthquake.usgs.gov/fdsnws/event/1/query'
url2 = 'http://arclink.ethz.ch/fdsnws/event/1/query'
client = FDSNWSEventClient(url2)
# url = 'https://earthquake.usgs.gov/fdsnws/event/1/query'
url = 'http://arclink.ethz.ch/fdsnws/event/1/query'
client = FDSNWSEventClient(url)
cat = client.get_events(start_time=datetime(
2023, 7, 1))
print(cat[cat['magnitude_value'].isna()])
Expand Down
File renamed without changes.

0 comments on commit aa88dfa

Please sign in to comment.