diff --git a/rubin_sim/maf/metrics/base_metric.py b/rubin_sim/maf/metrics/base_metric.py index 3f21f8c3..3e9b31c0 100644 --- a/rubin_sim/maf/metrics/base_metric.py +++ b/rubin_sim/maf/metrics/base_metric.py @@ -140,7 +140,7 @@ def __init__( ): # Turn cols into numpy array so we know # we can iterate over the columns. - self.col_name_arr = np.array(col, copy=None, ndmin=1) + self.col_name_arr = np.array(col, copy=True, ndmin=1) # To support simple metrics operating on a single column, # set self.colname if len(self.col_name_arr) == 1: diff --git a/rubin_sim/maf/plots/skyproj_plotters.py b/rubin_sim/maf/plots/skyproj_plotters.py index 39e8aee6..e8392de3 100644 --- a/rubin_sim/maf/plots/skyproj_plotters.py +++ b/rubin_sim/maf/plots/skyproj_plotters.py @@ -335,15 +335,15 @@ def __call__(self, metric_values, slicer, user_plot_dict, fig=None): # or specified as decorators. if self.plot_dict["xlabel"] is None: if "xlabel" not in self.plot_dict["decorations"]: - self.skyproj.set_xlabel("", visible=False) + self.skyproj.ax.set_xlabel("", visible=False) else: - self.skyproj.set_xlabel(self.plot_dict["xlabel"]) + self.skyproj.ax.set_xlabel(self.plot_dict["xlabel"]) if self.plot_dict["ylabel"] is None: if "ylabel" not in self.plot_dict["decorations"]: - self.skyproj.set_ylabel("", visible=False) + self.skyproj.ax.set_ylabel("", visible=False) else: - self.skyproj.set_ylabel(self.plot_dict["ylabel"]) + self.skyproj.ax.set_ylabel(self.plot_dict["ylabel"]) if self.plot_dict["label"] is not None: label_kwargs = {}