Skip to content

update: save kgird data to context#151

Open
VsevolodX wants to merge 3 commits into
mainfrom
feature/SOF-7918
Open

update: save kgird data to context#151
VsevolodX wants to merge 3 commits into
mainfrom
feature/SOF-7918

Conversation

@VsevolodX

Copy link
Copy Markdown
Member

No description provided.

/** Re-run `setData` normalization before persisting (e.g. derive grid metric from dimensions). */
syncPersistentData() {
this.setData(this.getData());
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Right now for example if we use (2 2 2) kgrid on Si2, then the gridMetricValue is still shown "5" by default in UI -- which is not true, the "16" value is used in calculations.
Not isEdited=True -- thus it is not updated, while it would be if it was edited.


/** Context items always serialized on the unit so rupy can store them in scope after execution. */
const CONTEXT_SCOPE_ITEMS = new Set(["kgrid"]);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No premature optimization. Either storing full contexts on each unit -- which will be too much, or specifying those that are actually needed during the job running

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.

1 participant