Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
javierggt committed Jan 28, 2025
1 parent 6ab98f9 commit bcc262d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions aperoll/star_field_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ def text(self):
return (
"<pre>"
f"ID: {self.star['AGASC_ID']}\n"
f"mag: {self.star['MAG_ACA']:.2f} +- {self.star['MAG_ACA_ERR']/100:.2}\n"
f"mag: {self.star['MAG_ACA']:.2f} +- {self.star['MAG_ACA_ERR'] / 100:.2}\n"
f"color: {self.star['COLOR1']:.2f}\n"
f"ASPQ1: {self.star['ASPQ1']}\n"
f"ASPQ2: {self.star['ASPQ2']}\n"
f"class: {self.star['CLASS']}\n"
f"pos err: {self.star['POS_ERR']/1000} mas\n"
f"pos err: {self.star['POS_ERR'] / 1000} mas\n"
f"VAR: {self.star['VAR']}"
"</pre>"
)
Expand Down Expand Up @@ -576,12 +576,7 @@ def set_show_centroids(self, show=True):
row, col = yagzag_to_pixels(
self._centroids["YAGS"], self._centroids["ZAGS"], allow_bad=True
)
off_ccd = (
(row < -511)
| (row > 511)
| (col < -511)
| (col > 511)
)
off_ccd = (row < -511) | (row > 511) | (col < -511) | (col > 511)
for i, centroid in enumerate(self.centroids):
centroid.set_fiducial(self._centroids["IMGFID"][i])
if off_ccd[i]:
Expand Down

0 comments on commit bcc262d

Please sign in to comment.