Skip to content

Instantly share code, notes, and snippets.

View agoose77's full-sized avatar
🏠
Working from home

Angus Hollands agoose77

🏠
Working from home
View GitHub Profile
16:01:28 From Kilian Lieret To Everyone:
https://indico.cern.ch/event/1317785/
16:02:20 From Kilian Lieret To Everyone:
https://docs.google.com/document/d/1YfELjDItYuT10g_FNgAU7emrpVkmjVapkJpgg4oRtE0/edit?usp=sharing
16:10:08 From Wouter Deconinck (he/him) To Everyone:
Would snippets be maintained somehow? A builtin test with CI?
16:10:26 From Angus Hollands (he/him) To Everyone:
^ I think that should/could extend to all columns
16:11:25 From Wouter Deconinck (he/him) To Everyone:
True, but snippets sound more ephemeral...

jupytext: text_representation: extension: .md format_name: myst format_version: 0.13 jupytext_version: 1.15.0 kernelspec: display_name: Python 3 (ipykernel) language: python

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Awkward Array Form Schema",
"definitions": {
"Primitive": {
"oneOf": [
{
"type": "string",
"enum": [
"bool",
# Move option outside record
structured = ak.zip(
dict(zip(
ak.fields(log),
ak.unzip(log)
)),
optiontype_outside_record=True
)
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
__all__ = ("join",)
import awkward as ak
from awkward._behavior import behavior_of
from awkward._dispatch import high_level_function
from awkward._layout import wrap_layout
import awkward as ak
import numpy as np
import numba as nb
@nb.njit()
def _strings_in_strings_kernel(needle, haystack):
result = np.empty(len(needle), np.bool_)
import types
import inspect
def impl(x, *, y, z=None):
print(x, y, z, "impl")
def dispatch(x, y, z):
print(x, y, z, "dispatch")
from __future__ import annotations
from collections.abc import Sequence
import awkward as ak
import numpy as np
def _compute_starts(parts: Sequence[ak.contents.Content]) -> tuple[int, ...]:
# The following won't work for typetracer
from __future__ import annotations
import vector
vector.register_awkward()
import awkward as ak
import numpy as np
from __future__ import annotations
from functools import wraps
from inspect import signature
import awkward as ak
# Awkward functions that are not public
def behavior_of(args) -> dict | None:
it = iter(args)