Skip to content

Commit

Permalink
Ignored no libary parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale committed Sep 17, 2024
1 parent 6e0b614 commit 88de24d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions montepy/data_inputs/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,12 @@ def _grab_defaults(self):
return
params = self._tree["parameters"]
for param, value in params.nodes.items():
lib_type = LibraryType(param.upper())
self._default_libs[lib_type] = Library(value["data"].value)
try:
lib_type = LibraryType(param.upper())
self._default_libs[lib_type] = Library(value["data"].value)
# skip extra parameters
except ValueError:
pass
# TODO update in update_values for default_libraries

@make_prop_val_node("_old_number")
Expand Down

0 comments on commit 88de24d

Please sign in to comment.