Repository navigation
imas_composer interface - basic connection - #110
Open
AreWeDreaming wants to merge 2 commits into
Open
AreWeDreaming wants to merge 2 commits into
AreWeDreaming wants to merge 2 commits into
Conversation
- awkward_from_buffers (src/io.jl) rebuilds an awkward array from awkward's buffer format as nested views into the flat buffers. Pure Julia, covers NumpyArray, ListOffsetArray (incl. strings), RegularArray and ByteMaskedArray (masked floats -> NaN). - IMASddPythonCallExt adds awkward_from_buffers(::Py) for the dicts that imas_composer.julia.julia_value returns. PythonCall is a weakdep. - deploy/container: recipe for a conda env (imas_composer) that works inside a Julia process: AWS C library pins matching HDF5_jll, CondaPkg Null backend, FDP_TUNNEL_CAINFO, and a smoke test against real data. - imas_composer added as a submodule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AreWeDreaming
commented
Nov 3, 2026
| @@ -0,0 +1,73 @@ | |||
| # imas_composer from Julia: environment recipe | |||
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #110 +/- ##
==========================================
+ Coverage 43.93% 43.97% +0.03%
==========================================
Files 16 17 +1
Lines 31551 31580 +29
==========================================
+ Hits 13862 13887 +25
- Misses 17689 17693 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Read imas_composer (DIII-D) data from Julia: awkward reader, PythonCall extension, env recipe
First step toward filling a
ddin memory from DIII-D data through imas_composer (toksearch backend), with Python called in-process via PythonCall. This PR adds the data handover and a working environment. The dd loader itself comes next.Changes
awkward_from_buffers(form, len, buffers)(src/io.jl): pure Julia reader for awkward's buffer format. It returns nested vectors of zero-copy views into the flat buffers.NumpyArray,ListOffsetArray(incl. strings),RegularArrayandByteMaskedArray; masked floats becomeNaN.ext/IMASddPythonCallExt.jl: addsawkward_from_buffers(::Py)for the dicts returned byimas_composer.julia.julia_value(GA-FDP/imas_composerssd/julia_interface). PythonCall is a weakdep, so nothing changes for packages that don't load it.test/runtests_awkward.jl: hand-written buffers covering every node class, nesting up toRegularArray > ListOffsetArray > ListOffsetArray, strings, masks (valid_whentrue/false) and the error paths. No Python needed.deploy/container/: recipe for a dev env (conda env + Julia project + smoke test). Findings it encodes:aws_c_*_jll, which share the soname.so.1.0.0with conda's copies (pulled in via pyspark → pyarrow). Newer conda versions breakimport awkwardin-process.environment_julia_pins.yamlcaps them at the JLL versions; the only cost is pyarrow 25 → 24.FDP_TUNNEL_CAINFO.Nullbackend is set via[preferences.CondaPkg], so PythonCall uses the activated env.imas_composersubmodule added.Testing
Pkg.test(): full suite passes, including 14 newawkward_from_bufferstests.deploy/container/smoke_test.jlin the pinned env, with noLD_PRELOAD, shot 205055:ak.to_list.Follow-ups
imas_composersubmodule oncessd/julia_interfaceis merged.🤖 Generated with Claude Code