diff --git a/processing/post/addStrainTensors.py b/processing/post/addStrainTensors.py index 756761e46..77015a91f 100755 --- a/processing/post/addStrainTensors.py +++ b/processing/post/addStrainTensors.py @@ -2,10 +2,9 @@ import os import sys +from io import StringIO from optparse import OptionParser -import numpy as np - import damask diff --git a/processing/post/addTable.py b/processing/post/addTable.py index c7d34f1e8..944214e69 100755 --- a/processing/post/addTable.py +++ b/processing/post/addTable.py @@ -2,6 +2,7 @@ import os import sys +from io import StringIO from optparse import OptionParser import damask diff --git a/processing/post/averageDown.py b/processing/post/averageDown.py index 817000dfa..cbd1f9637 100755 --- a/processing/post/averageDown.py +++ b/processing/post/averageDown.py @@ -2,6 +2,7 @@ import os import sys +from io import StringIO from optparse import OptionParser import numpy as np diff --git a/processing/post/blowUp.py b/processing/post/blowUp.py index ec42e2365..9cb6347ab 100755 --- a/processing/post/blowUp.py +++ b/processing/post/blowUp.py @@ -2,6 +2,7 @@ import os import sys +from io import StringIO from optparse import OptionParser from scipy import ndimage diff --git a/processing/post/growTable.py b/processing/post/growTable.py index 4fd647b1e..1dbfa8423 100755 --- a/processing/post/growTable.py +++ b/processing/post/growTable.py @@ -2,10 +2,9 @@ import os import sys +from io import StringIO from optparse import OptionParser -import numpy as np - import damask scriptName = os.path.splitext(os.path.basename(__file__))[0] diff --git a/python/damask/table.py b/python/damask/table.py index ef8a84276..343ba638d 100644 --- a/python/damask/table.py +++ b/python/damask/table.py @@ -274,7 +274,9 @@ class Table(): def append(self,other): """ - Append other table vertically (similar to numpy.vstack). Requires matching shapes and order. + Append other table vertically (similar to numpy.vstack). + + Requires matching labels/shapes and order. Parameters ---------- @@ -290,8 +292,9 @@ class Table(): def join(self,other): """ - Append other table horizontally (similar to numpy.hstack). Requires matching number of rows - and no common lables + Append other table horizontally (similar to numpy.hstack). + + Requires matching number of rows and no common labels. Parameters ----------