instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sched-ext__scx__2975 | sched-ext/scx | 2,975 | defect | 5b66f94d682a35fdae15e1f6193e8dbcffc0ac2c | b0502e5ff85a990c7b6d03c6a823fdc6ca17bc3a | scx_p2dq: Add optimizations for Neoverse-V2 CPUs | This commit introduces performance optimizations for ARM Neoverse-V2 CPUs:
- Replace boolean fields with bit flags in task_ctx, cpu_ctx, llc_ctx, and enqueue_promise structures to improve memory efficiency and cache performance
- Add single-LLC mode fast path optimization to skip unnecessary migration checks and pi... | diff --git a/scheds/rust/scx_p2dq/src/bpf/main.bpf.c b/scheds/rust/scx_p2dq/src/bpf/main.bpf.c
index c473fd9630..baf970bce3 100644
--- a/scheds/rust/scx_p2dq/src/bpf/main.bpf.c
+++ b/scheds/rust/scx_p2dq/src/bpf/main.bpf.c
@@ -92,6 +92,7 @@ const volatile struct {
bool eager_load_balance;
bool max_dsq_pick2;
bool... | 4 | 2 | 1 | [{"id": "G0", "claim": "Asks whether the task_ctx flag helper macros would be better written as static __always_inline functions instead of macros.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The newly added arm64_neoverse_v2 CLI option is declared bu... | null |
sched-ext__scx__2978 | sched-ext/scx | 2,978 | defect | f57b24e7c846e1c8bd2ad6db737a23c70ee98906 | 10c7d8620b341a875461b8a63ac2eea3652cf544 | scx_mitosis: Fix tasks getting vtime too far ahead | We've observed "vtime too far ahead" errors with scx_mitosis that occur when task vtimes run far ahead of cell/CPU dsq clocks. In a single call to `mitosis_stopping()`, we've observed tasks accumulating hundreds of seconds of vtime. This happened when a task with a large nice value (minimum weight) ran on a cpu for ove... | diff --git a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
index f30665108b..fb46c0f524 100644
--- a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
+++ b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
@@ -36,6 +36,7 @@ const volatile u64 slice_ns;
const volatile u64 ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Default the new unified vtime-update behavior to enabled (flag default true), keeping the flag only as an off switch so it rolls out with new releases.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sched-ext__scx__2985 | sched-ext/scx | 2,985 | defect | e5b2e480efb2d6c6b27d1e31bbddb39cf6c2fb2e | 405a1b996da80b0115692b0201b72b9a676cffce | selftests: Add arena bpf timer selftest | In refactoring p2dq to use the arena topology it hit some verifier errors around accessing llc context fields in timer callbacks. Add a set of basic tests for accessing arena topo data structures in a timer. | diff --git a/lib/selftests/st_topology.bpf.c b/lib/selftests/st_topology.bpf.c
index f6da2eb4d1..1b656682f5 100644
--- a/lib/selftests/st_topology.bpf.c
+++ b/lib/selftests/st_topology.bpf.c
@@ -15,6 +15,58 @@
#define SCX_TOPOLOGY_SELFTEST(suffix) SCX_SELFTEST(scx_selftest_topology_ ## suffix)
+struct test_timer {... | 1 | 1 | 0 | [{"id": "G0", "claim": "Split all but the last test out of st_topology.bpf.c into a separate file, because the timer-topology interaction tests do not really test the topology and are more of a timers-arena integration test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sched-ext__scx__3053 | sched-ext/scx | 3,053 | defect | 6a22c27e171c732adab77ea156da402f41441e92 | af19653aa40c264dd743e9905c6398450aa8affc | scx_lavd: Revise the time slice calculation when pinned_slice_ns is on. | This PR made three changes:
- When the system is heavily loaded, the system-wide time slice could be smaller than the pinned_slice_ns. In this case, choose the system-wide time slice.
- At `ops.tick()`, the task's time slice was set to 0 when its accumulated time slice is greater than pinned_slice_ns (`taskc->acc_run... | diff --git a/scheds/rust/scx_lavd/src/bpf/lavd.bpf.h b/scheds/rust/scx_lavd/src/bpf/lavd.bpf.h
index 3d68f8d695..0697ddd3af 100644
--- a/scheds/rust/scx_lavd/src/bpf/lavd.bpf.h
+++ b/scheds/rust/scx_lavd/src/bpf/lavd.bpf.h
@@ -384,8 +384,7 @@ const volatile u16 *get_cpu_order(void);
int plan_x_cpdom_migration(void);
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The section that shrinks a slice-boosted task's remaining slice could be removed, since the preceding duration >= ub check will kick in on subsequent ticks anyway, though removal may lag kicking out a long-running task by up to 4ms on a 250Hz system.", "category": "design", "verdict": "supported... | null |
sched-ext__scx__3098 | sched-ext/scx | 3,098 | defect | 9bf0b446013c2256b7f9e2e9b2b6641863fd6a94 | eb1f94d6d475966f4346dacaeeb144942dee893f | scx_lavd: Account for time stolen from tasks from steal/irq_time | In high traffic networking services, irq_time can account for up to 30% of the entire system's cpu time. The current time accounting does not take into account time stolen by IRQ or steal which can make tasks appear as though it ran longer on CPU than reality. This can skew vtime deadline calculations and other metrics... | diff --git a/scheds/rust/scx_lavd/src/bpf/main.bpf.c b/scheds/rust/scx_lavd/src/bpf/main.bpf.c
index d8f15f9fa4..6d939a6dc3 100644
--- a/scheds/rust/scx_lavd/src/bpf/main.bpf.c
+++ b/scheds/rust/scx_lavd/src/bpf/main.bpf.c
@@ -392,7 +392,7 @@ static void update_stat_for_running(struct task_struct *p,
reset_task_flag(... | 2 | 1 | 0 | [{"id": "G0", "claim": "If p->se.sum_exec_runtime does not increase while the system is suspended, the code related to suspended duration tracking (get_suspended_duration_and_reset(), cpuc->online_clk, cpuc->offline_clk) can be removed.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introdu... | null |
sched-ext__scx__3100 | sched-ext/scx | 3,100 | defect | 6e048aca7ffdc6073c384851cbac714978185e9d | c02b8d6736e079ce5e21fe08f12a3b6c1db1f74e | layered: Add a new NUMANode Matcher | We have multi-socket systems with CPU pinned processes (one per numa node). We found it's better to separate these processes to different layers for better performance.
~~As part of the development, I noticed the GPU Matcher is not working (e.g. `[{"UsedGpuPid": true},{"IsGroupLeader":true}]`)
Had a patch to restor... | diff --git a/scheds/rust/scx_layered/examples/numa_node.json b/scheds/rust/scx_layered/examples/numa_node.json
new file mode 100644
index 0000000000..2fa6c43caf
--- /dev/null
+++ b/scheds/rust/scx_layered/examples/numa_node.json
@@ -0,0 +1,74 @@
+[
+ {
+ "name": "stress-ng numa 0",
+ "comment": "Match stress-ng proce... | 2 | 1 | 1 | [{"id": "G0", "claim": "Depending on how task affinities are set, the allow_node_aligned criteria should perhaps also use the NUMA-node subset check, possibly with a configurable num_cpus threshold for when lo fallback layers are used, to avoid stalls.", "category": "design", "verdict": "uncertain", "priority": "P2", "... | null |
sched-ext__scx__3145 | sched-ext/scx | 3,145 | defect | ac58df714beda5f7d7c0a5ccfd9c493023600f00 | f9797621ce9255c8b2da637ba146a1c7751600d4 | mitosis: make independent of cpu cg controller presence | this pr makes mitosis work more/less the same with cpu controller disabled.
it addresses the following issues:
1) cgroup_init/move/exit are never called when cpu controller is disabled.
2) bpf/scx cgroup helpers return root cg when cpu controller is disabled.
3) use cpus effective instead of cpus allowed when s... | diff --git a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
index 911b106f97..b51e6f7775 100644
--- a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
+++ b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
@@ -44,6 +44,14 @@ const volatile bool split_vtime_updates = fa... | 2 | 2 | 2 | [{"id": "G0", "claim": "Mitosis should work without depending on the CPU controller by using a cgroup_attach_task tracepoint to replicate cgroup_init (instead of the cpu_ctrl_enabled detection workarounds, including lazy cgrp_ctx creation in task_cgroup), with the whole thing conditional on a flag to make rollout easie... | null |
sched-ext__scx__3218 | sched-ext/scx | 3,218 | defect | 7b229b8d73ab0896d484c2b0ddb3c9ff0917b242 | 6bc7f8744226d36293732c61640b721a16fd4202 | scx_lavd: Improve latency criticality propagation among tasks. | This patch set improves how we propagate latency-criticality across waker-wakee relationships and how we use it to achieve better overall latency. It includes the following three changes:
* Previously, we propagated (inherited) the waker’s latency-criticality to the wakee (i.e., forward propagation). This is good to... | diff --git a/scheds/rust/scx_lavd/src/bpf/lat_cri.bpf.c b/scheds/rust/scx_lavd/src/bpf/lat_cri.bpf.c
index f5a74c1cec..9d1bcb89dc 100644
--- a/scheds/rust/scx_lavd/src/bpf/lat_cri.bpf.c
+++ b/scheds/rust/scx_lavd/src/bpf/lat_cri.bpf.c
@@ -50,6 +50,14 @@ static u64 calc_weight_factor(struct task_struct *p, task_ctx *tas... | 2 | 1 | 0 | [{"id": "G0", "claim": "Latency criticality propagation should take into account the number of wakees: a task that wakes a number of latency-critical tasks should perhaps get extra latency criticality, but the implementation only inherits from the single maximum wakee.", "category": "design", "verdict": "uncertain", "p... | null |
sched-ext__scx__3220 | sched-ext/scx | 3,220 | defect | 639b413b49038eb756c946adeced00561ea5c98a | bd365d7588ef96f5385fd26d012a8e1bcfd0f9e0 | scx_cosmos: use PMU library for perf event handling | The perf_event tracking logic in scx_cosmos and that of the pmu library are relatively similar and can be merged. Expand the PMU library API, and use the newly exposed functionality in scx_cosmos to handle PMU events. | diff --git a/lib/pmu.bpf.c b/lib/pmu.bpf.c
index 045910ae09..c324e9f064 100644
--- a/lib/pmu.bpf.c
+++ b/lib/pmu.bpf.c
@@ -44,6 +44,7 @@ struct {
__type(value, struct scx_pmu_counters);
} scx_pmu_tasks SEC(".maps");
+__weak
int scx_pmu_event_stop(struct task_struct __arg_trusted *p)
{
struct scx_pmu_counters *... | 1 | 1 | 1 | [{"id": "G0", "claim": "After this change the scheduler's perf-event statistics are apparently not read correctly (ev_dispatches stays 0 where it previously counted dispatches).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
sched-ext__scx__3242 | sched-ext/scx | 3,242 | defect | adceafaa6043807ee1712cabb3a5bdb695ca6743 | 39ed58a3980a57ea0974b040bf1ee7baf34b61f4 | scx_lavd: Improve core compaction to use effective capacity. | The core compaction determines the number of active CPUs based on the required compute capacity. It is assumed that each CPU can achieve its maximum architectural capacity (i.e., maximum capacity). However, the effective capacity that a CPU can achieve at a certain moment can be restricted by various factors, such as t... | diff --git a/scheds/rust/scx_lavd/src/bpf/idle.bpf.c b/scheds/rust/scx_lavd/src/bpf/idle.bpf.c
index f669ddcc6a..d6c58ad1af 100644
--- a/scheds/rust/scx_lavd/src/bpf/idle.bpf.c
+++ b/scheds/rust/scx_lavd/src/bpf/idle.bpf.c
@@ -9,6 +9,7 @@
#include "intf.h"
#include "lavd.bpf.h"
#include "util.bpf.h"
+#include "power... | 1 | 1 | 1 | [{"id": "G0", "claim": "With energy model awareness, 'i' indicates the pco_index, so the CPU should be fetched as cpu_order[j], not cpu_order[i].", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sched-ext__scx__3250 | sched-ext/scx | 3,250 | defect | 2f0b06269f033455716e2a23be0287fe83590563 | 38e797e79556baa7b0d052217a399ac6ca99df72 | scx_mitosis: Reject partial multi-CPU pinning by default | Add check to error out when a task from cell >0 has multi-CPU affinity that doesn't cover the entire cell. Single-CPU pinning remains allowed.
Use --enable-multicpu-pinning to opt-in to the old behavior at the risk of reduced performance | diff --git a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
index b2db547aae..291fe798a3 100644
--- a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
+++ b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
@@ -36,6 +36,7 @@ const volatile bool debug_events_enabled = fa... | 1 | 1 | 1 | [{"id": "G0", "claim": "Rejecting partial multi-CPU pinning should not be the default: defaulting to rejection departs from current behavior, complicates deploying the scheduler binary independently of CLI argument changes, and introduces the risk that a library affinitizing its threadpool causes mass scheduler kicks a... | null |
sched-ext__scx__3300 | sched-ext/scx | 3,300 | defect | a931f9ca47af8178ab18bf341ce9a27049c97b3c | 5ad44c267648f746cebf2112117c5c32b298b388 | scx_lavd: Revise load-balancing conditions | LAVD's periodic load balancer runs unconditionally even when the system is lightly loaded, and balancing provides no benefit. This wastes CPU cycles and can cause unnecessary task migrations that hurt cache locality.
This series makes load balancing more selective by skipping it when the system is idle enough, and b... | diff --git a/scheds/rust/scx_lavd/src/bpf/balance.bpf.c b/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
index 331aaa1762..2f1ce3599a 100644
--- a/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
+++ b/scheds/rust/scx_lavd/src/bpf/balance.bpf.c
@@ -18,6 +18,7 @@
extern const volatile u8 mig_delta_pct;
+extern const volatile... | 4 | 4 | 0 | [{"id": "G0", "claim": "Use the p2s() macro for ((u64)lb_low_util_pct << LAVD_SHIFT) / 100 or, as the reviewer followed up, pre-calculate the scaled value once on the Rust side at scheduler initialisation instead of recomputing it in BPF on every low-utilisation check.", "category": "maintainability", "verdict": "suppo... | null |
sched-ext__scx__3341 | sched-ext/scx | 3,341 | defect | f82cefc3aef83b2190fb871fcb64f9924462cc76 | 7aaa02262fb009b6238fe473208583675f2cb6b5 | scx_mitosis: add RAII guard framework and replace manual cleanup | Add cleanup.bpf.h with kernel-style RAII macros (DEFINE_FREE, __free, no_free_ptr, DEFINE_CLASS, DEFINE_GUARD, DEFINE_LOCK_GUARD_0, guard, scoped_guard) modeled on the kernel's include/linux/cleanup.h.
Define resource types for cgroup, bpf_cpumask, idle_cpumask, rcu, and spin_lock guards. Replace all manual goto-bas... | diff --git a/scheds/rust/scx_mitosis/src/bpf/cleanup.bpf.h b/scheds/rust/scx_mitosis/src/bpf/cleanup.bpf.h
new file mode 100644
index 0000000000..b28a01f29c
--- /dev/null
+++ b/scheds/rust/scx_mitosis/src/bpf/cleanup.bpf.h
@@ -0,0 +1,126 @@
+/* Copyright (c) Meta Platforms, Inc. and affiliates. */
+/*
+ * This software... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new cleanup.bpf.h header could add the kernel version it was taken from, in case the code diverges in the future.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The simplified no_free_ptr macro could adopt the kernel's __... | null |
sched-ext__scx__3349 | sched-ext/scx | 3,349 | defect | 59b9392c7ef97f28cafc9d013e6b30fe32057ba2 | 0e0ad19921ad1e7c9e7e57c25510f375045bd3e3 | scx_cosmos: Introduce "sticky" and dynamic PMU thresholds | This series extends the scx_cosmos scheduler's PMU-based scheduling with a second perf counter, a dedicated "sticky" event with its own threshold, and optional dynamic adjustment of both thresholds at runtime.
scx_cosmos already had a migration event (-e / -E): when a task's event rate exceeds the threshold, it is m... | diff --git a/lib/pmu.bpf.c b/lib/pmu.bpf.c
index c324e9f064..090372ed7a 100644
--- a/lib/pmu.bpf.c
+++ b/lib/pmu.bpf.c
@@ -4,19 +4,36 @@
char _license[] SEC("license") = "GPL";
-/*
- * XXXETSAL Single counter for now, can adjust later. All the code
- * except for bpf_perf_event_read_value is compatible with multi... | 2 | 2 | 2 | [{"id": "G0", "claim": "CI is failing because the scheduler hits a kernel BPF verifier bug (REG INVARIANTS VIOLATION) which the author believes is a kernel issue and set out to investigate.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The switch-b... | null |
sched-ext__scx__3361 | sched-ext/scx | 3,361 | defect | aed1f77df6556fe900c540caa8bbdd2997b2cb87 | d2d0d294706dbd53b9bfae097457ae4f1cbbdc4a | lib: cgroup ATQ lifecycle cleanup + scx_alloc() migration for rbtree/ATQ | This series addresses proper cleanup of ATQ during cgroup exit, motivated by `cg_stress.sh` -- a new cgroupv2 stress script that repeatedly creates and destroys thousands of cgroups to exercise the cgroup lifecycle path in `lib/cgroup_bw`.
Running the stress test revealed that `cbw_free_llc_ctx()` had a TODO where A... | diff --git a/Cargo.lock b/Cargo.lock
index 557ca84077..8bd42bd551 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3664,6 +3664,7 @@ name = "scx_arena_selftests"
version = "1.0.7"
dependencies = [
"anyhow",
+ "clap",
"libbpf-rs",
"scx_cargo",
"scx_utils",
diff --git a/lib/arena.bpf.c b/lib/arena.bpf.c
index a3f3a... | 6 | 4 | 1 | [{"id": "G0", "claim": "Explicitly numbering the selftest enum values is unnecessary since the C standard guarantees consecutive values, so the PR could drop all the '= N' annotations except '= 0'.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
sched-ext__scx__3365 | sched-ext/scx | 3,365 | defect | f9815fac4329ca5d0d7bf9de9e3473271d66e8d9 | 3a93b862eab0ecc157994fba380681b944f5e4cc | scx_cosmos: Add tick hook for preemption enforcement | Without a tick callback, cosmos relies entirely on voluntary yields for CPU handoff. This means a CPU-bound task can hold the CPU well beyond its 10µs time slice, starving latency-sensitive workloads like nginx workers waiting on epoll wakeups.
The tick hook enforces preemption in three cases:
1. Slice enforcemen... | diff --git a/scheds/rust/scx_cosmos/src/bpf/main.bpf.c b/scheds/rust/scx_cosmos/src/bpf/main.bpf.c
index f4f686609b..fd84b10da2 100644
--- a/scheds/rust/scx_cosmos/src/bpf/main.bpf.c
+++ b/scheds/rust/scx_cosmos/src/bpf/main.bpf.c
@@ -994,6 +994,38 @@ static inline void wakeup_cpu(s32 cpu)
scx_bpf_kick_cpu(cpu, SCX_K... | 5 | 4 | 4 | [{"id": "G0", "claim": "The tick's runtime > task_slice(p) preemption check should already be done by the kernel, so it may not be needed.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Invoking the DSQ kfunc from ops.tick() probably costs throughput, so n... | null |
sched-ext__scx__3366 | sched-ext/scx | 3,366 | defect | aed1f77df6556fe900c540caa8bbdd2997b2cb87 | e3b7424fabc8b612661bb60a2f78e38f338f1f8f | scx_layered: Per-node LLC drain and fallback dispatch | ## Summary
- Reduce MAX_NUMA_NODES from 64 to 8 to shrink per-node arrays
- Factor per-node layer fields (nr_cpus, nr_pinned_tasks) into layer_node_ctx
- Make fallback dispatch per-node — each node independently tracks which layers have zero local CPUs and services their stranded DSQ tasks
- Add per-node LLC list to no... | diff --git a/scheds/rust/scx_layered/src/bpf/intf.h b/scheds/rust/scx_layered/src/bpf/intf.h
index fe72b51554..991b733043 100644
--- a/scheds/rust/scx_layered/src/bpf/intf.h
+++ b/scheds/rust/scx_layered/src/bpf/intf.h
@@ -29,7 +29,7 @@ enum consts {
MAX_CPUS_U8 = MAX_CPUS / 8,
MAX_TASKS = 131072,
MAX_PATH = 4... | 1 | 1 | 0 | [{"id": "G0", "claim": "The node data written by refresh_node_ctx probably only needs to be updated once (at init), so copying it on every periodic refresh is unnecessary overhead.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sched-ext__scx__3388 | sched-ext/scx | 3,388 | defect | ace77ef00b20fbc84875b43a5af19801c386d58b | 294e312c6c55a5f797a225c5ffdbf0a3eb1f0798 | common.bpf.h, scx_lavd: use task clock for runtime accounting | This series improves runtime accounting in scx_lavd by introducing
proper per-CPU clock helpers in `common.bpf.h` and switching lavd's
runtime measurement from a task-lifetime accumulator to the direct
per-CPU clock source.
**Patch 1** adds four BPF clock helpers to `scheds/include/scx/common.bpf.h`:
- `scx_cl... | diff --git a/scheds/include/scx/common.bpf.h b/scheds/include/scx/common.bpf.h
index 333c86216f..48961ca629 100644
--- a/scheds/include/scx/common.bpf.h
+++ b/scheds/include/scx/common.bpf.h
@@ -885,6 +885,162 @@ static inline u64 get_prandom_u64()
return ((u64)bpf_get_prandom_u32() << 32) | bpf_get_prandom_u32();
}... | 1 | 1 | 0 | [{"id": "G0", "claim": "The rewritten comment in account_task_runtime() still references sum_exec_runtime, a stale reference now that task_exec_time() has been replaced by scx_clock_task(), and the comment should be updated to reference scx_clock_task().", "category": "documentation", "verdict": "supported", "priority"... | null |
sched-ext__scx__3393 | sched-ext/scx | 3,393 | defect | 2465b5b8726193d3f3606b0c2249267aa88ac9b5 | 7936e32e8822426b3b62b29d91a1c33b41b91e77 | Mitosis: dynamic affinity CPU selection for pinned tasks (based on PR #3206) | scx_mitosis: add dynamic CPU selection for affinitized tasks
Tasks affinitized to a subset of their cell were bound to a single CPU
from their affinity mask at initialization. This mostly works since most
affinitized tasks target a single CPU, but we've observed cases where
tasks a... | diff --git a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
index 0f7c8d46f2..e6bf63292e 100644
--- a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
+++ b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
@@ -48,6 +48,7 @@ const volatile bool reject_multicpu_pinning = false;
c... | 9 | 6 | 3 | [{"id": "G0", "claim": "The redistribution heuristic in enqueue_pinned_cpu is too aggressive because it triggers whenever the DSQ has more than 0 tasks queued; it should be gated on something like how long the task has been stuck runnable or on queue depth.", "category": "design", "verdict": "supported", "priority": "P... | null |
sched-ext__scx__3425 | sched-ext/scx | 3,425 | defect | a0c1d2cccaaf728ae27f128bdd92ef99d65e0a0a | 7c0199a964806bccc6026ea1650214f1c323612a | scx_cosmos: Misc improvements | A set of generic improvements for scx_cosmos:
- Tune default settings for latency (since this is the most common use case for this scheduler)
- Improve SMT contention avoidance (option -S)
- Scale used time slice by CPU capacity (improve fairness in hybrid core systems)
- Avoid migration attempts with per-CPU t... | diff --git a/scheds/rust/scx_cosmos/src/bpf/main.bpf.c b/scheds/rust/scx_cosmos/src/bpf/main.bpf.c
index 96a6cedabe..4a5dc3d55e 100644
--- a/scheds/rust/scx_cosmos/src/bpf/main.bpf.c
+++ b/scheds/rust/scx_cosmos/src/bpf/main.bpf.c
@@ -80,6 +80,11 @@ const volatile u64 preferred_cpus[MAX_CPUS];
*/
const volatile u64 ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `u64 now = scx_bpf_now()` call added at the top of cosmos_select_cpu could be moved after the `is_wake_affine` check for a little extra performance.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sched-ext__scx__3426 | sched-ext/scx | 3,426 | defect | a0c1d2cccaaf728ae27f128bdd92ef99d65e0a0a | c739ec119d4d947f1a8fc230941ec22fbb782a4f | scx_lavd: Clock accuracy and utilization tracking improvements | This series fixes a systematic accuracy problem in scx_lavd: key metrics (latency criticality, performance criticality, fairness lag, utilization) were computed using wall-clock time, which is unreliable on heterogeneous CPU topologies. A task on a slow or power-throttled core accumulates wall-clock time faster for th... | diff --git a/scheds/include/scx/common.bpf.h b/scheds/include/scx/common.bpf.h
index a63a98a96b..123ca525d4 100644
--- a/scheds/include/scx/common.bpf.h
+++ b/scheds/include/scx/common.bpf.h
@@ -983,7 +983,20 @@ static inline u64 scx_clock_task(u32 cpu)
{
struct rq___local *rq = get_current_rq(cpu);
- /* Equivalen... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new line `cpuc_tot_task_time_invr= cpuc->tot_task_time_invr;` is missing a space before the assignment operator.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "After this pull request removes the call to get_suspended_duration_... | null |
sched-ext__scx__3459 | sched-ext/scx | 3,459 | defect | 6e622e5cc6338cfbb3a7c570f17e67c273a7d810 | a9b58281ee7d1bb34361999fc1ac35b8abc860e8 | mitosis: guard against vtime underflow in stopping | ## Summary
`scx_bpf_now()` is per-CPU (`this_rq()`) and not monotonic across CPUs. In `mitosis_stopping`, if `now < started_running_at` due to cross-CPU clock skew, the unsigned subtraction wraps to ~`U64_MAX`, corrupting vtime for the entire cell.
## Fix
Use `time_delta()` from `common.bpf.h` to clamp negative delt... | diff --git a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
index 994456e198..f1b8389057 100644
--- a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
+++ b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
@@ -1358,8 +1358,21 @@ void BPF_STRUCT_OPS(mitosis_stopping, struct task_... | 4 | 3 | 0 | [{"id": "G0", "claim": "The reviewers question whether the clock can actually go backward between ops.running() and ops.stopping() on different CPUs, so the underflow this PR guards against may never occur.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "clai... | null |
sched-ext__scx__3462 | sched-ext/scx | 3,462 | defect | 6e622e5cc6338cfbb3a7c570f17e67c273a7d810 | 2d692f3e9799703dedaef696edae32562e261741 | mitosis: skip reject-multicpu-pinning during cpuset transitions | ## Summary
When cpusets change, the kernel cpuset controller updates task `cpus_ptr` and fires `set_cpumask` BEFORE mitosis processes the change via `apply_cell_config`. In that window, the task's `cpus_ptr` reflects the new cpuset but the cell cpumask is still old, making the task appear partially pinned. The `reject... | diff --git a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
index 994456e198..60cb4f984f 100644
--- a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
+++ b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
@@ -63,6 +63,7 @@ struct llc_cpumask llc_to_cpus[MAX_LLCS];
u32 configur... | 4 | 2 | 1 | [{"id": "G0", "claim": "Recording applied_cpuset_seq in BPF's apply_cell_config could be racy: userspace might have applied only cpuset change N while the BPF side claims a later change N+1 was applied.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
sched-ext__scx__3464 | sched-ext/scx | 3,464 | defect | a27e8edfccf4f3e37c6c0a5b9595d9653ea95825 | 7705bb1aa3046b5d8ff163af7c643dcda2fc9855 | mitosis: avoid cross-cell CPU-local vtime contamination | We initialize a task's dsq_vtime from the vtime domain it was enqueued into, but in userspace-managed cell mode, apply_cell_config() can retag a CPU to a different cell while a task is still running on it. mitosis_stopping() would then copy that old-domain dsq_vtime into the retagged CPU's local vtime, tainting the des... | diff --git a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
index 6d4f5c0a89..e58998781f 100644
--- a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
+++ b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
@@ -1344,7 +1344,9 @@ void BPF_STRUCT_OPS(mitosis_running, struct task_st... | 4 | 2 | 1 | [{"id": "G0", "claim": "The PR does not pass the reviewer's vtime_contamination test (PR #3467), so either that test is a superset of real occurrences or this fix may not cover all the places the cross-cell vtime contamination needs fixing.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope":... | null |
sched-ext__scx__3476 | sched-ext/scx | 3,476 | defect | c41aa4658bf8d79a9a779b8cf4870f310fe5f995 | 87bcef9482a910b14aeb408a45e96cf4d3f37ede | scx_bpfland: add TIMELY v1 mode behind --timely flag | ## Summary
This adds TIMELY's delay-driven feedback for adaptive time slices as an optional mode in scx_bpfland behind the --timely flag.
When --timely is enabled:
- Delay-based time slice adaptation using TIMELY's gain algorithm
- Tasks adjust their time slice based on observed queueing delay
All TIMELY behavior is... | diff --git a/scheds/rust/scx_bpfland/src/bpf/main.bpf.c b/scheds/rust/scx_bpfland/src/bpf/main.bpf.c
index 4553b92a5a..9cf277ab69 100644
--- a/scheds/rust/scx_bpfland/src/bpf/main.bpf.c
+++ b/scheds/rust/scx_bpfland/src/bpf/main.bpf.c
@@ -28,6 +28,12 @@
*/
#define MAX_WAKEUP_FREQ 64ULL
+/*
+ * Enable TIMELY mode:... | 2 | 2 | 0 | [{"id": "G0", "claim": "The seven forward declarations for the do_timely_* helpers are unnecessary; the functions should be moved above their call sites instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The do_timely_* helpers mostly dupli... | null |
sched-ext__scx__3489 | sched-ext/scx | 3,489 | defect | d9da4ca0adbed83ab4e8c5bdd24cd73711a8f2ee | 4206395b4c8540bb0cac1256dfe7fb53644bb999 | scx_mitosis: revert dispatch peek to locked iterator approach | scx_mitosis: add --use-iter-peek flag to work around lockless peek phantom tasks
Add a dsq_peek() helper that can optionally use the iterator-based DSQ peek path instead of the lockless scx_bpf_dsq_peek() kfunc, controlled by the new --use-iter-peek CLI flag. This works around a potential kernel bug where where the ... | diff --git a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
index 7bd180ed41..d9f7fa5770 100644
--- a/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
+++ b/scheds/rust/scx_mitosis/src/bpf/mitosis.bpf.c
@@ -47,6 +47,7 @@ const volatile bool cpu_controller_disabled =... | 3 | 2 | 1 | [{"id": "G0", "claim": "The iterator-peek workaround should not be gated behind a flag -- the peek bug is too broken for the fix to be opt-in, since requiring a flag per kernel bug would be untenable.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It is ... | null |
sched-ext__scx__3529 | sched-ext/scx | 3,529 | defect | 36cadac52e511e5690481f4b271ffeffb3fe9aa9 | 390a748d7c23303384a12834265f1fde67820887 | slice shrinking: reduce runnable time for CPU-pinned tasks | **TLDR:** Pinned tasks can get stuck behind long running task slices with no alternative placement opportunities leading to imbalance. When there are pinned waiters, we shrink the time slice of the running task. This has two intended goals: 1) to improve latency for short running tasks, and 2) to time share an overcomm... | diff --git a/scheds/rust/scx_mitosis/src/bpf/intf.h b/scheds/rust/scx_mitosis/src/bpf/intf.h
index e1ddc33953..dc41f6df87 100644
--- a/scheds/rust/scx_mitosis/src/bpf/intf.h
+++ b/scheds/rust/scx_mitosis/src/bpf/intf.h
@@ -75,6 +75,9 @@ enum cell_stat_idx {
CSTAT_STEAL,
CSTAT_CLAMP_USED,
CSTAT_PIN_SKIP,
+ CSTAT_S... | 4 | 2 | 2 | [{"id": "G0", "claim": "The pull request adds too many stats in stats.rs and they should be reduced to about two (one global, one cell metric) unless they enable tuning parameters.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "update_task_runtime_ewma s... | null |
sched-ext__scx__3544 | sched-ext/scx | 3,544 | defect | a08c9e272b1807a57fa03bb2ddca467dd17287ce | 9bdabeaa33a8c131010547b33ddea051eac0d253 | lib/cgroup_bw + scx_lavd: arena migration, hot-path caching, correctness fixes |
This series bundles three loosely-related groups of changes that were
developed together while stress-testing CPU bandwidth throttling under
scx_lavd.
Arena migration and per-task hot-path caching
---------------------------------------------
scx_cgroup_bw_throttled() runs on every ops.enqueue() and ops.sto... | diff --git a/lib/cgroup_bw.bpf.c b/lib/cgroup_bw.bpf.c
index 1442c9c0c8..baa40f03a4 100644
--- a/lib/cgroup_bw.bpf.c
+++ b/lib/cgroup_bw.bpf.c
@@ -74,6 +74,14 @@ static u64 ROOT_CGID = 1;
struct scx_cgroup_ctx {
/* read-only cache line */
struct {
+ /*
+ * Free-list link. Must be the first field so that
+ * ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Replace the remaining hardcoded root cgroup id 1 in lib/cgroup_bw.bpf.c (the cur_cgx->id check and ids[0] write in replenish_timerfn, and the compare-and-swap in scx_cgroup_bw_reenqueue) with the ROOT_CGID constant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop... | null |
schibsted__jslt__103 | schibsted/jslt | 103 | defect | 4f4f5412db3eda29817b0bfa7d9c214147844c5a | 7d1d179cd6c5c62e29994c79bdd9406ffb78d116 | Feature/import from fs | Hi,
Here's a modest pull request that adds a FileSystemResourceResolver to resolve import statements from the file system. I need this feature as I did a JSLT playground - like small webapp for debugging purposes, and I have some complex JSLTs with imports.
I've added some unit tests.
Hope you'll find this use... | diff --git a/.gitignore b/.gitignore
index db1b352b..70ef0046 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,4 +12,10 @@
hs_err_pid*
.gradle
-build/
\ No newline at end of file
+build/
+out/
+target/
+
+# IntelliJ Idea project files
+.idea
+*.iml
\ No newline at end of file
diff --git a/src/main/java/com/schibsted... | 5 | 5 | 2 | [{"id": "G0", "claim": "The javadoc block 'Create a parser with a given resource resolver for import statements.' is orphaned in Parser.java and should be attached to a constructor or removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The jav... | null |
scholarly-python-package__scholarly__325 | scholarly-python-package/scholarly | 325 | defect | 9fe14de6f54ee6eef117ae2ea2743e8ebfe1d13b | e6f7735eaa9e7e7d5b1c1cf04d3dd08293867af1 | Make scholarly objects serializable | This PR makes Author and Publication object serializable, which appears to be a popular request.
(see #292, #201 , #195)
Enums and set types are not serializable by default. By inheriting from `int` and converting `set` to `list`, the `Author` and `Publication` data types can be serialized and stored on disk. This... | diff --git a/scholarly/author_parser.py b/scholarly/author_parser.py
index 0fad3daa..25504231 100644
--- a/scholarly/author_parser.py
+++ b/scholarly/author_parser.py
@@ -24,7 +24,7 @@ def get_author(self, __data)->Author:
""" Fills the information for an author container
"""
author: Author =... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Enums made int-based for JSON serialization are unreadable when serialized, and should instead be string-based (e.g. AUTHOR_PROFILE_PAGE = \"AUTHOR_PROFILE_PAGE\"), including in this PR.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scholarly-python-package__scholarly__542 | scholarly-python-package/scholarly | 542 | defect | 9269ff36ad2314e6cc0c5b499efc3b79b844707e | acb5a8656cf534df315ab060291ec4795044719e | Fixed an issue where search_pubs returns an empty response when only a single publication exists for the query. | Fixes #541 #517.
### Description
- Fixed an issue where you get an empty response when you try to use search_pubs and only a single publication exists for the query. This is because the paper html element has a different class list when only a single publication exists.
- Changed the _SearchScholarIterator objec... | diff --git a/scholarly/publication_parser.py b/scholarly/publication_parser.py
index fa58cbf..d25b055 100644
--- a/scholarly/publication_parser.py
+++ b/scholarly/publication_parser.py
@@ -58,7 +58,7 @@ def _load_url(self, url: str):
# this is temporary until setup json file
self._soup = self._nav._ge... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test_search_pubs_empty_publication test was changed to search a real query that returns one publication while still asserting zero results, so it no longer tests the empty-string case and its assertion contradicts the PR's own single-pub test.", "category": "testing", "verdict": "supported",... | null |
scholarly-python-package__scholarly__78 | scholarly-python-package/scholarly | 78 | defect | 867f740f61d05c10925e502b56d4bcdf1b1849cb | cd80b951a36bc547b6f8462cb635edbdfa8420f9 | Break up Author fill into sections | As mentioned in #18 it is desirable to not get the publications for an author when filling it because of the time this takes. I have taken the idea from that pull request further and made sections for Author information that can be selectively filled.
As a subtask, I updated the tests to reflect the current data fro... | diff --git a/scholarly/scholarly.py b/scholarly/scholarly.py
index 55c1c412..08d5ed4e 100644
--- a/scholarly/scholarly.py
+++ b/scholarly/scholarly.py
@@ -259,55 +259,87 @@ def __init__(self, __data):
self.citedby = int(citedby.text[9:])
self._filled = False
- def fill(self):
- """... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add documentation in the README for the Author.fill(sections=...) functionality added by this pull request.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scholarly-python-package__scholarly__92 | scholarly-python-package/scholarly | 92 | defect | c187b17e95aaa01927cbad0777d9ec42fa8956c0 | b60bcc5786c25ec94cb15fd9e7c6f8561c38ff2e | Expansion of the package | - Everything is in separate classes/files
- the test suite is the same but was moved out of the scholarly folder
- implemented a navigator class, that is kind of a "browser" to better distribute tasks among classes
- updated action to take in account modifications.
- Since this is a major relesease I its own branch... | diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml
index e7aa4dba..10c70a06 100644
--- a/.github/workflows/pythonpackage.yml
+++ b/.github/workflows/pythonpackage.yml
@@ -39,4 +39,4 @@ jobs:
run: ./setup_tor.sh
- name: Test with unittest
run: |
- cd scholarl... | 7 | 7 | 3 | [{"id": "G0", "claim": "The output of `_tor_works()` should be stored in a variable instead of being called on every fetch, which issues an additional network request each call.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Tor-check result sho... | null |
schollz__progressbar__151 | schollz/progressbar | 151 | defect | c8cf82e6d2f740f8f2a6b2a6ed90fef896c77dd7 | 87c9df09cac5fc5ee3c338a4d3a77af6258aacbe | feature/allow-custom-spinners | # Description
This PR adds a new option to use custom spinners by passing in a `[]string` into `OptionSpinnerCustom`. This allows to use other spinners than one of the 76 preset spinners.
It also returns an `error` in the `Add` func if both options are used. This is not ideal and the correct place would be to make ... | diff --git a/progressbar.go b/progressbar.go
index 4252fa4..7e96486 100644
--- a/progressbar.go
+++ b/progressbar.go
@@ -93,8 +93,8 @@ type config struct {
// clear bar once finished
clearOnFinish bool
- // spinnerType should be a number between 0-75
- spinnerType int
+ // spinner is a slice of string to represen... | 1 | 1 | 1 | [{"id": "G0", "claim": "Renaming OptionSpinnerType to take a []string instead of an int is backward-incompatible, so keep OptionSpinnerType(spinnerType int) and add a new function OptionSpinnerCustom(spinner []string).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
schollz__progressbar__52 | schollz/progressbar | 52 | defect | e01b4dd38358d6bd3e3ebfd201a5811c99ca9ff4 | 795b97513607fa151499edd07b391755b6b167b5 | added infinite scrolling option | Here are the following changes made in code:
1. Added `ignoreLength` flag.
2. `config.currentByte` takes care of the number of bytes progressed.
3. Able to show infinite progress bar with` iteration/sec.`
4. Added showByte Option to toggle the speed rate display.
5. Added test cases.
6. Removed option to upd... | diff --git a/progressbar.go b/progressbar.go
index 0d0b2e3..d3b9531 100644
--- a/progressbar.go
+++ b/progressbar.go
@@ -57,6 +57,7 @@ type config struct {
theme Theme
renderWithBlankState bool
description string
+ ignoreLength bool
// whether the output is expected to contain ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The bytes-rate string in renderProgressBar is now always computed and shown, so it should be gated on whether OptionShowBytes is toggled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ChangeMax(newMax int) appears unneeded a... | null |
schombert__Project-Alice__1995 | schombert/Project-Alice | 1,995 | defect | 9e61f75244083f980736a6ce2c7c526a3b011f69 | 3d7f5046255091bb72b8334cb189fe175d883909 | MP player network refactor, support co-op, and some minor military changes | This PR refactors much of the MP-related code to make the "mp_player_id" the main entity representing a player in MP, instead of the nation_id being the identifier. The nickname is used for identification when sent from client to server, or vice versa.
In the process refactors many things such as ingame messages, nati... | diff --git a/assets/alice.gui b/assets/alice.gui
index abd03f0f1..12d0be579 100644
--- a/assets/alice.gui
+++ b/assets/alice.gui
@@ -1,4 +1,14 @@
guiTypes = {
+ guiButtonType = {
+ name = "observer_button"
+ extends = "lobby"
+ position = { x = 17 y = -200 }
+ quadTextureSprite ="GFX_frontend_play_button"
+ butt... | 5 | 4 | 0 | [{"id": "G0", "claim": "Since switch_all_players can now be run in single player mode and does not necessarily affect the network state, it should probably be moved out of the network header, calling any needed network functions from its body.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "... | null |
schombert__Project-Alice__2012 | schombert/Project-Alice | 2,012 | defect | f783b454ac6ecd59678fdc6112fa40d106abacfe | 654dc8f41546c04d0e6456916ed8e8895d3693b6 | Even more getter refactoring, fix invalid writes, land attrition refactoring & some fixes | - Refactors economy_government getter-setters to use setters
- Fixes a bunch of invalid writes, mostly from using state instances from uncolonized provinces.
- Changes the behavoir when a pop attached to a brigade dissapears for any reason, now it will immediately remove the brigade and not allow any brigade to e... | diff --git a/assets/alice.gui b/assets/alice.gui
index 66bac27be..7b09b5ba0 100644
--- a/assets/alice.gui
+++ b/assets/alice.gui
@@ -19,6 +19,93 @@ guiTypes = {
format = left
fixedsize = yes
}
+
+
+
+
+ windowType = {
+ name = "disband_window"
+ backGround="Background"
+ position = { x=-250 y=-140 }
+ ... | 6 | 4 | 1 | [{"id": "G0", "claim": "You cannot delete units from a list while iterating over it because deleting reorders the list and undesirable things will happen (also for the similar change below); the idiomatic fix is to delete the first element and repeat until the list is empty.", "category": "correctness", "verdict": "sup... | null |
schombert__Project-Alice__2177 | schombert/Project-Alice | 2,177 | defect | 97850853190fa9f1a321907d6a7aa8bfb0a7552b | 4beb23c9fbfeaeb4785527d3d4f0af68d9921851 | Implement OOS-reporter dcon extension | - Implements an OOS-reporter which generates code from dcon to check every property and relationship, and export it to a report (as a string). It is fetched from this repo: https://github.com/[ZombieFreak115/DataContainer_OOS_Reporter](https://github.com/ZombieFreak115/DataContainer_OOS_Reporter)
At the moment it i... | diff --git a/.gitignore b/.gitignore
index 841d10b17..73065df54 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,7 @@ test_fs_support_case_sensitivity
# Generated parsers
*_generated.hpp
*lua_dcon_generated.cpp
+*dcon_oos_reporter_generated.cpp
*/local_user_settings.hpp
*/lua/engine/*
diff --git a/CMakeList... | 3 | 3 | 2 | [{"id": "G0", "claim": "Debug-string conversion should not be scattered as to_string() members across the code base but centralized as free to_debug_string(...) overloads for each supported structure, grouped in a single common location.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"... | null |
schrodinger__coordgenlibs__38 | schrodinger/coordgenlibs | 38 | defect | a7eb54fe5b50f7daee015d8b79b4aad905d7c691 | 6b121f929788e05791a75f7a450b439cb89eb55c | Speed up coordgen, especially for very slow molecules | Improve coordgen performance: #39
When detecting clashes, do a rough binning of atoms. If both
atoms for one bond are above both atoms of the other bond, they
can't be a clash. This saves clash calculations for things that
are obviously not clashes. It has an impact on big structures
that are partially temp... | diff --git a/CoordgenFragmentBuilder.cpp b/CoordgenFragmentBuilder.cpp
index 0ff1949..27baa6f 100644
--- a/CoordgenFragmentBuilder.cpp
+++ b/CoordgenFragmentBuilder.cpp
@@ -11,6 +11,7 @@
#include "CoordgenMinimizer.h"
#include "sketcherMinimizer.h"
#include "sketcherMinimizerFragment.h"
+#include "sketcherMinimizerS... | 4 | 1 | 1 | [{"id": "G0", "claim": "Add braces around the single-statement if body the pull request adds in applyForces (`if (squaredDistance > restV) return;`).", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add braces around the single-statement `if (skip... | null |
schrodinger__coordgenlibs__80 | schrodinger/coordgenlibs | 80 | defect | c78b5f256f07eda6b473291abc8254dcd0830215 | 90f8790e756556404f3b2c1f0f60817ec0adbf80 | COORDGEN-262 | Always trust bond order for terminal metals (in other words never convert bonds to terminal atoms to zero order bonds), this means that terminal atoms are treated as part of the same molecule for depiction purposes, so the bond is always a standard length. | diff --git a/sketcherMinimizer.cpp b/sketcherMinimizer.cpp
index 5b51890..d160b35 100644
--- a/sketcherMinimizer.cpp
+++ b/sketcherMinimizer.cpp
@@ -168,15 +168,21 @@ void sketcherMinimizer::initialize(
_referenceAtoms = minMol->_atoms;
_referenceBonds = minMol->_bonds;
+ std::map<sketcherMinimizerAtom*,... | 3 | 2 | 2 | [{"id": "G0", "claim": "The new bondsToAtom map could instead check the length of sketcherMinimizerAtom::bonds.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please add a test for this change.", "category": "testing", "verdict": "supported", "pri... | null |
scikit-hep__awkward__1773 | scikit-hep/awkward | 1,773 | defect | df377bd719926343e88a254cede3deacd3bc07d0 | daaf99477d6541142bcf92c9830a7e910ea45c44 | feat: add new `"fields"` key to `RecordForm` | This PR fixes #1766 by introducing a new `RecordForm` key: `fields`:
- If present, the `fields` key indicates that Awkward should read the `RecordForm` as a new-style (non-legacy) `Form`.
- If users mix form styles, Awkward will raise a `ValueError`. | diff --git a/src/awkward/forms/form.py b/src/awkward/forms/form.py
index d0b449f74a..39af785810 100644
--- a/src/awkward/forms/form.py
+++ b/src/awkward/forms/form.py
@@ -5,11 +5,24 @@
from typing import Any, Mapping
import awkward as ak
+from awkward import _errors
np = ak.nplikes.NumpyMetadata.instance()
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should not raise an error when old-style and new-style RecordArray contents are mixed, and the test asserting that ValueError should instead become a test that the form still produces the right output.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "i... | null |
scikit-hep__awkward__1943 | scikit-hep/awkward | 1,943 | defect | 3682de69720fe6b584f46312d074dca22a667036 | 25d1bbf2c0f389d3d7a05d744abf06b6c57aaaab | fix: consolidate regular indexing | Fixes #1358 by using `maybe_to_NumpyArray`. `RegularArray`s that succeed with `maybe_to_NumpyArray()` follow _NumPy_ indexing. Previously, they followed Awkward Indexing.
<!-- docs-preview-start -->
----
:books: The documentation for this PR will be available at <https://awkward-array.readthedocs.io/en/agoose77-fi... | diff --git a/src/awkward/_slicing.py b/src/awkward/_slicing.py
index 43195c2b0e..91d1cab221 100644
--- a/src/awkward/_slicing.py
+++ b/src/awkward/_slicing.py
@@ -151,9 +151,26 @@ def normalise_item(item, backend: ak._backends.Backend):
elif isinstance(item, ak.contents.NumpyArray):
return item.data
+ ... | 3 | 2 | 2 | [{"id": "G0", "claim": "The PR's policy of choosing NumPy vs Awkward indexing from the layout type makes `mask_identity=False` (`int64`) and masked (`?int64`) reductions index confusingly differently, and the author asks whether the team is comfortable with that policy.", "category": "design", "verdict": "opposed", "pr... | null |
scikit-hep__awkward__1968 | scikit-hep/awkward | 1,968 | defect | e5836e9dcc0b6db92079b36e5bc4f730c6dde7ac | 36620768f4fa8554af55f474d07294539ae26595 | fix: add return_value='simplified' to ak.transform and revamp ak.firsts/ak.singletons | The first commit touches a lot of files because it propagates `Content.simplified` through `recursively_apply`, which was only partially done by #1939.
It also _changes_ the `ak.transform` API to take a `return_value = "none" | "original" | "simplified"` argument instead of `return_array = False | True`. The `ak.tra... | diff --git a/src/awkward/_connect/jax/trees.py b/src/awkward/_connect/jax/trees.py
index 30cd1bb69a..d1008a0983 100644
--- a/src/awkward/_connect/jax/trees.py
+++ b/src/awkward/_connect/jax/trees.py
@@ -21,7 +21,7 @@ def action(node, **kwargs):
if isinstance(node, ak.contents.NumpyArray):
data_ptr... | 3 | 2 | 1 | [{"id": "G0", "claim": "A utility function like ak._util.decompose_array returning a (layout, behavior) tuple should be added so that behavior_of calls are easier to spot.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment should be added ... | null |
scikit-hep__awkward__2045 | scikit-hep/awkward | 2,045 | defect | 492368e8e0112300cdd29f85fee903f87cb810d4 | 948c07d273ae4081c8b18f65f941036a80ff7492 | fix: support scalars in tuple (and list) arguments provided to `__array_function__` | This fixes #1318.
It's not clear to me whether NumPy has a specification for the semantic meaning of its argument types. Nearly-always a tuple indicates a "collection of arays", whereas lists are themselves often "array-like", but seemingly this isn't formalised anywhere. To err on the side of caution, the conversio... | diff --git a/src/awkward/_connect/numpy.py b/src/awkward/_connect/numpy.py
index 568a63f05f..b8ec5bf4ae 100644
--- a/src/awkward/_connect/numpy.py
+++ b/src/awkward/_connect/numpy.py
@@ -24,13 +24,29 @@ def convert_to_array(layout, args, kwargs):
implemented = {}
+def _value_to_rectilinear(x):
+ if isinstance(
... | 3 | 1 | 1 | [{"id": "G0", "claim": "Records (both ak.highlevel.Record and ak.record.Record) should not be included among the types that get converted to rectilinear arrays, since a Record is like a scalar of a structured array rather than a NumPy-like array.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope"... | null |
scikit-hep__awkward__2194 | scikit-hep/awkward | 2,194 | defect | 4274552c21f50649a37f934721783cfb54f39ff6 | 1327123aed1a46c46dea8155bd6e962f1dff758f | fix: don't raise `NotImplementedError` when reading empty array from Parquet | This PR proposes an implementation for reading an zero-length `ak.RecordArray` / Arrow `Table` from Parquet.
Since for zero-length there are no batches to use for conversion, an empty `RecordBatch` is created matching the input schema, and is propagated through the `handle_arrow` function.
There might be better ... | diff --git a/src/awkward/_connect/pyarrow.py b/src/awkward/_connect/pyarrow.py
index 146063b07d..6faf36fc32 100644
--- a/src/awkward/_connect/pyarrow.py
+++ b/src/awkward/_connect/pyarrow.py
@@ -1001,8 +1001,13 @@ def handle_arrow(obj, generate_bitmasks=False, pass_empty_field=False):
elif isinstance(obj, pyarrow.... | 2 | 2 | 2 | [{"id": "G0", "claim": "The S1 approach of building a RecordBatch from empty arrays still raises pyarrow.lib.ArrowNotImplementedError for the extensionarray=True case, so the empty-table case the PR set out to handle remains unhandled; the reviewer suggests instead returning form_handle_arrow(obj.schema, pass_empty_fie... | null |
scikit-hep__awkward__2196 | scikit-hep/awkward | 2,196 | defect | d8e7fc84268ddc70d550edd5a53016f0036af11c | f0ba7f76bbbb906ad629226967fd594890c2f758 | fix: ak.values_astype now turns 'unknown' type into the requested type. | ...but I forgot that we wanted to parameterize it: https://github.com/scikit-hep/awkward/issues/2188#issuecomment-1412158519.
I'll do that when I can get back to this. | diff --git a/src/awkward/_do.py b/src/awkward/_do.py
index 3c604ca1c3..aa6393f5ea 100644
--- a/src/awkward/_do.py
+++ b/src/awkward/_do.py
@@ -255,8 +255,8 @@ def flatten(layout: Content, axis: int = 1) -> Content:
return flattened
-def numbers_to_type(layout: Content, name: str) -> Content:
- return layout... | 1 | 1 | 0 | [{"id": "G0", "claim": "The _numbers_to_type signature added by the pull request should declare its return type as Content instead of Self.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scikit-hep__awkward__2198 | scikit-hep/awkward | 2,198 | defect | 4274552c21f50649a37f934721783cfb54f39ff6 | f8e39b849618f6283467207cf8dc092ac80584b1 | feat: add `ak.approx_equal` | Fixes #1105 | diff --git a/src/awkward/__init__.py b/src/awkward/__init__.py
index 63d6cf7568..a513bebfc7 100644
--- a/src/awkward/__init__.py
+++ b/src/awkward/__init__.py
@@ -44,6 +44,9 @@
import awkward.builder
import awkward.forth
+# test helpers
+import awkward.testing
+
behavior: dict = {}
awkward.behaviors.string.regist... | 3 | 2 | 1 | [{"id": "G0", "claim": "Since the motivation for introducing the ak.testing submodule was to follow NumPy's interface, where the testing functions are all assertion functions, the new boolean-returning function would have to be an assert_*-type function rather than a boolean one.", "category": "design", "verdict": "opp... | null |
scikit-hep__awkward__2202 | scikit-hep/awkward | 2,202 | defect | 4cc61df3fb08fff965b132f8a5411aed7a3b77ef | 360c6efcce566712c3b294feb143c9e3ec5e0aae | feat: allow awkward type arrays filtering based on rdfentry | As discussed with @vepadulano - the `rdfentry_` column is guaranteed to produce unique indexing. This PR takes the column out and checks its length against the Awkward type column data (not copied to or from RDF).
However, there might be a more efficient way to check if the RDF was filtered. | diff --git a/src/awkward/_connect/rdataframe/from_rdataframe.py b/src/awkward/_connect/rdataframe/from_rdataframe.py
index 41756d7a97..5bf5fec473 100644
--- a/src/awkward/_connect/rdataframe/from_rdataframe.py
+++ b/src/awkward/_connect/rdataframe/from_rdataframe.py
@@ -63,7 +63,7 @@
assert done is True
-def from_... | 3 | 2 | 2 | [{"id": "G0", "claim": "The interface should not use the platform-dependent type int as the default offsets_type; the default integer type should be int64_t.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test should also verify that the filtere... | null |
scikit-hep__awkward__2258 | scikit-hep/awkward | 2,258 | defect | 04b5e24c8b64834857b415f303f33382309e1664 | e683ae07d49c120b1a830849abb066a812c0df5b | feat: add 'highlevel' and 'behavior' arguments to 'ak.from_rdataframe' function | Fixes https://github.com/scikit-hep/awkward/issues/2256 | diff --git a/src/awkward/_connect/rdataframe/from_rdataframe.py b/src/awkward/_connect/rdataframe/from_rdataframe.py
index fe0920cdf3..b356f476e5 100644
--- a/src/awkward/_connect/rdataframe/from_rdataframe.py
+++ b/src/awkward/_connect/rdataframe/from_rdataframe.py
@@ -60,7 +60,7 @@
assert done is True
-def from_... | 3 | 3 | 1 | [{"id": "G0", "claim": "highlevel and behavior need to be added at the end of the argument list (keyword-only) so that existing positional uses are not broken.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The docstring entries for highlevel and behavio... | null |
scikit-hep__awkward__2267 | scikit-hep/awkward | 2,267 | defect | d1ae5b83b6dbb3f0f2db507780040269704b0976 | d77435be0a54107698cb9541193f903cac7db9b0 | feat: add `ak.broadcast_fields` | This implementation of `ak.broadcast_fields` is just a starting point for discussion. It creates union-types for missing fields, though it does not descend through unions or attempt to coerce any other types.
Fixes #2211 through the new `ak.broadcast_fields` function, which can be used in conjunction with `ak.concat... | diff --git a/src/awkward/_util.py b/src/awkward/_util.py
index 84214f766a..9d7ab7339e 100644
--- a/src/awkward/_util.py
+++ b/src/awkward/_util.py
@@ -7,7 +7,7 @@
import os
import re
import sys
-from collections.abc import Iterable, Mapping, Sequence, Sized
+from collections.abc import Collection, Iterable, Mapping,... | 2 | 2 | 1 | [{"id": "G0", "claim": "The docstring of ak.broadcast_fields is unfinished, trailing off at 'Where fields are missing from a record ...', and needs to be completed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rewritten UnionForm.fields retu... | null |
scikit-hep__awkward__2311 | scikit-hep/awkward | 2,311 | defect | 198cf6188bc70a19bb413a1bd750f93e605a8e57 | 8bad41af30771b21d831f707525d82d7ec11aeb5 | fix: DECREFing PyObject*s from Python C API calls in v1. | A memory leak in Coffea was traced to this: we were calling Python C API functions (just [PyUnicode_DecodeUTF8](https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_DecodeUTF8)) that returned new refs and then passing them directly to pybind11 `py::object` (or its subclasses') constructors. I had thought that the `... | diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml
index 5e6a04b470..7e1b2b08b4 100644
--- a/.github/workflows/build-test.yml
+++ b/.github/workflows/build-test.yml
@@ -212,67 +212,3 @@ jobs:
- name: Codecov
run: 'bash <(curl -s https://codecov.io/bash)'
if: matrix... | 2 | 1 | 1 | [{"id": "G0", "claim": "Use pybind11's py::reinterpret_steal for the PyUnicode_DecodeUTF8 results instead of raw PyObject* temporaries with explicit Py_DECREF, including all instances across the codebase.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"... | null |
scikit-hep__awkward__2373 | scikit-hep/awkward | 2,373 | defect | 01417bcc50fb95e8da2c60cd7041bbce443e02ef | d51d1520acbab1b53641a56a62d35e2794fa235c | fix: `ak.unzip` visits all contents | This fixes #2372 by arresting recursion at the first record or union. I think this was the original intention, but the codebase was in a lot of flux at this point, and so it was likely missed.
Note that, in #2372 there are additional cases below the `unzip` that might also need addressing. We should raise these as n... | diff --git a/src/awkward/operations/ak_unzip.py b/src/awkward/operations/ak_unzip.py
index 7165fe032d..707b8c4e71 100644
--- a/src/awkward/operations/ak_unzip.py
+++ b/src/awkward/operations/ak_unzip.py
@@ -48,18 +48,15 @@ def _impl(array, highlevel, behavior):
def check_for_union(layout, **kwargs):
if ... | 3 | 2 | 2 | [{"id": "G0", "claim": "The branch no longer fixes the reported issue: reworking check_for_union appears to have regressed ak.unzip's over-touching fix.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test case from #2372 should become a unit tes... | null |
scikit-hep__awkward__2396 | scikit-hep/awkward | 2,396 | defect | ee387cbe4ad41fb7407a965f5a91cc39f9e28cc3 | 0eb306a734a56426eeb11deb3865a5fe8f6dac20 | fix: unify C++ and Python `GrowableBuffer::extend` algorithm | As discussed: a `GrowableBuffer::extend` algorithm should add a single panel of a data size. The next panel added after that one should be a size of `initial*resize`.
Note, the first panel is always a size of `initial`. All next panels added after the first one should be a size of `initial*resize`. | diff --git a/src/awkward/_connect/numba/growablebuffer.py b/src/awkward/_connect/numba/growablebuffer.py
index 9063728698..f338689b72 100644
--- a/src/awkward/_connect/numba/growablebuffer.py
+++ b/src/awkward/_connect/numba/growablebuffer.py
@@ -10,6 +10,7 @@ def __init__(self, dtype, *, initial=1024, resize=8.0):
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The buffer-resizing code should use `math.ceil` instead of `numpy.ceil` so that NumPy is used only outside of `nplikes`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scikit-hep__awkward__2518 | scikit-hep/awkward | 2,518 | defect | 4a980df838863ccd8b849f06d216af8e28af0572 | 6aea0c22027ce50388dbea46558ecb95bec3991c | feat!: deprecate the time `__unit__` parameter | In future we anticipate the introduction of a units system that uses this parameter. Moreover, datetimes should use the `primitive` to represent these types, as it's a fundamental type. | diff --git a/src/awkward/forms/numpyform.py b/src/awkward/forms/numpyform.py
index dcbd208d87..0337ca4c10 100644
--- a/src/awkward/forms/numpyform.py
+++ b/src/awkward/forms/numpyform.py
@@ -2,6 +2,7 @@
from collections.abc import Iterable
import awkward as ak
+from awkward._errors import deprecate
from awkward._n... | 1 | 1 | 0 | [{"id": "G0", "claim": "The deprecation message in numpyform.py should read \"from_dtype conversion of temporal units to generic `datetime64` and `timedelta64` types is deprecated\" instead of \"... of datetime units to generic `datetime` types ...\" to be a little clearer.", "category": "maintainability", "verdict": "... | null |
scikit-hep__awkward__2534 | scikit-hep/awkward | 2,534 | defect | f818083308721a5756744f9507620b3d61afe433 | eb8d2e8a92b63ce14f69484db276dba6e11a5555 | fix: patch NDArrayOperatorsMixin | Fixes #2533 by vendoring our own version of `NDArrayOperatorsMixin` | diff --git a/src/awkward/highlevel.py b/src/awkward/highlevel.py
index ac6b4f6bb0..a4d16afa46 100644
--- a/src/awkward/highlevel.py
+++ b/src/awkward/highlevel.py
@@ -29,7 +29,25 @@
_dir_pattern = re.compile(r"^[a-zA-Z_]\w*$")
-class Array(NDArrayOperatorsMixin, Iterable, Sized):
+def _patch_operators_mixin():
+ ... | 2 | 1 | 1 | [{"id": "G0", "claim": "Instead of patching NumPy's NDArrayOperatorsMixin to strip its __slots__, define and use Awkward's own NDArrayOperatorsMixin without __slots__, because __slots__ on a mixin is inappropriate and the patch leaves the PR on the defensive about upstream technicalities.", "category": "design", "verdi... | null |
scikit-hep__awkward__2630 | scikit-hep/awkward | 2,630 | defect | 6c52131fcbfc46f96886b0c8a88792a6ba41b682 | afb6dc7f6bc72c48c96d2e17a8a43ba9ec7e5ee4 | feat: add support for dictionary encoding from Arrow | This function is intended to replace `ak.to_categorical`, which is now deprecated. It is not called by the same name as the Arrow function that implements it, because the Awkward parlance is "convert to categorical", and I think we want our `ak.str` API to be Awkward-looking, even if it uses Arrow under the hood. | diff --git a/src/awkward/operations/str/__init__.py b/src/awkward/operations/str/__init__.py
index 610a99de4b..bd04828afd 100644
--- a/src/awkward/operations/str/__init__.py
+++ b/src/awkward/operations/str/__init__.py
@@ -1,6 +1,16 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LIC... | 2 | 2 | 1 | [{"id": "G0", "claim": "Pair each Arrow documentation URL with the category of imports it belongs to, instead of listing all the URLs together at the top of the file where they only scroll to places on the same webpage.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
scikit-hep__awkward__2644 | scikit-hep/awkward | 2,644 | defect | 461b990ede92a2b113628c97a33cf8a1d887c2ff | 5ef5c77c0d6eda29afc3afba5d509688a2f3e109 | chore: try to reintroduce Python 3.12, now that NumPy has released a beta. | Here's the first test (on this branch, not deploying to PyPI):
https://github.com/scikit-hep/awkward/actions/runs/5857811221 | diff --git a/.github/workflows/deploy-cpp.yml b/.github/workflows/deploy-cpp.yml
index bbc8b9d687..24a9d4edd0 100644
--- a/.github/workflows/deploy-cpp.yml
+++ b/.github/workflows/deploy-cpp.yml
@@ -62,17 +62,17 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
arch: [auto64]
- build: [... | 1 | 1 | 1 | [{"id": "G0", "claim": "The fact that the minimal-NumPy and minimal-pyarrow tests are not running after the merge with main could mean they were accidentally dropped, so agoose77 should check that they are not lost when this PR is merged into main.", "category": "correctness", "verdict": "supported", "priority": "P1", ... | null |
scikit-hep__awkward__2653 | scikit-hep/awkward | 2,653 | defect | eff0a812be716a489f01365ccb0128dacb057fb7 | 7bf8964970b657a3807bb8e2135c222f427b1225 | fix: remove unneeded cast | I noticed a bug during slicing for a record of ragged lists. This PR fixes the bug, which was introduced during the backend addition. | diff --git a/src/awkward/contents/listoffsetarray.py b/src/awkward/contents/listoffsetarray.py
index 6104d51d54..b0ee4b53cd 100644
--- a/src/awkward/contents/listoffsetarray.py
+++ b/src/awkward/contents/listoffsetarray.py
@@ -417,7 +417,6 @@ def _getitem_next(
tail: tuple[SliceItem, ...],
advanced: I... | 1 | 1 | 1 | [{"id": "G0", "claim": "Only Windows seems to need this cast, so the removed `advanced.to_nplike(...)` line should be re-added behind a Windows guard (`if ak._util.win:`) rather than dropped outright.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scikit-hep__awkward__2714 | scikit-hep/awkward | 2,714 | defect | 48bb0a1597a7b3fa914dd7e057ef61f7a8ff7e39 | e1cfe9cd02e465de3241306b1c90e482baaa6d83 | fix: support placeholders in `from_buffers` | With #2693 we support writing placeholder arrays using `to_buffers`, which is used for pickling re-hydrated arrays. This PR supports reading such arrays.
By design, this routine throws an error if a placeholder has an unknown length but a known length can be determined by the recursion; the caller should ensure that... | diff --git a/src/awkward/_nplikes/array_module.py b/src/awkward/_nplikes/array_module.py
index 4e46bf5b73..291fec4623 100644
--- a/src/awkward/_nplikes/array_module.py
+++ b/src/awkward/_nplikes/array_module.py
@@ -53,15 +53,11 @@ def ascontiguousarray(self, x: ArrayLike) -> ArrayLike:
return self._module.... | 2 | 1 | 0 | [{"id": "G0", "claim": "nplike.frombuffer should not support placeholder arrays — they carry no data, and passing them through frombuffer is an abuse of the name (no exception should be made for frombuffer).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim"... | null |
scikit-hep__awkward__2770 | scikit-hep/awkward | 2,770 | defect | 17aabdecdbbbc7c9eb6fae6e834ab51e607386f7 | a6650d6d339af786ebe71221557239ea1b462a16 | fix: handle unhashable behaviour type | fixes #2762 | diff --git a/src/awkward/_connect/numba/builder.py b/src/awkward/_connect/numba/builder.py
index a0a668ef19..b47a656973 100644
--- a/src/awkward/_connect/numba/builder.py
+++ b/src/awkward/_connect/numba/builder.py
@@ -29,7 +29,7 @@ def __init__(self, behavior):
ak._connect.numba.arrayview.repr_behavio... | 1 | 1 | 1 | [{"id": "G0", "claim": "ArrayBuilder should reuse the behavior-handling mechanism already implemented in arrayview.py instead of its own approach, and the lambda-behavior serialization question should be checked against Numba's existing serialization before considering cloudpickle.", "category": "design", "verdict": "s... | null |
scikit-hep__awkward__2785 | scikit-hep/awkward | 2,785 | defect | 3f623eecbc93c98f2ef0b419c6831483afb12a91 | 1c937f643fb837f686f13cd0cbd1e360d35b6f0e | fix: `ak.num` should always return a useful (non-unknown length) type | Replaces #2774 by ensuring the return type of `ak.num` is always a valid "index type" (something that kernels produce).
It might be that this is an integer rather than an `np.ndarray` (or `cp.ndarray`, etc); this is up to the nplike. Right now, nplikes don't promote Python integers to 0D arrays. | diff --git a/src/awkward/operations/ak_num.py b/src/awkward/operations/ak_num.py
index 7352ecccd2..1b106a00bd 100644
--- a/src/awkward/operations/ak_num.py
+++ b/src/awkward/operations/ak_num.py
@@ -88,9 +88,9 @@ def _impl(array, axis, highlevel, behavior):
if maybe_posaxis(layout, axis, 1) == 0:
if isi... | 1 | 1 | 1 | [{"id": "G0", "claim": "The axis=0 return value of ak.num should be a NumPy int64 (ArrayLike) rather than a Python int/shape item, so that the TypeTracer specifies the same type the non-TypeTracer array returns and ak.num is consistent with ak.count, ak.count_nonzero, reducers and __getitem__.", "category": "correctnes... | null |
scikit-hep__awkward__3020 | scikit-hep/awkward | 3,020 | defect | b7eb8b9a0d2fb801b2aebb89620cd3fdab1339d6 | d9eb323f316c787eec20b4d1935970320c6f9076 | feat: make ak.mean and ak.count differentiable | Fixes #2638
Relevant discussion on slack - https://iris-hep.slack.com/archives/C0155BGPGE4/p1707239216196289
cc: @alexander-held | diff --git a/src/awkward/_connect/jax/reducers.py b/src/awkward/_connect/jax/reducers.py
index 51492cabfd..3a84eb6365 100644
--- a/src/awkward/_connect/jax/reducers.py
+++ b/src/awkward/_connect/jax/reducers.py
@@ -111,7 +111,16 @@ def apply(
shifts: ak.index.Index | None,
outlength: ShapeItem,
)... | 1 | 1 | 1 | [{"id": "G0", "claim": "In CountZero.apply, check whether the dtype is complex with np.issubdtype(array.dtype, np.complexfloating) instead of the hard-coded tuple (np.complex128, np.complex64).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scikit-hep__awkward__3053 | scikit-hep/awkward | 3,053 | defect | 6a9c6919c998f85fd3cd9137a3e4903a6acedd49 | e7fb1871c41a87d02fb747ba142a0652f4fc3945 | feat: adding support for numpy.real, imag, round, angle, | Closes #2917
This issue does not mention round explicitly. and it does mention around which I have not duplicated yet.
I could additionally implement `numpy.fix` and `real_if_close`.
There is an error in my attempt to support the `out=<array>` optional argument -- see discussion.
| diff --git a/src/awkward/_nplikes/array_module.py b/src/awkward/_nplikes/array_module.py
index 82ef7a11d1..c026bc987f 100644
--- a/src/awkward/_nplikes/array_module.py
+++ b/src/awkward/_nplikes/array_module.py
@@ -631,6 +631,28 @@ def cumsum(
assert not isinstance(x, PlaceholderArray)
return self._mo... | 2 | 2 | 1 | [{"id": "G0", "claim": "The hand-coded _real_parts_of dtype-conversion table in typetracer.py (used by the real, imag and angle methods) reproduces type-conversion logic NumPy already implements and uses non-standard dtype names, and should instead ask NumPy for the converted dtype (e.g. np.real(np.zeros(0, dtype=dt)).... | null |
scikit-hep__awkward__3127 | scikit-hep/awkward | 3,127 | defect | ecb41df1a0678f2c38387f6f91203f0122fd0906 | 094c70d68712b6b26372e8ce827a66c78bf5d95b | feat: 2772 pyarrow doesnt permit selective reading with extensionarray | Adding a module, `awkward._connect.pyarrow_table_conv`, to convert pyarrow tables with extensionarray types to ones without, storing metadata necessary to reconstruct the extensionarray types into the table-level metadata.
This allows reading select columns, as the tables in newly-written Parquet files will have na... | diff --git a/src/awkward/_connect/pyarrow.py b/src/awkward/_connect/pyarrow.py
index bf2e8cea9b..b7854fa2cd 100644
--- a/src/awkward/_connect/pyarrow.py
+++ b/src/awkward/_connect/pyarrow.py
@@ -134,21 +134,27 @@ def __arrow_ext_class__(self):
return AwkwardArrowArray
def __arrow_ext_serialize__... | 8 | 6 | 3 | [{"id": "G0", "claim": "The value of the AWKWARD_INFO_KEY constant should be b\"awkward_array_metadata\" instead of b\"ak_extn_array_info\".", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The docstrings say the converted tables carry 'awkward_info' in th... | null |
scikit-hep__awkward__3156 | scikit-hep/awkward | 3,156 | defect | ef1e851cfe2d3c203d0ab982b93a641c0652efca | 28781f266a4b943ec353801c3ea1c3b9a7513850 | feat: 3154 from_parquet should be able to read partial columns | This should fix a missing feature (or fix a bug, depending on your POV) from 2772.
Also taking the opportunity to clean up test_2772 a tiny little bit. This completes a misunderstanding of mine from issue 3131 (which can be closed or rejected). | diff --git a/src/awkward/_connect/pyarrow/table_conv.py b/src/awkward/_connect/pyarrow/table_conv.py
index c8c1e50152..53f286c730 100644
--- a/src/awkward/_connect/pyarrow/table_conv.py
+++ b/src/awkward/_connect/pyarrow/table_conv.py
@@ -1,3 +1,5 @@
+# BSD 3-Clause License; see https://github.com/scikit-hep/awkward/bl... | 2 | 1 | 0 | [{"id": "G0", "claim": "The round-trip type check in the 2772 test relies on types rendering to identical strings, which breaks if the way types are represented as strings ever changes; there should be a better way to compare types at the chosen granularity (e.g. preserving the distinction between X and Categorical[X])... | null |
scikit-hep__awkward__3159 | scikit-hep/awkward | 3,159 | defect | 02858f895f89f7e6292dc3a8d7e079d596885286 | fa313c4e0f3f16780277e791865bba60f442f4b7 | fix: correct dtypes for numpy v2 | fixes #3160 | diff --git a/dev/generate-tests.py b/dev/generate-tests.py
index 4eb9fefc3d..12c65708ec 100644
--- a/dev/generate-tests.py
+++ b/dev/generate-tests.py
@@ -425,6 +425,7 @@ def genspectests(specdict):
"""
)
f.write("import pytest\nimport kernels\n\n")
+ f.write("import pytest\nimport... | 1 | 1 | 1 | [{"id": "G0", "claim": "The CI test matrix no longer covers 32-bit Windows with NumPy < 2, so `_use32` is not verified for all platform/NumPy-version combinations; the test should be split into one for NumPy < 2 and one for NumPy >= 2 (both on 32-bit Windows), the three old numpy2 matrix jobs removed, and requirements-... | null |
scikit-hep__awkward__3161 | scikit-hep/awkward | 3,161 | defect | 02858f895f89f7e6292dc3a8d7e079d596885286 | 19bf7a3bd34510be225eb1231f9c63998e9b677b | fix: ak.from_numpy should fail on zero-dimensional arrays. | At this point, the first tests, `ak.Array()`, was already passing without modifications.
But the second test was not -- `ak.from_numpy()`.
Fix is in `_layout.py`. No policy options are passed to `_layout.from_arraylib()`. | diff --git a/src/awkward/_layout.py b/src/awkward/_layout.py
index 6ee7cddbf4..11cb4bcbe5 100644
--- a/src/awkward/_layout.py
+++ b/src/awkward/_layout.py
@@ -250,7 +250,12 @@ def maybe_highlevel_to_lowlevel(obj):
return obj
-def from_arraylib(array, regulararray, recordarray):
+def from_arraylib(
+ arr... | 3 | 1 | 1 | [{"id": "G0", "claim": "Commit E001's unconditional TypeError on zero-dimensional arrays breaks a bunch of other tests.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "All the CI tests are failing for reasons the author cannot explain, apparently rel... | null |
scikit-hep__awkward__3193 | scikit-hep/awkward | 3,193 | defect | 904b3a8f2d754b9c9430364d79e2a24af975c690 | 34c31fa5aadac0675a7c776be7397573a1302176 | fix: issue #3118 and #3185 | After a longer discussion with @jpivarski and @maxgalli we came up with a solution for issue #3118.
This PR addresses issue #3118 and by trimming the `Index*Arrays` safely before concatenation and thus avoiding memory growth of the underlying `NumpyArrays`.
In addition, it allows to re-enable laziness (disabled ... | diff --git a/src/awkward/contents/indexedarray.py b/src/awkward/contents/indexedarray.py
index bdb2bb5fb2..d266fcb0a5 100644
--- a/src/awkward/contents/indexedarray.py
+++ b/src/awkward/contents/indexedarray.py
@@ -626,6 +626,7 @@ def _mergemany(self, others: Sequence[Content]) -> Content:
if isinstance(
... | 5 | 2 | 2 | [{"id": "G0", "claim": "The new _trim implementations should also return self when self._nplike.known_data is false (or the length is unknown_length), because a typetracer with unknown length may not make it through the trimming code and the == 0 length check can be erroneous for unknown_length.", "category": "correctn... | null |
scikit-hep__awkward__3207 | scikit-hep/awkward | 3,207 | defect | 3ab54f8daec75ef4847562595fdeb064b25f2a69 | 0bc0161f1380daee55c413c939dbfc877a2b0593 | fix: 2881 akconcatenate fails trying to concatenate too many nested arrays | When concatenating arrays at a depth > 0 (not outermost), current code has a limitation
of 128 arrays to be combined.
This PR relaxes that requirement. | diff --git a/awkward-cpp/src/cpu-kernels/awkward_UnionArray_nestedfill_tags_index.cpp b/awkward-cpp/src/cpu-kernels/awkward_UnionArray_nestedfill_tags_index.cpp
index 39152d87c0..77b38eca8b 100644
--- a/awkward-cpp/src/cpu-kernels/awkward_UnionArray_nestedfill_tags_index.cpp
+++ b/awkward-cpp/src/cpu-kernels/awkward_Un... | 4 | 4 | 1 | [{"id": "G0", "claim": "UnionArray.simplified should catch the more-than-127-contents condition in the merge loops above instead of leaving the late FIXME check, whose TODO the PR itself added — the check still needs to be implemented.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int... | null |
scikit-hep__awkward__3215 | scikit-hep/awkward | 3,215 | defect | 6eb86278743c787c57341c4434edb2080b15004e | d1eda2d718cdbc0b65544c0643f066837871ad4f | feat: Add ak.array_equal | Adding `ak.operations.array_equal`, based on `numpy.array_equal`
This uses `...ak_almost_equal._impl()` which now has more parameters to
suit some particular needs of array_equal. Even so, `ak.almost_equal()` remains
unchanged operationally.
Note that there was broken code in `src/awkward/_nplikes/array_module.... | diff --git a/src/awkward/_nplikes/array_module.py b/src/awkward/_nplikes/array_module.py
index b474b6571c..7b0090c88d 100644
--- a/src/awkward/_nplikes/array_module.py
+++ b/src/awkward/_nplikes/array_module.py
@@ -173,12 +173,7 @@ def array_equal(
) -> bool:
assert not isinstance(x1, PlaceholderArray)
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The internal _impl should not duplicate the user-facing default argument values for rtol, atol, dtype_exact, check_parameters and check_regular, since two sources of truth can diverge.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
scikit-hep__awkward__3222 | scikit-hep/awkward | 3,222 | defect | 769ee4032b5eaa66ee7586daa6f11494235c5607 | 069ebb77c3e78465f61d99bd63570c0489775e42 | feat: provide a way for `Form.select_columns` to distinguish structural dots from dots in the names of record fields | Addressing the need to select field names with literal dots in them.
This is a change to `Form.select_columns()`. This change allows a user to supply a `specifier` as a list of lists of field (or column) names. | diff --git a/src/awkward/forms/form.py b/src/awkward/forms/form.py
index 1c72bf740f..b696e2aa18 100644
--- a/src/awkward/forms/form.py
+++ b/src/awkward/forms/form.py
@@ -333,7 +333,7 @@ def __call__(self, field: str, *, next_match_if_empty: bool = False) -> Self | N
has_matched = True
next_sp... | 2 | 2 | 0 | [{"id": "G0", "claim": "The specifier handling should use isinstance(item, Iterable) (with the str check first) instead of isinstance(item, (tuple, list)), so that other iterable types such as sets also work.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
scikit-hep__awkward__3344 | scikit-hep/awkward | 3,344 | defect | 8f69dbf6eb84f518150f47a81f9605642bbff837 | d4893d3814b36e5caac4d8f67c7a4c9e0f0062be | fix: control attrs better as described in issue #3277 | This changes the behavior of `attrs` as described in https://github.com/scikit-hep/awkward/issues/3277. This PR closes https://github.com/scikit-hep/awkward/issues/3277.
An example that works with this PR is:
```python
import awkward as ak
arr = ak.Array([1])
arr.attrs["foo"] = "bar"
arr2 = ak.copy(arr)
as... | diff --git a/src/awkward/_attrs.py b/src/awkward/_attrs.py
index 14a42549d2..03626c7f9c 100644
--- a/src/awkward/_attrs.py
+++ b/src/awkward/_attrs.py
@@ -1,7 +1,9 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
from __future__ import annotations
+import weakref
from coll... | 4 | 3 | 0 | [{"id": "G0", "claim": "The ak.Array.mask property builds a proxy holding a cyclic reference to its array, like the ones this PR removes for attrs, which may retain memory unexpectedly, so it should use a weakref too.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id"... | null |
scikit-hep__awkward__3374 | scikit-hep/awkward | 3,374 | defect | 6c01d577e6714176e8a6e4efbc41552b27c60015 | 093b355571b8d5f9f4e7fe50160ff8af27341f06 | refactor: propagate attrs & behavior with dict-like `ak.Array` input data | Currently `ak.Array` (with `dict` input data) and `ak.zip` differ in the following ways:
1. `ak.zip` does broadcasting, `ak.Array` does not (it errors instead)
2. `ak.zip` does propagate `attrs` and `behavior` from all (nested) arrays in the given dictionary, `ak.Array` does not
For `1.` this PR improves the error... | diff --git a/src/awkward/highlevel.py b/src/awkward/highlevel.py
index 45f35c7b25..83501109d7 100644
--- a/src/awkward/highlevel.py
+++ b/src/awkward/highlevel.py
@@ -302,19 +302,22 @@ def __init__(
elif isinstance(data, dict):
fields = []
- contents = []
+ _arrays = []
... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new dict-input branch may overwrite the `attrs` and `behavior` parameters passed to `__init__` when they are not `None`.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new attrs/behavior propagation behaviour of the dic... | null |
scikit-hep__awkward__3375 | scikit-hep/awkward | 3,375 | defect | 6c01d577e6714176e8a6e4efbc41552b27c60015 | d363431045550ec95e4f8739927d749ba8b7bee7 | fix: change `primitive_policy` to allow converting Numpy arrays | fixes #3373 | diff --git a/src/awkward/operations/ak_to_rdataframe.py b/src/awkward/operations/ak_to_rdataframe.py
index b64040df1f..da828fa02e 100644
--- a/src/awkward/operations/ak_to_rdataframe.py
+++ b/src/awkward/operations/ak_to_rdataframe.py
@@ -81,7 +81,7 @@ def _impl(
none_policy="error",
regularar... | 2 | 2 | 1 | [{"id": "G0", "claim": "With the pre-existing primitive_policy=\"forbid\", ak.to_rdataframe raises an AssertionError when converting numpy arrays, because \"forbid\" is not one of the allowed options (\"pass-through\", \"promote\", \"error\") in _handle_array_like.", "category": "correctness", "verdict": "supported", "... | null |
scikit-hep__awkward__3390 | scikit-hep/awkward | 3,390 | defect | 9d725983d202187a6172336e4d286324cfaaf2f7 | 406de57acc236d574ed01b6648c51a030986346d | feat: add a non-touching `ak.zip`, called `'ak.zip_no_broadcast'` | This PR adds a non-touching version of `ak.zip` called `"ak.unsafe_zip"`. This is useful to re-arrange record arrays in coffea without touching any contents.
The price we're paying to achieve non-touching zipping behavior is safety, i.e. broken arrays can be constructed. `ak.unsafe_zip` assumes that all input array... | diff --git a/src/awkward/operations/__init__.py b/src/awkward/operations/__init__.py
index 91ebc9c184..49964b4066 100644
--- a/src/awkward/operations/__init__.py
+++ b/src/awkward/operations/__init__.py
@@ -109,6 +109,7 @@
from awkward.operations.ak_transform import *
from awkward.operations.ak_type import *
from aw... | 3 | 2 | 1 | [{"id": "G0", "claim": "The docstring should say more about what is unsafe about this operation and where it should be used.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test where this operation fails (e.g. mismatched inputs) would be useful,... | null |
scikit-hep__awkward__3396 | scikit-hep/awkward | 3,396 | defect | 99c726b188e60bed5fe6c9b64e74616cdef6ab46 | 854cbda8a17924a891fa74ec08b03c279c0bcdc8 | fix: mark awkward as freedthread safe with pybind11 | Fixes: #3395
Need to create some tests that demonstrate this is, in fact, the case. | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 1f3a76726a..b384d594ab 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -39,6 +39,7 @@ jobs:
- ubuntu-latest
- macos-13
python-version:
+ - '3.13t'
- '3.13'
... | 9 | 6 | 6 | [{"id": "G0", "claim": "Asked whether the switch to Quansight-Labs/setup-python needs any Quansight-specific modifications.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's workflows are failing; ariostas is asked to check them and see w... | null |
scikit-hep__awkward__3410 | scikit-hep/awkward | 3,410 | defect | cc0605c420b2527c245e902bfe345799ee43415f | 13ce08e5d1f9438300227dd7defcb9f1849ed9eb | fix: maintain tupleness of RecordForms when using _select_columns and _prune_columns | Currently, if you take some form that contains a tuple `RecordForm` and apply `select_columns` it is converted into a non-tuple one by adding field names "1", "2", "3", ... . This PR fixes that, since it doesn't really make sense to do so. | diff --git a/src/awkward/forms/recordform.py b/src/awkward/forms/recordform.py
index 9b6d5343a8..30e44a3eef 100644
--- a/src/awkward/forms/recordform.py
+++ b/src/awkward/forms/recordform.py
@@ -127,7 +127,9 @@ def _prune_columns(self, is_inside_record_or_union: bool) -> Self | None:
if not fields and is_insid... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pre-existing behaviour of keeping field names on a tuple's RecordForm may be intentional (e.g. to track which content index was selected from the original array), so silently dropping the field names may be wrong.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "in... | null |
scikit-hep__awkward__3425 | scikit-hep/awkward | 3,425 | defect | d50e822fa4b7bc830eaf359ab192c794d104d1ae | 5e431c991216225e98e23424ced31a6c05b670cf | fix: `ak.almost_equal` and `ak.array_equal` should check that jagged arrays have the same offsets | Fixes https://github.com/scikit-hep/awkward/issues/3426
Addresses https://github.com/scikit-hep/awkward/discussions/3418
Jagged arrays can have the same content but different offsets. `ak.almost_equal` and `ak.array_equal` do not check for that and only check whether the contents are equal. Example:
```python
In ... | diff --git a/src/awkward/operations/ak_almost_equal.py b/src/awkward/operations/ak_almost_equal.py
index 949f955a45..f462ccfcf4 100644
--- a/src/awkward/operations/ak_almost_equal.py
+++ b/src/awkward/operations/ak_almost_equal.py
@@ -161,6 +161,11 @@ def visitor(left, right) -> bool:
return (left.size == ... | 2 | 2 | 2 | [{"id": "G0", "claim": "The offsets comparison treats arrays whose offsets do not start at zero as different, so the lists should be converted with `start=0` before comparing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new offsets check shou... | null |
scikit-hep__awkward__3438 | scikit-hep/awkward | 3,438 | defect | a451681bfe4737d2bb02cad8cc40812755d617dc | c654cfcdc34aff8df98a251760ee70149a970a2e | fix: typo in `UnionArray` combinations | `UnionArray` combinations try to call `ak.unionarray.UnionArray` which doesn't exist. It should be `ak.contents.UnionArray`. Looking at the blame, it's there for at least 3 years 🤣 . Apparently no-one ever tried to using combinations with union arrays.
Discovered through coffea by:
```python
In [13]: leptons = ak... | diff --git a/src/awkward/contents/unionarray.py b/src/awkward/contents/unionarray.py
index 70c89d6cc0..03f7517b8a 100644
--- a/src/awkward/contents/unionarray.py
+++ b/src/awkward/contents/unionarray.py
@@ -1323,7 +1323,7 @@ def _combinations(self, n, replacement, recordlookup, parameters, axis, depth):
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a small test for `UnionArray` combinations, since the test suite has no coverage for that path.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scikit-hep__awkward__3440 | scikit-hep/awkward | 3,440 | defect | bb6fc8105e64fbab9cbf97badd921138c44d9c33 | eab037d329d4c2fca49202f63c618cf71aad1472 | feat: Add a parquet uuid calculation | Calculate a uuid from parquet metadata, utilizing detailed info of the first and last row_groups plus the col_counts of all row_groups of the file or dataset. At the column-page level, parquet should have a checksum AFAIK, but an approximate calculation that would catch differences in numbers of rows, row groups, colum... | diff --git a/src/awkward/operations/ak_from_parquet.py b/src/awkward/operations/ak_from_parquet.py
index 1cb3fdfbc7..e5ecceb89a 100644
--- a/src/awkward/operations/ak_from_parquet.py
+++ b/src/awkward/operations/ak_from_parquet.py
@@ -2,6 +2,9 @@
from __future__ import annotations
+import hashlib
+import json
+
i... | 3 | 2 | 2 | [{"id": "G0", "claim": "The uuid calculation is not stable across systems, so test_parquet_uuid fails on CI producing a different uuid than the expected one, meaning the feature does not yet deliver a stable uuid.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1"... | null |
scikit-hep__awkward__3457 | scikit-hep/awkward | 3,457 | defect | aeb96187710dd8b48681b7277ec7860d2b88e0a0 | acb0924ea87a420023f33413f9f5bb9449e57780 | fix: replace some `__setitem__` calls with `.at[where].set(value)` for the jax backend | Expands upon https://github.com/scikit-hep/awkward/pull/3455 and adds all the fixes I had to add to get the tests added in https://github.com/scikit-hep/awkward/pull/3451 working locally.
This + fixing https://github.com/scikit-hep/awkward/issues/3456 should get the ci there to pass. | diff --git a/src/awkward/_slicing.py b/src/awkward/_slicing.py
index 65875a96ef..6ad8a5d19b 100644
--- a/src/awkward/_slicing.py
+++ b/src/awkward/_slicing.py
@@ -405,7 +405,7 @@ def _normalise_item_nested(item: Content) -> Content:
projected = item.content._carry(ak.index.Index64(nextindex[nonnull]), False)
... | 3 | 3 | 2 | [{"id": "G0", "claim": "The pull request's fixes still need tests, which the author thinks should probably be merged with the tests from #3455.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Restore the ak.firsts test that came in via #3455 — the policy... | null |
scikit-hep__awkward__3464 | scikit-hep/awkward | 3,464 | defect | a38bd0935be6d0d7283a881abf855728c491b245 | 74a788f1defd107a7c34e9e214f082310b006b62 | fix: jax reducers returning incorrect output values or lengths | Needs more work and I'd appreciate any help @ianna @pfackeldey.
I'm adding a test that tests all the reducers via parametrization.
Definitely needs https://github.com/scikit-hep/awkward/pull/3457
This PR should fix https://github.com/scikit-hep/awkward/issues/3456, https://github.com/scikit-hep/awkward/issues/34... | diff --git a/src/awkward/_connect/jax/reducers.py b/src/awkward/_connect/jax/reducers.py
index 4d9b0344c6..e1af81dfdc 100644
--- a/src/awkward/_connect/jax/reducers.py
+++ b/src/awkward/_connect/jax/reducers.py
@@ -37,18 +37,81 @@ def from_kernel_reducer(cls, reducer: Reducer) -> Self:
raise NotImplementedErro... | 7 | 6 | 4 | [{"id": "G0", "claim": "Five jax reducer tests were failing at S1 (three for ak.any, one for ak.count, and one for ak.sum, the latter appearing to fail on a boolean dtype), so the failing reducers' output handling needed fixing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
scikit-hep__awkward__3482 | scikit-hep/awkward | 3,482 | defect | a5c9510c081dbbf236f4ed1271a25a79841ed70a | 4622cf6d8a9158a114062175b9cd27286f117f40 | refactor: move `form_with_unique_keys` here | Moves https://github.com/dask-contrib/dask-awkward/blob/main/src/dask_awkward/lib/utils.py#L140 into awkward so we can use it also in uproot without introducing a dask-awkward dependency.
In addition, this is a slightly modified implementation that also resolves the problem of having dots as field separators, becaus... | diff --git a/src/awkward/forms/__init__.py b/src/awkward/forms/__init__.py
index 4843cf00c7..fe016e4798 100644
--- a/src/awkward/forms/__init__.py
+++ b/src/awkward/forms/__init__.py
@@ -5,7 +5,13 @@
from awkward.forms.bitmaskedform import BitMaskedForm # noqa: F401
from awkward.forms.bytemaskedform import ByteMaske... | 2 | 1 | 1 | [{"id": "G0", "claim": "Since this is a refactor, rewrite form_with_unique_keys using functools.singledispatch with one registered handler per form type instead of the closure-and-recursion implementation.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add... | null |
scikit-hep__awkward__3543 | scikit-hep/awkward | 3,543 | defect | f672219f30eeea16db03b207ac8ef4b09b270032 | cb69fd14904bac90957d9a7435d006237e14966d | ci: add workflow to run GPU tests on selfhosted runner | This PR adds a workflow to run the GPU tests on the new CI node at Princeton. There are a couple of things to discuss:
- I intentionally didn't add the new job to `pass-tests.needs` since I think we should first make sure that it is reliable enough that it's not going to end up blocking PR regularly.
- For now, I a... | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 9d07c9ee89..127e30c622 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -163,6 +163,79 @@ jobs:
if: (matrix.python-version == '3.9') && (matrix.runs-on == 'ubuntu-latest')
uses: codecov/codecov-action... | 3 | 3 | 0 | [{"id": "G0", "claim": "The GPU test run will probably hit the already-reported failure in https://github.com/scikit-hep/awkward/issues/3480, which needs fixing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "numba should be pinned to 0.60.0 in re... | null |
scikit-hep__awkward__3563 | scikit-hep/awkward | 3,563 | defect | 4102a4a60163d89fbec1ce7536b9459727b1344d | 67060022077f9ae0fa18207de50371f11e931ed5 | fix: allow arrays with `None`s in single argument usage of `ak.where` | Fixes https://github.com/scikit-hep/awkward/issues/3138
This used to use `ak.operations.to_numpy` which allowed `None`s to go through until https://github.com/scikit-hep/awkward/pull/2757 changed it to use `to_backend_array` with `allow_missing=False`. I don't think there is any harm in setting `allow_missing=True` ... | diff --git a/src/awkward/operations/ak_where.py b/src/awkward/operations/ak_where.py
index 86f4304914..bd28546650 100644
--- a/src/awkward/operations/ak_where.py
+++ b/src/awkward/operations/ak_where.py
@@ -74,7 +74,7 @@ def where(condition, *args, mergebool=True, highlevel=True, behavior=None, attrs
def _impl1(condit... | 1 | 1 | 0 | [{"id": "G0", "claim": "The tests should also include a direct comparison with NumPy.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scikit-hep__awkward__3564 | scikit-hep/awkward | 3,564 | defect | 473029b8cc7345083c29186e0c3def874eb3a9f2 | 3f81e4163b9a775d0f2de8fee5f8316574213a34 | fix: length0 array repr | closes https://github.com/scikit-hep/awkward/issues/3562 | diff --git a/src/awkward/highlevel.py b/src/awkward/highlevel.py
index 182e632b80..c4bb06e959 100644
--- a/src/awkward/highlevel.py
+++ b/src/awkward/highlevel.py
@@ -1504,7 +1504,7 @@ def _repr_mimebundle_(self, include=None, exclude=None):
# but we sort it from longest to shortest for _repr_mimebundle_
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Please add a test covering the length-0 array repr fix, since the pull request's changed behaviour ships without one.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scikit-hep__awkward__3567 | scikit-hep/awkward | 3,567 | defect | 473029b8cc7345083c29186e0c3def874eb3a9f2 | f1efe373d8c6cfbd82f94272d00d6e67de3480c0 | fix: to_buffers for duplicate fields in records | Closes https://github.com/scikit-hep/awkward/issues/3247 | diff --git a/src/awkward/contents/recordarray.py b/src/awkward/contents/recordarray.py
index 78ddcbe4b6..2b761484e3 100644
--- a/src/awkward/contents/recordarray.py
+++ b/src/awkward/contents/recordarray.py
@@ -341,16 +341,8 @@ def _to_buffers(
byteorder: str,
):
assert isinstance(form, self.form... | 1 | 1 | 0 | [{"id": "G0", "claim": "The fix may not also cover the roundtrip to and from arrow, and a test for that roundtrip should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
scikit-hep__awkward__3568 | scikit-hep/awkward | 3,568 | defect | e25f614a887c378b7da4bace4faba9a506b7fe01 | 4b68cc8f3f77e3565922711a503c546727732450 | fix: overflow error when concatenating more than 128 regular arrays | Now actually finalize https://github.com/scikit-hep/awkward/issues/3310
Instantiate `prototype` in the same way we do for `tags_cls`.
Without it, we get
```
File "/Users/nmangane/scikit-hep-dev-3/.pixi/envs/default/lib/python3.13/site-packages/awkward/operations/ak_concatenate.py", line 262, in action
prot... | diff --git a/src/awkward/operations/ak_concatenate.py b/src/awkward/operations/ak_concatenate.py
index 7716f41008..0038e217dd 100644
--- a/src/awkward/operations/ak_concatenate.py
+++ b/src/awkward/operations/ak_concatenate.py
@@ -256,17 +256,18 @@ def action(inputs, depth, backend, **kwargs):
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The tests for concatenating more than 128 regular arrays should live in their own separate test file instead of being added to tests/test_3312_concatenate_regular_arrays.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
scikit-hep__awkward__3597 | scikit-hep/awkward | 3,597 | defect | 2ca5ccd578d901e7dcfea1cde13c2ac79b13f872 | b97fe53efd73cff34a3dd73b8db653fd03c4673c | fix: properly handle `VirtualArray` in `nplike.asarray` | I realized that `nplike.asarray` does not properly handle `VirtualArray`. A copy should always be created when `copy=True` and that's not the case. The virtual array code branch in `asarray` never cared about copying the underying buffer at all. The codebase often does `nplike.asarray(some object, copy=True)` exactly b... | diff --git a/src/awkward/_nplikes/array_module.py b/src/awkward/_nplikes/array_module.py
index aa6361bc75..8f7b047bcf 100644
--- a/src/awkward/_nplikes/array_module.py
+++ b/src/awkward/_nplikes/array_module.py
@@ -66,24 +66,21 @@ def asarray(
return obj
if isinstance(obj, VirtualArray):
... | 1 | 1 | 0 | [{"id": "G0", "claim": "This VirtualArray handling in asarray should not be patched in this PR but reverted and folded into the whole VirtualArray code refactoring, tracked as issues or a follow-up PR.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
scikit-hep__awkward__3608 | scikit-hep/awkward | 3,608 | defect | 72655a6ef23f12e5e88a09a2d0a1dea138402dd5 | 9ac1244fdd5d084605e8352cd3dc4649165688ca | fix: make `to_packed` work for typetracer backed `IndexedOptionArray`, `BitMaskedArray`, and `UnionArray` | Fixes https://github.com/scikit-hep/awkward/issues/3607
This PR also adds testing for `to_packed` for all layouts with typetracer backend which wasn't tested so far. | diff --git a/src/awkward/contents/bitmaskedarray.py b/src/awkward/contents/bitmaskedarray.py
index e91fb097c8..59fe7a8d56 100644
--- a/src/awkward/contents/bitmaskedarray.py
+++ b/src/awkward/contents/bitmaskedarray.py
@@ -810,9 +810,13 @@ def _to_packed(self, recursive: bool = True) -> Self:
)
... | 2 | 1 | 1 | [{"id": "G0", "claim": "In BitMaskedArray.to_packed the new guard should test whether the length is known rather than the nplike type, so that known lengths in typetracers are supported.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new unknown... | null |
scikit-hep__awkward__3611 | scikit-hep/awkward | 3,611 | defect | 5ef8ad59f7f1f1c8d0a506919835df5f151f6a85 | 07f965a785ed67738be5305ed5698fcf1a14c022 | fix: avoid unnecessary recursion if not needed | This PR avoids unnecessary recursion for VirtualArray transformations in case they are no-ops. Otherwise in rare cases we may descend down the call stack hell and discover circles of hell that even Dante Alighieri didn't know about...
There are _no_ infinity recursions here; but because Python has a limit on the rec... | diff --git a/src/awkward/_nplikes/array_module.py b/src/awkward/_nplikes/array_module.py
index aa6361bc75..589f85bd05 100644
--- a/src/awkward/_nplikes/array_module.py
+++ b/src/awkward/_nplikes/array_module.py
@@ -352,11 +352,15 @@ def reshape(
if isinstance(x, VirtualArray):
if not x.is_material... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment in reshape should say the VirtualArray is returned rather than \"self\", because \"self\" means something different there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scikit-hep__awkward__3612 | scikit-hep/awkward | 3,612 | defect | 5ef8ad59f7f1f1c8d0a506919835df5f151f6a85 | fd75dfadc49ade8f27ad1fe24c12844a8af07b6e | feat: ensure ability to pickle `ak.Array` and `ak.Record` with `VirtualArray` buffers | Fixes https://github.com/scikit-hep/coffea/issues/1380
This PR ensures that highlevel `ak.Array` and `ak.Record` are picklable when they contain `VirtualArray` buffers.
The solution to this problem is in 3 parts (+1 typo fix):
1. We implement `__reduce__` for `VirtualArray` in order to make the `VirtualArray` pi... | diff --git a/src/awkward/_nplikes/virtual.py b/src/awkward/_nplikes/virtual.py
index 62041288f4..21eb808bf2 100644
--- a/src/awkward/_nplikes/virtual.py
+++ b/src/awkward/_nplikes/virtual.py
@@ -338,3 +338,6 @@ def __dlpack_device__(self) -> tuple[int, int]:
def __dlpack__(self, stream: Any = None) -> Any:
... | 3 | 2 | 0 | [{"id": "G0", "claim": "EmptyArray._materialize needlessly constructs a new EmptyArray instead of returning self, and should be made to fit the overall pattern.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The wrap_layout calls in the two __reduce_ex... | null |
scikit-hep__awkward__3637 | scikit-hep/awkward | 3,637 | defect | 72655a6ef23f12e5e88a09a2d0a1dea138402dd5 | c92e1d472d6b76269f8b7786da75cf5c55795bc3 | feat: skip materialization of placeholders in `to_packed` | This PRs avoids the materialization of placeholder arrays in `to_packed` to not cause problems in `dask-awwkard`.
We do this by adding a `type_` argument to `materialize` everywhere and to `maybe_materialize`. `maybe_materialize` and `layout.materialize()` now materialize all instances of `type_` and it defaults to `M... | diff --git a/src/awkward/_nplikes/array_like.py b/src/awkward/_nplikes/array_like.py
index 8987b8cce4..0062d487de 100644
--- a/src/awkward/_nplikes/array_like.py
+++ b/src/awkward/_nplikes/array_like.py
@@ -13,6 +13,7 @@
Protocol,
Self,
SupportsIndex,
+ Tuple,
overload,
)
@@ -140,26 +141,26 @@... | 2 | 2 | 2 | [{"id": "G0", "claim": "The type_ parameter of maybe_materialize should be annotated as type[MaterializableArray] | tuple[type[MaterializableArray], ...] so that only MaterializableArray or its subclasses can be passed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"... | null |
scikit-hep__awkward__3644 | scikit-hep/awkward | 3,644 | defect | 2e96377b73a5461ffeedac12ed1b18e53a9e1383 | c906b7f25ca5cee65bc35d6dc41e0171b372beb8 | fix: virtual array deep copy generator reference + better error message for `assert_never` | While deep copying virtual arrays, we used to do `lambda: copy.deepcopy(self._generator(), memo)` as the new generator.
The problem is that this apparently keeps a reference to `self` and not to `self._generator`. So when you make a copy and materialize the parent array first, its generator is set to `assert_never` in... | diff --git a/src/awkward/_nplikes/virtual.py b/src/awkward/_nplikes/virtual.py
index 9ec910eb8d..6e87df4414 100644
--- a/src/awkward/_nplikes/virtual.py
+++ b/src/awkward/_nplikes/virtual.py
@@ -27,7 +27,16 @@
def assert_never():
- raise AssertionError("this shape_generator should never be run!")
+ msg = "Th... | 1 | 1 | 0 | [{"id": "G0", "claim": "For better readability, the `assert_never` error message should be built as one message (a single parenthesised string) instead of being appended piece by piece with `msg +=`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
scikit-hep__awkward__3664 | scikit-hep/awkward | 3,664 | defect | f625c8da4f90540567521fad08d954e1c7ca642b | a43342a1ed925529fb7ba0b48bfab60d2ae93eda | fix: avoid recursion limit when concatenating `EmptyArray`s | Fixes https://github.com/scikit-hep/awkward/issues/3663 | diff --git a/src/awkward/contents/emptyarray.py b/src/awkward/contents/emptyarray.py
index a89d436cf7..ad448ece8d 100644
--- a/src/awkward/contents/emptyarray.py
+++ b/src/awkward/contents/emptyarray.py
@@ -274,6 +274,7 @@ def _mergeable_next(self, other: Content, mergebool: bool) -> bool:
return True
d... | 5 | 4 | 2 | [{"id": "G0", "claim": "In `_mergemany`, drop unknown arrays with `not other.is_unknown` instead of the `isinstance(other, EmptyArray)` check.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test function should be renamed from `test` to a na... | null |
scikit-hep__awkward__3676 | scikit-hep/awkward | 3,676 | defect | 98a27c2e578e7b4c59ea1c6e79322d9490b3c457 | ad72f5a8e9bd1be7d9a108b004b3d994d55f1df0 | feat: improve and test big-endian support | Adds testing on s390x with QEMU and adds a few fixes to make awkward CI pass on big-endian systems | diff --git a/.github/workflows/test-s390x.yml b/.github/workflows/test-s390x.yml
new file mode 100644
index 0000000000..f62cfb352d
--- /dev/null
+++ b/.github/workflows/test-s390x.yml
@@ -0,0 +1,176 @@
+name: Tests
+
+on:
+ pull_request:
+ paths-ignore:
+ - README.md
+ - CONTRIBUTING.md
+ - CITATION.... | 6 | 2 | 0 | [{"id": "G0", "claim": "Changing the Awkward 1.x pickle-compat __setstate__ paths to byteorder=ak._util.native_byteorder will skip the byteswap on big-endian machines and decode the little-endian buffers in the fixtures incorrectly, so byteorder=\"<\" should be kept (or the stored byteorder propagated).", "category": "... | null |
scikit-hep__awkward__3685 | scikit-hep/awkward | 3,685 | defect | 70957e2713fe2d4b7cfc07b71d02603f24164b5d | 98fb3cc3b44dcacc966c756f68373510b9b1715b | feat: add to_/from_safetensors | This PR adds to and from [safetensors](https://huggingface.co/docs/safetensors/index) conversions. They're extremely fast at the cost of file size because they to not include any compression. The idea is that all buffers are saved as a long sequence of uncompressed bytes along with metadata that remembers where each b... | diff --git a/docs/reference/toctree.txt b/docs/reference/toctree.txt
index 76e021447a..496b9ff538 100644
--- a/docs/reference/toctree.txt
+++ b/docs/reference/toctree.txt
@@ -38,6 +38,8 @@
generated/ak.from_feather
generated/ak.to_feather
generated/ak.from_avro_file
+ generated/ak.to_safetensors
+ ... | 25 | 21 | 3 | [{"id": "G0", "claim": "The rendered API docs of to_safetensors and from_safetensors look wrong, and the author cannot see what he did wrong (asks for ideas).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reword the from_safetensors summary to 'r... | null |
scikit-hep__awkward__3692 | scikit-hep/awkward | 3,692 | defect | 3b9d8f699eee711b20db47b638870f9a753ff45e | 1fdad03b134968338e05750add703e264c573fd0 | fix: ensure masked string/bytestring dtypes can hold 'nan' fill value… | … in to_dataframe
When converting masked string or bytestring arrays to pandas DataFrames, narrow dtypes (e.g., U1, U2, S1, S2) may not have sufficient width to hold the fill value 'nan' (3 characters) or b'nan' (3 bytes). This caused issues during the conversion process.
This fix checks the dtype width before fi... | diff --git a/src/awkward/operations/ak_to_dataframe.py b/src/awkward/operations/ak_to_dataframe.py
index e6ad0e7d73..46e4206ad5 100644
--- a/src/awkward/operations/ak_to_dataframe.py
+++ b/src/awkward/operations/ak_to_dataframe.py
@@ -234,6 +234,17 @@ def recurse(layout, row_arrays, col_names):
else:
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new test module should check if pandas is installed and skip the tests when it is not (e.g. via `pytest.importorskip(\"pandas\")`), because pandas is not installed in all CI workflows.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scikit-hep__awkward__3727 | scikit-hep/awkward | 3,727 | defect | e619aaabaa69059ad726cb9388c71ebb7693903f | 10dce94fea4a344c5f03913a0e793a4b1696ad56 | fix: incorrect passing of `Index` inside nplike function in `to_IndexedOptionArray64` | Fixes https://github.com/scikit-hep/awkward/issues/3726
The index's data should be passed into the nplike function. Not the index itself. It's just a typo. | diff --git a/src/awkward/contents/indexedoptionarray.py b/src/awkward/contents/indexedoptionarray.py
index c31bb43d98..274f02719b 100644
--- a/src/awkward/contents/indexedoptionarray.py
+++ b/src/awkward/contents/indexedoptionarray.py
@@ -269,7 +269,9 @@ def to_IndexedOptionArray64(self) -> IndexedOptionArray:
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use the existing short helper `self._index.to64()` (via the suggested block) instead of manually wrapping the nplike astype result in `ak.index.Index64` in `to_IndexedOptionArray64`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scikit-hep__awkward__3728 | scikit-hep/awkward | 3,728 | defect | e619aaabaa69059ad726cb9388c71ebb7693903f | 69cf156d0bc8777577c4ae1fa1b625bff006d7b4 | fix: `ak.Record` creation from iterable with nested dicts | Closes https://github.com/scikit-hep/awkward/issues/3723
I think `is_non_string_like_iterable` is not enough here. It should also not be a dictionary cause dictionary is iterable.
However, dicts I think should be wrapped into a single-element list like line 1864 does right below. | diff --git a/src/awkward/highlevel.py b/src/awkward/highlevel.py
index f559be8c2e..66cd94855b 100644
--- a/src/awkward/highlevel.py
+++ b/src/awkward/highlevel.py
@@ -1858,7 +1858,7 @@ def __init__(
contents = []
for k, v in data.items():
fields.append(k)
- if i... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request should add the original issue (#3723, Record creation from an iterable with nested dicts) as a test before it is merged.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A comment should be added above the if condi... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.