Skip to content

Commit

Permalink
codestyle check 4
Browse files Browse the repository at this point in the history
  • Loading branch information
christinawlindberg committed May 26, 2023
1 parent 54e75bb commit fe8373a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion beast/tools/cut_catalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,15 @@ def convexhull_path(x_coord, y_coord, concave_alpha, input_ast_file):
path_object = Path(np.array(concave_hull.boundary.xy).T)

Check warning on line 263 in beast/tools/cut_catalogs.py

View check run for this annotation

Codecov / codecov/patch

beast/tools/cut_catalogs.py#L261-L263

Added lines #L261 - L263 were not covered by tests

# create diagnostic plot
ax = plt.subplots(1, 1, figsize=(5, 4))
fig = plt.figure(figsize=(5, 4))
ax = fig.subplots(1, 1)
ax.scatter(x_coord, y_coord, s=1)
ax.plot(path_object.vertices.T[0], path_object.vertices.T[1], c="r")
ax.set_xlabel("x")
ax.set_ylabel("y")
ax.set_title(r"$\alpha$ = " + str(concave_alpha))
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)
plt.savefig(str(input_ast_file) + "_plot.png", bbox_inches="tight")

Check warning on line 275 in beast/tools/cut_catalogs.py

View check run for this annotation

Codecov / codecov/patch

beast/tools/cut_catalogs.py#L266-L275

Added lines #L266 - L275 were not covered by tests

return path_object
Expand Down

0 comments on commit fe8373a

Please sign in to comment.