Code
import requests
import locale
import re
from typing import Optional
import datetime
from IPython.display import Markdown
"en_US")
locale.setlocale(locale.LC_ALL, = "https://api.rogue-scholar.org/"
baseUrl = "2024-01-17"
published_since = "2024-01-23"
published_until = 4
feature_image = "title,authors,published_at,summary,blog_name,blog_slug,doi,url,image"
include_fields = (
url
baseUrl+ f"posts?&published_since={published_since}&published_until={published_until}&language=en&sort=published_at&order=asc&per_page=50&include_fields={include_fields}"
)= requests.get(url)
response = response.json()
result
def get_post(post):
return post["document"]
def format_post(post):
= post.get("doi", None)
doi = f"[{doi}]({doi})\n<br />" if doi else ""
url = f"[{post['title']}]({doi})" if doi else f"[{post['title']}]({post['url']})"
title = datetime.datetime.utcfromtimestamp(post["published_at"]).strftime(
published_at "%B %-d, %Y"
)= f"[{post['blog_name']}](https://rogue-scholar.org/blogs/{post['blog_slug']})"
blog = ", ".join([f"{x['name']}" for x in post.get("authors", None) or []])
author = post["summary"]
summary return f"### {title}\n{url}Published {published_at} in {blog}<br />{author}<br />{summary}\n"
= [get_post(x) for i, x in enumerate(result["hits"])]
posts = "\n\n".join([format_post(x) for x in posts])
posts_as_string
def doi_from_url(url: str) -> Optional[str]:
"""Return a DOI from a URL"""
= re.search(
match r"\A(?:(http|https)://(dx\.)?(doi\.org|handle\.stage\.datacite\.org|handle\.test\.datacite\.org)/)?(doi:)?(10\.\d{4,5}/.+)\Z",
url,
)if match is None:
return None
return match.group(5).lower()
= [x["image"] for x in posts if x.get("image", None) is not None]
images = images[feature_image]
image = f"![]({image})\n\n"
markdown += posts_as_string
markdown Markdown(markdown)
Making it easier to register a science blog with Rogue Scholar
https://doi.org/10.53731/sgavn-wr288
Published January 17, 2024 in Front Matter
Martin Fenner
Yesterday I had to fix a bug in the Rogue Scholar registration form (a software regression that happened over the holidays related to database row level security). This was a reminder that registering a science blog with the Rogue Scholar science blog archive should be quick and painless. Today I made one change that hopefully simplifies registration: Ask for the blog homepage instead of the RSS feed URL.
Toward open research information - Introducing the Information & Openness focal area at CWTS
Published January 18, 2024 in Leiden Madtrics
Leiden Madtrics
The Information & Openness focal area at CWTS studies and promotes openness of research information. In this blog post, we present our agenda for the coming five years.
Diamond Open Access: Connotations and recent encounters
https://doi.org/10.59350/bb6d7-fee04
Published January 19, 2024 in Sci:Debug
Ulrich Herb
“Diamond Age” by jurvetson is licensed under CC BY 2.0 This week, I had some encounters with Diamond Open Access that got me thinking, especially about the connotations of “Diamond Open Access”. These include invoice-like payment requests from a Diamond Open Access platform, editors switching their journal from Hybrid to Diamond Open Access, purchase offers for Diamond Open Access journals and the intention of the German Research Foundation DFG
A mechanistic exploration of the Wilkinson hydrogenation catalyst. Part 1: Model templates
https://doi.org/10.59350/66mt7-bk491
Published January 21, 2024 in Henry Rzepa’s Blog
Henry Rzepa
Geoffrey Wilkinson first reported his famous work on the hydrogenation catalyst that now bears his name in 1965[1] and I met him at Imperial College around 1969 and again when I returned there in 1977.
Gordon Research Conference & Student/Postdoc Conference on Unifying Ecology Across Scales
https://doi.org/10.59350/hx5eb-kk630
Published January 22, 2024 in Jabberwocky Ecology
Ethan White
If you’re interested in big ecological datasets, natural history, ecological forecasting, and predictive cross-scale ecology (like we are) then you should check out the upcoming Gordon Research Conference (GRC) on Unifying Ecology Across Scales (July 28 – Aug 2) and the associated Gordon Research Seminar (GRS; July 27-28; a student/postdoc only conference that occurs before the larger conference).
Redundant Multiple Testing Corrections
https://doi.org/10.59350/61949-z9q45
Published January 23, 2024 in Critical Metascience
Mark Rubin
The Fallacy of Using Family-Based Error Rates to Make Inferences About Individual Hypotheses