Skip to content

Commit

Permalink
Added suggested improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
tmnp19 committed May 29, 2024
1 parent ffdf9ee commit bbcb6fa
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions piglot/solver/abaqus/reader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Module to extract the nodal data from the output database (.odb) file"""
"""Module to extract the nodal data from the output database (.odb) file
Note: This script has older python syntax because it is used in Abaqus, which uses Python 2.7.
"""
import re
import os
import sys
Expand All @@ -18,13 +20,15 @@ def input_variables():
args = sys.argv
variables = {}

variable_names = ['input_file',
'job_name',
'step_name',
'instance_name',
'set_name',
'field',
'x_field']
variable_names = [
'input_file',
'job_name',
'step_name',
'instance_name',
'set_name',
'field',
'x_field',
]

for var_name in variable_names:
var_list = [a for a in args if a.startswith(var_name + "=")]
Expand Down

0 comments on commit bbcb6fa

Please sign in to comment.