From 3bee20be622b94cb95f55cbd4be8bd7920874fea Mon Sep 17 00:00:00 2001 From: Gabriele Bozzola Date: Tue, 14 Jun 2022 16:25:14 -0700 Subject: [PATCH] Fix test_init in test_cactus_grid_function --- NEWS.md | 1 + tests/test_cactus_grid_functions.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NEWS.md b/NEWS.md index cb5dfee8..3c7c09e6 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,6 +5,7 @@ #### Bug fixes - Fix str representation of multipoles - Fix implicit plotting of `Series` for `matplotlib >= 3.5.2` +- Fix `test_init` in `test_cactus_grid_function` ## Version 1.3.4 (22 April 2022) diff --git a/tests/test_cactus_grid_functions.py b/tests/test_cactus_grid_functions.py index f58d642c..fee8b990 100755 --- a/tests/test_cactus_grid_functions.py +++ b/tests/test_cactus_grid_functions.py @@ -472,9 +472,9 @@ def test_init(self): # Let's check this first one # # We have to remove the blank lines from the count - expected_data = np.loadtxt( - self.rho_star_file, usecols=(12,), max_rows=875 - ) + expected_data = np.loadtxt(self.rho_star_file, usecols=(12,))[ + : 29 * 29 + ] expected_grid = grid_data.UniformGrid( [29, 29],