Skip to content

Instantly share code, notes, and snippets.

from invenio_workflows import workflow_object_class, ObjectStatus
from collections import Counter
def _get_nice_message(wflw):
if 'Found workflows in ERROR or INITIAL state:' in wflw.extra_data['_error_msg']:
return wflw.extra_data['_error_msg'].splitlines()[-1].rsplit(':', 1)[0]
return wflw.extra_data['_error_msg'].splitlines()[-1]
def get_errors_by_type():
#!/usr/bin/env python3
import requests
import datetime
import click
import asyncio
import getpass
from pyppeteer import launch
from typing import List, Optional
#!/usr/bin/env python
import math
m1 = 3.0e30
r1 = 1e12
G = 6.67e-11
P = 100.0 * 364.0 * 24.0 * 60.0 * 60.0
def one(r2):
@david-caro
david-caro / spherical_diffs.ipynb
Last active October 11, 2024 10:19
spherical coordinates differentials of the same category
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.