def new_with_array(self, array):
arguments = vars(self)<EOL>arguments.update({"<STR_LIT>": array})<EOL>if '<STR_LIT>' in arguments:<EOL><INDENT>arguments.pop("<STR_LIT>")<EOL><DEDENT>return self.__class__(**arguments)<EOL>
Parameters
----------
array: ndarray
    An ndarray

Returns
-------
new_array: ScaledSquarePixelArray
    A new instance of this class that shares all of this instances attributes with a new ndarray.