Open bbergerud opened 2 years ago
+1
I changed this line to an if-else statement like you mentioned: if len(z) <= 100: Z = np.column_stack((np.array(m_dict['dataValues']['z']),np.repeat(m_dict['dataValues']['z'].values,ncols-1).reshape(len(m_dict['dataValues']['z']),ncols-1))) else: Z = np.column_stack((np.array(m_dict['dataValues']['z']),np.repeat(m_dict['dataValues']['z'],ncols-1).reshape(len(m_dict['dataValues']['z']),ncols-1)))
However, the plot looks incorrect with samples of 99 but correct with samples of 101.
When attempting to fit a distribution with more than 100 points an error is raised:
Changing
m_dict['dataValues']['z'].values
tom_dict['dataValues']['z']
will fix the problem when there are more than 100 samples but create issues when there are less, so an If-Else statement would probably suffice to fix the problem. Trying to castx
into a Pandas DataFrame or series when using more than 100 samples results in the same error.