Skip to content

Conversation

@DavidSagan
Copy link
Member

No description provided.


Placeholder element used for bookkeeping.
Placeholder element used for bookkeeping when constructing the expanded lattice.
This element can be used as a reference element for superpositions.
Copy link
Member

Choose a reason for hiding this comment

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

This sentence is not clear to me. How is this different to a Marker?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry I left out the important sentence "NullEle elements will be removed from the expanded lattice."

Copy link
Member

@ax3l ax3l Oct 30, 2025

Choose a reason for hiding this comment

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

Got it.

I mean, This element can be used as a reference element for superpositions. is not clear to me / too brief for me. How is this different to a Marker?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes markers can be used but then markers are not removed in the expanded lattice and sometimes this is not desired.

Copy link
Member

@ax3l ax3l Oct 30, 2025

Choose a reason for hiding this comment

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

Got it, so we want to use this mostly for internal representation jobs.

I think APIs should add .filter() functions to remove any desired element by name/kind/attribute, will note for our reference implementation.

Copy link
Member Author

Choose a reason for hiding this comment

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

My concept of NullEle is very limited.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, then let me merge in a bit what we need an empty element for.

Copy link
Member

@ax3l ax3l Oct 30, 2025

Choose a reason for hiding this comment

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

Updated.

Unfortunately, as a reference element for superpositions. still is not clear to me and needs more description.

  • What is meant by this sentence? Can you help me understand this with a workflow description/example?
  • Why would one not use a Marker for reference points, I would assume one wants to name any reference point propertly?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmmm. So in PALS the reference element is called base_item. I have changed the text to reflect this.

Sometimes someone will not want the finished lattice cluttered up with a bunch of markers that are rather arbitrarily placed to do superposition.

Copy link
Member

Choose a reason for hiding this comment

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

Thank you, ah that is the mental reference that was lacking. Let me read up the link and come back :)

@ax3l ax3l added the element kinds beamline elements & segments/lines label Oct 30, 2025
@DavidSagan
Copy link
Member Author

The NullEle will appear in lattice files.

@DavidSagan
Copy link
Member Author

@ax3l Please do not push changes to the PR without consulting me first since when I am making changes at the same time Git will become unhappy and then I have to spend time sorting everything out.

@ax3l
Copy link
Member

ax3l commented Oct 30, 2025

Oh sorry for the direct commit, will use suggestions to keep it clearer 👍

Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

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

Reads well, thanks for the iterations together!

@ax3l ax3l merged commit 21ad3c1 into main Nov 1, 2025
1 check passed
@ax3l ax3l deleted the null1 branch November 1, 2025 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

element kinds beamline elements & segments/lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants