Skip to content

Commit

Permalink
fixed calculation_type
Browse files Browse the repository at this point in the history
  • Loading branch information
bewegende-Architektur committed Apr 2, 2023
1 parent a5d9975 commit 3fb13b0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ga.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def generate_basis():

# for PyNite
if phaenotyp.calculation_type != "force_distribution":
prepare_fea = prepare_fea_pn
prepare_fea = calculation.prepare_fea_pn
run_st = calculation.run_st_pn
interweave_results = interweave_results_pn
interweave_results = calculation.interweave_results_pn

# for force distribuion
else:
Expand Down Expand Up @@ -323,9 +323,9 @@ def bruteforce(chromosomes):

# for PyNite
if phaenotyp.calculation_type != "force_distribution":
prepare_fea = prepare_fea_pn
prepare_fea = calculation.prepare_fea_pn
run_st = calculation.run_st_pn
interweave_results = interweave_results_pn
interweave_results = calculation.interweave_results_pn

# for force distribuion
else:
Expand Down Expand Up @@ -378,9 +378,9 @@ def create_initial_individuals(start, end):

# for PyNite
if phaenotyp.calculation_type != "force_distribution":
prepare_fea = prepare_fea_pn
prepare_fea = calculation.prepare_fea_pn
run_st = calculation.run_st_pn
interweave_results = interweave_results_pn
interweave_results = calculation.interweave_results_pn

# for force distribuion
else:
Expand Down Expand Up @@ -435,9 +435,9 @@ def sectional_optimization(start, end):

# for PyNite
if phaenotyp.calculation_type != "force_distribution":
prepare_fea = prepare_fea_pn
prepare_fea = calculation.prepare_fea_pn
run_st = calculation.run_st_pn
interweave_results = interweave_results_pn
interweave_results = calculation.interweave_results_pn

# for force distribuion
else:
Expand Down Expand Up @@ -618,9 +618,9 @@ def create_new_individuals(start, end):

# for PyNite
if phaenotyp.calculation_type != "force_distribution":
prepare_fea = prepare_fea_pn
prepare_fea = calculation.prepare_fea_pn
run_st = calculation.run_st_pn
interweave_results = interweave_results_pn
interweave_results = calculation.interweave_results_pn

# for force distribuion
else:
Expand Down

0 comments on commit 3fb13b0

Please sign in to comment.