Python code updates – 3DFrame-py

Recent changes to how Python treats comparing a Numpy array to an empty list have resulted in some of my functions returning errors and I am in the process of updating them. Specifically, when an optional argument to a function might return a NumPy array or an empty list, I have used the line:
if optarg == [] :
but if the argument is a non-empty array, this now returns an error, so has been replaced with:
if len(optarg) == 0:

Updated code for the 3DFrame-py program, and associated spreadsheets can be downloaded from:

3DFrame-py.zip

Details of file installation, and required software are at:

3DFrame-py

and use of the program for analyses including warping effects can be found at:

3DFrame-py update

This entry was posted in Excel, Finite Element Analysis, Frame Analysis, Link to Python, Newton, NumPy and SciPy, PyXLL, UDFs and tagged , , , , , , , , . Bookmark the permalink.

2 Responses to Python code updates – 3DFrame-py

  1. Pingback: Python Code Updates – py_UMom | Newton Excel Bach, not (just) an Excel Blog

  2. Pingback: 3DFrame-py; with non-linear analysis | Newton Excel Bach, not (just) an Excel Blog

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.