Skip to content

Commit

Permalink
remove kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgitonga authored Sep 16, 2023
1 parent fa1d0b0 commit 0b6df5f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ecoscope/io/earthranger.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,13 +675,7 @@ def get_patrol_observations(self, patrols_df, patrol_type=None, include_patrol_d
-------
relocations : ecoscope.base.Relocations
"""

params = self._clean_kwargs(
kwargs,
patrol_type=patrol_type,
include_patrol_details=include_patrol_details,
)


observations = []
for _, patrol in patrols_df.iterrows():
for patrol_segment in patrol["patrol_segments"]:
Expand All @@ -693,7 +687,7 @@ def get_patrol_observations(self, patrols_df, patrol_type=None, include_patrol_d
continue
try:
observation = self.get_subject_observations(
subject_ids=[subject_id], since=patrol_start_time, until=patrol_end_time, **params
subject_ids=[subject_id], since=patrol_start_time, until=patrol_end_time
)
if include_patrol_details:
observation["patrol_id"] = patrol["id"]
Expand Down

0 comments on commit 0b6df5f

Please sign in to comment.