Skip to content

Conversation

VsevolodX
Copy link
Member

  • update: imports from top level helpers
  • update: heterostructure nb
  • update: imports
  • update: improt made
  • update: slab related
  • update: imports in specific examples (claude)

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@@ -1,7 +1,11 @@
{
"cells": [
Copy link
Member

@timurbazhirov timurbazhirov Aug 9, 2025

Choose a reason for hiding this comment

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

Line #1.    from mat3ra.made.tools.modify import wrap_to_unit_cell

Remove wrap_to_unit_cell


Reply via ReviewNB

Copy link
Member Author

Choose a reason for hiding this comment

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

+

"\n",
"Set the following flags to control the notebook behavior.\n"
]
},
Copy link
Member

@timurbazhirov timurbazhirov Aug 9, 2025

Choose a reason for hiding this comment

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

Line #5.        await micropip.install("https://exabyte-io.github.io/api-examples/mat3ra_api_examples-0.1.dev1+g03efa43-py3-none-any.whl", deps=False)

This NB needs to be adjusted similar to the one in specific_examples


Reply via ReviewNB

Copy link
Member Author

Choose a reason for hiding this comment

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

+

@@ -1,7 +1,11 @@
{
"cells": [
Copy link
Member

@timurbazhirov timurbazhirov Aug 9, 2025

Choose a reason for hiding this comment

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

We should add conditions to esse and set parameters from there (and validate)


Reply via ReviewNB

"## 1. Prepare the Environment\n",
"### 1.1. Set up defects parameters \n",
"Defect Configuration parameters are described in [Defect Configuration](https://github.com/Exabyte-io/made/blob/8196b759242551c77d1791bf5bd2f4150763cfef/src/py/mat3ra/made/tools/build/defect/configuration.py#L102)."
]
Copy link
Member

@timurbazhirov timurbazhirov Aug 9, 2025

Choose a reason for hiding this comment

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

DEFECT_CONFIGS = [SimpleNamespace(**config) for config in DEFECT_CONFIGS]

`


Reply via ReviewNB

Copy link
Member Author

Choose a reason for hiding this comment

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

+

"## 1. Prepare the Environment\n",
"### 1.1. Set up defects parameters \n",
"Defect Configuration parameters are described in [Defect Configuration](https://github.com/Exabyte-io/made/blob/8196b759242551c77d1791bf5bd2f4150763cfef/src/py/mat3ra/made/tools/build/defect/configuration.py#L102)."
]
Copy link
Member

@timurbazhirov timurbazhirov Aug 9, 2025

Choose a reason for hiding this comment

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

Line #4.    DEFECT_CONFIGS = [

Should we use SimpleNamespace


Reply via ReviewNB

Copy link
Member Author

Choose a reason for hiding this comment

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

+

"cell_type": "markdown",
"id": "3ae4cc7db0846f04",
"metadata": {
"collapsed": false
Copy link
Member

@timurbazhirov timurbazhirov Aug 9, 2025

Choose a reason for hiding this comment

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

Line #7.        MaterialWithBuildMetadata.create(Materials.get_by_name_first_match(STRUCTURE_PARAMS[0].name)),

Lets just do this for all the STRUCTURE_PARAMS members, e.g. crystals = [MaterialWithBuildMetadata.create(Materials.get_by_name_first_match(parameter.name)) for parameter in STRUCTURE_PARAMETERS]


Reply via ReviewNB

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure

@@ -1,7 +1,11 @@
{
"cells": [
Copy link
Member

@timurbazhirov timurbazhirov Aug 9, 2025

Choose a reason for hiding this comment

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

Clean up outputs here and other NBs


Reply via ReviewNB

Copy link
Member Author

Choose a reason for hiding this comment

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

added pre commit

@VsevolodX VsevolodX merged commit f5591e9 into dev Aug 11, 2025
4 checks passed
@VsevolodX VsevolodX deleted the feature/SOF-7685 branch August 11, 2025 00:09
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