Skip to content

Commit

Permalink
docstring fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fireye04 committed Jun 7, 2024
1 parent 7919c8c commit d805b89
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/sasquatchbackpack/sasquatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def create_topic(self) -> str:
Returns
-------
response text
str
The results of the POST request in string format
"""
headers = {"content-type": "application/json"}
Expand Down Expand Up @@ -107,7 +107,7 @@ def post(self) -> str:
Returns
-------
response text
str
The results of the POST request in string format
"""
records = self.source.get_records()
Expand Down
24 changes: 12 additions & 12 deletions src/sasquatchbackpack/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class DataSource(ABC):
Parameters
----------
topic name
str
Specific source name, used as an identifier
"""

Expand All @@ -38,19 +38,19 @@ class USGSConfig:
Parameters
----------
duration
timedelta
How far back from the present should be searched
radius
Padius of search from central coordinates in km
coords
int
Radius of search from central coordinates in km
tuple[float,float]
latitude and longitude of the central coordnates
(latitude, longitude)
magnitude bounds
tuple[int, int]
upper and lower bounds for magnitude search (lower, upper)
schema file
str
Directory path to the relevant source schema
("src/sasquatchbackpack/schemas/*.avsc"), optional,
defaults to "src/sasquatchbackpack/schemas/usgs.avsc"
(src/sasquatchbackpack/schemas/schema_name_here.avsc), optional,
defaults to src/sasquatchbackpack/schemas/usgs.avsc
"""

duration: timedelta
Expand All @@ -65,10 +65,10 @@ class USGSSource(DataSource):
Parameters
----------
config
USGSconfig
USGSConfig to transmit relevant information to
the Source
topic name
str
Specific source name, used as an identifier
"""

Expand Down Expand Up @@ -96,7 +96,7 @@ def get_records(self) -> list:
Returns
-------
records
list
A payload consisting of a list of dictionaries,
each containing data about a specific earthquake
in the build results.
Expand Down

0 comments on commit d805b89

Please sign in to comment.