Skip to content

Commit

Permalink
Fixed bug when checking adaptivity input parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoFerreira committed Oct 26, 2023
1 parent c466732 commit 0b0f47c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cratepy/ioput/readprocedures.py
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@ def read_cluster_analysis_scheme(file, file_path, keyword, material_phases,
# Get parameter value
value = get_formatted_parameter(parameter, line[1])
# Store adaptivity criterion parameter
if isinstance(value, oacp[parameter]):
if isinstance(value, type(oacp[parameter])):
adapt_criterion_data[mat_phase][parameter] = \
get_formatted_parameter(parameter,
type(oacp[parameter])(line[1]))
Expand All @@ -1665,7 +1665,7 @@ def read_cluster_analysis_scheme(file, file_path, keyword, material_phases,
# Get parameter value
value = get_formatted_parameter(parameter, line[1])
# Store adaptivity type parameter
if isinstance(value, oatp[parameter]):
if isinstance(value, type(oatp[parameter])):
adaptivity_type[mat_phase][parameter] = \
get_formatted_parameter(parameter,
type(oatp[parameter])(line[1]))
Expand Down

0 comments on commit 0b0f47c

Please sign in to comment.