From 65e736e44c6eb7706b54adf751fbb8f44cdf907a Mon Sep 17 00:00:00 2001 From: Ianna Osborne Date: Thu, 25 Jan 2024 16:11:25 +0100 Subject: [PATCH] feat: define conversion rules (#59) * feat: add a method to convert `PyIterable` * feat: add auto conversion rules * fix: update conversion rules * feat: define __init__ function * fix: move convert out of the __init__ function * test: add a test passing a Python array to a Julia function * feat: define conversion rules * fix: remove convertion of an iterable * feat: add rules and register * fix: leave it to a user to invoke pyconvert * test: test pyconvert of an awkward array * tests: add tests * fix: use Vector in convert to avoid problems with BitMasked buffers * feat: convert to an awkward type * fix: add dtypes * fix: more dtypes --- Project.toml | 14 +- .../AwkwardPythonCallExt.jl | 35 ---- src/AwkwardArray.jl | 5 +- src/AwkwardPythonCallExt.jl | 116 ++++++++++++ test/runpytests.jl | 168 ++++++++++++++++++ 5 files changed, 292 insertions(+), 46 deletions(-) delete mode 100644 ext/AwkwardPythonCallExt/AwkwardPythonCallExt.jl create mode 100644 src/AwkwardPythonCallExt.jl diff --git a/Project.toml b/Project.toml index c78d433..b5455c0 100644 --- a/Project.toml +++ b/Project.toml @@ -4,23 +4,19 @@ authors = ["Jim Pivarski ", "Jerry Ling