Skip to content

feature/SOF 7878#142

Merged
VsevolodX merged 11 commits intomainfrom
feature/SOF-7878
Apr 9, 2026
Merged

feature/SOF 7878#142
VsevolodX merged 11 commits intomainfrom
feature/SOF-7878

Conversation

@VsevolodX
Copy link
Copy Markdown
Member

  • update: add generic convergence
  • update: add test

parameter_increment: Any,
reciprocal_vector_ratios: Optional[List[float]] = None,
result: str = ENERGY_CONVERGENCE_RESULT,
param_name: str,
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.

param -> parameter everywhere

)

@staticmethod
def _inject_template_variable(unit, param_name: str) -> None:
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.

Move to Ade
replace_text(pattern, value)

Comment on lines +289 to +293
numeric = r"[\d.e+\-]+"
jinja_var = r"\{\{[^}]+\}\}"
pattern = rf"{param_name}\s*=\s*(?:{numeric}|{jinja_var})"
replacement = f"{param_name} = {{% raw %}}{{{{ {param_name} }}}}{{% endraw %}}"
for input_item in unit.input:
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.

This function should be split in two - one that changes Jinja template text, the other one that changes input items for unit with new text



# TODO: use from ESSE when epic/SOF-7756 merged
class ExecutionUnitInputItem(InMemoryEntitySnakeCase):
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.

Remove

"mat3ra-esse",
"mat3ra-mode",
"mat3ra-ade",
"mat3ra-ade @ git+https://github.com/Exabyte-io/ade.git@9ef73f59d2099cda4426011ed1f31891ee19b68c",
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.

Remove

@VsevolodX
Copy link
Copy Markdown
Member Author

moved onto feature/SOF-7878-1
this will be kept for future development

@VsevolodX VsevolodX closed this Apr 8, 2026
@VsevolodX VsevolodX reopened this Apr 8, 2026
@VsevolodX VsevolodX marked this pull request as draft April 8, 2026 21:04
@VsevolodX VsevolodX merged commit 73dc01c into main Apr 9, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants