Skip to content

Commit

Permalink
Annotating pint.utils
Browse files Browse the repository at this point in the history
  • Loading branch information
aarchiba committed Mar 5, 2024
1 parent 5710867 commit da07be4
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 84 deletions.
4 changes: 2 additions & 2 deletions src/pint/observatory/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,10 +577,10 @@ def compare_t2_observatories_dat(t2dir: Optional[str] = None) -> Dict[str, List[
with open(filename) as f:
for line in interesting_lines(f, comments="#"):
try:
x, y, z, full_name, short_name = line.split()
x_str, y_str, z_str, full_name, short_name = line.split()
except ValueError as e:
raise ValueError(f"unrecognized line '{line}'") from e
x, y, z = float(x), float(y), float(z)
x, y, z = float(x_str), float(y_str), float(z_str)
full_name, short_name = full_name.lower(), short_name.lower()
topo_obs_entry = textwrap.dedent(
f"""
Expand Down
Loading

0 comments on commit da07be4

Please sign in to comment.