Skip to content

Commit

Permalink
Merge pull request #317 from neutrinoceros/rfc/find_ir
Browse files Browse the repository at this point in the history
RFC: simplify GasField.find_ir
  • Loading branch information
neutrinoceros authored Apr 7, 2024
2 parents 2de5ae1 + 8e6807e commit e1b6044
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nonos/api/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,11 +657,10 @@ def save(self, directory: Optional[str] = None, header_only: bool = False) -> No
copyfile(src, dest)

def find_ir(self, distance=1.0):
r1 = distance
if self.native_geometry in ("polar"):
return find_nearest(self.coords.Rmed, r1)
return find_nearest(self.coords.Rmed, distance)
if self.native_geometry in ("spherical"):
return find_nearest(self.coords.rmed, r1)
return find_nearest(self.coords.rmed, distance)

def find_imid(self, altitude=None):
if altitude is None:
Expand Down

0 comments on commit e1b6044

Please sign in to comment.