Skip to content

Deploy 1.0.0#720

Merged
MicahGale merged 688 commits intomainfrom
develop
Apr 3, 2025
Merged

Deploy 1.0.0#720
MicahGale merged 688 commits intomainfrom
develop

Conversation

@MicahGale
Copy link
Copy Markdown
Collaborator

@MicahGale MicahGale commented Mar 28, 2025

Changes

This release primarily focuses on redesigning the material interface. For details see the migration guide. Also the updated getting started guide shows how to use a lot of these new features.

Materials

The biggest change is that Material is no longer a wrapper of dictionary; it now behaves like a list.

This will make it a lot easier to do the following with materials:

  • Query, edit, and add nuclides to a specific material
  • Change what the default library, e.g., nlib=80c for a specific material
  • Find all materials that contain certain nuclides
  • Create a new nuclide intuitively: e.g., montepy.Nuclide("U-235m1.80c")
  • Materials are now iterable themselves.

General

This will also make it a lot easier to work with MontePy objects in general by:

  • If a typo in made in an attribute an error raised. This prevents cell.nuber = 5 from having no effect.
  • Create new objects with their just their string version of the MCNP input. You can create a new cell with montepy.Cell("1 0 -2 imp:n=1"). In a lot of cases it's a better idea to do: problem.parse("1 0 -2 imp:n=1").

Features Added

Material Interface Changes

General Updates

Bugs Fixed

Breaking Changes

  • Removed Material.material_components (Mat redesign #507)
  • Removed Isotope and changed them to Nuclide
  • Removed MCNP_Problem.add_cell_children_to_problem as it is no longer needed.

📚 Documentation preview 📚: https://montepy--720.org.readthedocs.build/en/720/

MicahGale and others added 30 commits February 13, 2025 22:03
@MicahGale MicahGale added the documentation Improvements or additions to documentation label Apr 2, 2025
@MicahGale MicahGale merged commit 3c3704e into main Apr 3, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugs A deviation from expected behavior that does not reach the level of being reportable as an "Error". code improvement A feature request that will improve the software and its maintainability, but be invisible to users. documentation Improvements or additions to documentation feature request An issue that improves the user interface.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants