Skip to content

Add imas_composer2imas functions to comunicating between two codes. - #111

Open
jmcclena wants to merge 3 commits into
ssd/imas_composer_callfrom
jtm/imas_composer
Open

jmcclena wants to merge 3 commits into
ssd/imas_composer_callfrom
jtm/imas_composer

Conversation

@jmcclena

@jmcclena jmcclena commented Nov 4, 2026

Copy link
Copy Markdown
Member

Added handling of zero length awkward array.
Added basic run tests for transfer

jmcclena and others added 2 commits November 3, 2026 13:12
EmptyArray (an empty array, or lists that are all empty) becomes a
Float64[], as in ak.to_numpy. A RegularArray of size 0 cannot infer its
length from its content and raised a DivideError, so each node now gets
its length from its parent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 65.55556% with 31 lines in your changes missing coverage. Please review.
✅ Project coverage is 44.11%. Comparing base (52c0292) to head (af195ea).

Files with missing lines Patch % Lines
ext/IMASddPythonCallExt.jl 0.00% 27 Missing ⚠️
src/io.jl 93.65% 4 Missing ⚠️
Additional details and impacted files
@@                    Coverage Diff                     @@
##           ssd/imas_composer_call     #111      +/-   ##
==========================================================
+ Coverage                   43.97%   44.11%   +0.14%     
==========================================================
  Files                          17       17              
  Lines                       31580    31675      +95     
==========================================================
+ Hits                        13887    13975      +88     
- Misses                      17693    17700       +7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AreWeDreaming AreWeDreaming left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small tweaks. Not tested. We could also add CI for this. All we'd need is a new persistent FDP BEARER_TOKEN.

Comment thread ext/IMASddPythonCallExt.jl Outdated
return IMASdd.awkward_from_buffers(form, pyconvert(Int, value["length"]), buffers)
end

function IMASdd.imas_composer2imas(shot::Integer, fields::AbstractVector, @nospecialize(ids::IMASdd.DD)=IMASdd.dd_nospecialize(); kw...)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to be able to forward the various imas_composer simple load arguments:

efit_tree: EFIT tree (default: 'EFIT01', ignored if composer provided)
efit_run_id: Run id appended to pulse for 'EFIT' tree (default: '')
profiles_tree: Profiles tree (default: 'ZIPFIT01', ignored if composer provided)
profiles_run_id: Run ID appended to pulse for OMFIT_PROFS tree (default: '')

mentioning these because this feature was created for FUSE

crop_core_profiles: Whether to crop core_profiles to inside the separatrix (rho <= 1)

The following we can ignore for now:

fast_ece: Whether to load fast_ece data (default: False)
include_rip: Whether to include RIP data for interferometer IDS (default: False)
max_iterations: Maximum resolve-fetch iterations (default: 10)

Comment thread ext/IMASddPythonCallExt.jl Resolved
@AreWeDreaming

Copy link
Copy Markdown

Given that the codecov is complaining, I'd say we wait with merging until we get an FDP token for this Org and add Ci.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants