Skip to content

PALS Python 0.3.0, Unit Convention for Quad#1357

Merged
ax3l merged 7 commits into
BLAST-ImpactX:developmentfrom
cemitch99:update_pals_support
Jun 2, 2026
Merged

PALS Python 0.3.0, Unit Convention for Quad#1357
ax3l merged 7 commits into
BLAST-ImpactX:developmentfrom
cemitch99:update_pals_support

Conversation

@cemitch99

@cemitch99 cemitch99 commented Mar 18, 2026

Copy link
Copy Markdown
Member

Update PALS-Python from 0.2.0 to 0.3.0

  • bump dependency to 0.3.0
  • and upgrade the breaking changes

Fix unit convention for PALS Quad support

PALS support requires additional implementation of translation on the ImpactX side.

For the PALS Quad, the option of specifying gradient in two unit systems, as Bn1 or Kn1, needs to be supported. This PR fixes the existing choice of units.

@cemitch99
cemitch99 requested a review from ax3l March 18, 2026 19:05
@ax3l ax3l added bug Something isn't working bug: affects latest release Bug also exists in latest release version component: python Python bindings labels Mar 18, 2026
@ax3l ax3l self-assigned this Mar 18, 2026
@ax3l

ax3l commented Mar 18, 2026

Copy link
Copy Markdown
Member

Oh, probably needs to update the analysis in fodo-pals.py now (examples/pals/analysis_fodo_pals.py)

@ax3l ax3l mentioned this pull request Mar 18, 2026
4 tasks
@cemitch99

Copy link
Copy Markdown
Member Author

@ax3l In the ImpactX parsing lines, we just need to check whether PALS input Bn1 or Kn1 is provided and branch accordingly.

@codspeed-hq

codspeed-hq Bot commented Mar 18, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 5.31%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

❌ 1 regressed benchmark
✅ 40 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
test_Drift[spin] 457.4 µs 483 µs -5.31%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing cemitch99:update_pals_support (cf1c31a) with development (82163d6)

Open in CodSpeed

@ax3l
ax3l force-pushed the development branch 2 times, most recently from 9a1e4af to fa61eba Compare April 20, 2026 04:08
@ax3l ax3l changed the title Fix unit convention for PALS Quad support. PALS Python 0.2.0, Unit Convention for Quad May 6, 2026
@ax3l ax3l changed the title PALS Python 0.2.0, Unit Convention for Quad PALS Python 0.3.0, Unit Convention for Quad May 6, 2026
@ax3l
ax3l requested a review from EZoni May 6, 2026 19:24
Comment thread src/python/impactx/extensions/KnownElementsList.py Outdated
)


def flatten_pals(pals_data, registry=None):

@ax3l ax3l May 6, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

flatten_pals could be a helper routine in pals-python, for the next release of it.

I am surprised that we still have placeholders at this point in the logic, we probably should replace placeholders / do lattice expansion already in pals.load() -- to check if as an optional argument (i.e. lattice_expansion=True). To check lattice and branch expansion.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For the next release (not this PR): pals-project/pals-python#70

@cemitch99

This comment was marked as resolved.

@ax3l
ax3l force-pushed the update_pals_support branch from f1309b9 to cf1c31a Compare June 2, 2026 19:33
@ax3l
ax3l enabled auto-merge (squash) June 2, 2026 19:35
@ax3l
ax3l merged commit 1342d73 into BLAST-ImpactX:development Jun 2, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: affects latest release Bug also exists in latest release version bug Something isn't working component: python Python bindings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants