Verified Commit fb349532 authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

install a missing dependency

parent 7bca9c81
Pipeline #25573 passed with stage
in 1 minute and 34 seconds
scan arxiv:
when: manual
before_script:
- sudo apt update && sudo apt install libgl1-mesa-glx
- conda install -y tweepy -c conda-forge
script:
- python jet-detection.py
......@@ -43,7 +43,7 @@ def preprint_ids():
preprint['id'].split('abs/')[-1]
for preprint in preprints
if 'UPDATED' not in preprint['title']
]
][:10]
return []
......@@ -106,7 +106,7 @@ ALLOWED_EXTS = ['png', 'jpg', 'jpeg', 'tiff']
def paper_images(paper_id):
paths = IMG_DIR.glob(paper_id + '*')
for file in paths:
if file.suffix[1:] not in ALLOWED_EXTS:
continue
......@@ -115,7 +115,7 @@ def paper_images(paper_id):
with PIL.Image.open(file) as image:
image = image.convert('RGB')
# Check if the image is just a background with a constant color.
if all(low == high for low, high in image.getextrema()):
continue
......@@ -137,7 +137,7 @@ def points_near_jet(img, r, plot=False):
img_tree = cKDTree(img, balanced_tree=False, compact_nodes=False)
pts = [res for neighs in JET_TREE.query_ball_tree(img_tree, 0.2) for res in neighs]
pts = np.unique(pts)
if plot:
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
......@@ -242,5 +242,3 @@ print(status_report.render(date=date.today(), jet_papers=jet_papers))
# +
# api.update_status(status_report.render(date=date.today(), jet_papers=jet_papers))
# -
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment