Skip to content

Commit

Permalink
chore: update doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney committed Jul 26, 2024
1 parent 1f8ecb0 commit 4f02c2e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion python/hypy/hydrolocation/hydrolocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def realized_nexus(self) -> str:
@property
def geometry(self) -> Point | tuple[float, float]:
"""
Geometric coordinates of the location as a `Point` or two-Tuple
Geodetic coordinates of the location as a `Point` or tuple of two floats
"""
return self._shape

Expand Down
10 changes: 5 additions & 5 deletions python/hypy/hydrolocation/nwis_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from shapely.geometry import Point
class NWISLocation(HydroLocation):
"""
An NWIS subclass of HydroLocation
An NWIS subclass of HydroLocation
"""
def __init__(self,
station_id: str,
Expand All @@ -24,7 +24,7 @@ def __init__(self,
Parameters
----------
shape: Union[Point, Tuple]
shape: Point | Tuple
a shapely point geometry or two-tuple defining the coordinates of this location
station_id: str
NWIS station identifier
Expand All @@ -35,11 +35,11 @@ def __init__(self,
"""
super().__init__(realized_nexus, shape, HydroLocationType.hydrometricStation, referenced_position)
self._station_id = station_id
#self._nwis = nwis_client.IVDataService()

@property
def station_id(self) -> str:
"""
NWIS station identifier
NWIS station identifier
"""
return self._station_id

Expand All @@ -48,6 +48,6 @@ def get_data(self,
end: str | datetime | datetime64 | Timestamp | None = None
) -> DataFrame:
"""
Get observation data from nwis
Get observation data from NWIS
"""
return nwis_client.IVDataService().get(self._station_id, startDT=start, endDT=end)
6 changes: 4 additions & 2 deletions python/hypy/nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def __init__(self,
----------
nexus_id: str
The identifier string for this nexus
hydro_location: HydroLocation
HydroLocation associated with this nexus
receiving_catchments: Catchments_Collection
The catchment object(s) that receive(s) water from this nexus
contributing_catchments: Catchments_Collection
Expand Down Expand Up @@ -54,7 +56,7 @@ def receiving_catchments (self) -> tuple[Catchment, ...]:
Returns
-------
Tuple['Catchment', ...]
tuple[Catchment, ...]
Tuple of Catchment object(s) receiving water from nexus
"""
return self._receiving_catchments
Expand All @@ -65,7 +67,7 @@ def contributing_catchments (self) -> tuple[Catchment, ...]:
Returns
-------
Tuple['Catchment', ...]
tuple[Catchment, ...]
Tuple of Catchment object(s) contributing water to nexus
"""
return self._contributing_catchments
Expand Down

0 comments on commit 4f02c2e

Please sign in to comment.