Skip to content

Commit bbbdd46

Browse files
committed
debugging marsfiles test
1 parent aa79f57 commit bbbdd46

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/test_marsfiles.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -471,21 +471,21 @@ def test_split_file_by_lon(self):
471471
def test_temporal_filters(self):
472472
"""Test all temporal filtering operations"""
473473
# High-pass filter
474-
result = self.run_mars_files(['01336.atmos_daily.nc', '-hpt', '10'])
474+
result = self.run_mars_files(['01336.atmos_daily.nc', '-hpt', '10', '-incl', 'temp'])
475475
self.assertEqual(result.returncode, 0, "High-pass temporal filter command failed")
476476
high_pass_file = self.check_file_exists('01336.atmos_daily_hpt.nc')
477477
self.verify_netcdf_has_variable(high_pass_file, 'temp')
478478
print("✓ High-pass temporal filter succeeded")
479479

480480
# Low-pass filter
481-
result = self.run_mars_files(['01336.atmos_daily.nc', '-lpt', '0.75'])
481+
result = self.run_mars_files(['01336.atmos_daily.nc', '-lpt', '0.75', '-incl', 'temp'])
482482
self.assertEqual(result.returncode, 0, "Low-pass temporal filter command failed")
483483
low_pass_file = self.check_file_exists('01336.atmos_daily_lpt.nc')
484484
self.verify_netcdf_has_variable(low_pass_file, 'temp')
485485
print("✓ Low-pass temporal filter succeeded")
486486

487487
# Band-pass filter
488-
result = self.run_mars_files(['01336.atmos_daily.nc', '-bpt', '0.75', '10', '-add_trend'])
488+
result = self.run_mars_files(['01336.atmos_daily.nc', '-bpt', '0.75', '10', '-add_trend', '-incl', 'temp'])
489489
self.assertEqual(result.returncode, 0, "Band-pass temporal filter with trend command failed")
490490
band_pass_file = self.check_file_exists('01336.atmos_daily_bpt_trended.nc')
491491
self.verify_netcdf_has_variable(band_pass_file, 'temp')
@@ -498,23 +498,23 @@ def test_spatial_filters(self):
498498
"Install it to run this test.")
499499

500500
# High-pass filter
501-
result = self.run_mars_files(['01336.atmos_daily.nc', '-hps', '10'])
501+
result = self.run_mars_files(['01336.atmos_daily.nc', '-hps', '10', '-incl', 'temp'])
502502
self.assertEqual(result.returncode, 0, "High-pass spatial filter command failed")
503503
high_pass_file = self.check_file_exists('01336.atmos_daily_hps.nc')
504504
self.verify_netcdf_has_variable(high_pass_file, 'temp')
505505
print("✓ High-pass spatial filter succeeded")
506506

507507
# Low-pass filter
508-
result = self.run_mars_files(['01336.atmos_daily.nc', '-lps', '20'])
508+
result = self.run_mars_files(['01336.atmos_daily.nc', '-lps', '20', '-incl', 'temp'])
509509
self.assertEqual(result.returncode, 0, "Low-pass spatial filter command failed")
510510
low_pass_file = self.check_file_exists('01336.atmos_daily_lps.nc')
511511
self.verify_netcdf_has_variable(low_pass_file, 'temp')
512512
print("✓ Low-pass spatial filter succeeded")
513513

514514
# Band-pass filter
515-
result = self.run_mars_files(['01336.atmos_daily.nc', '-bps', '10', '20', '-add_trend'])
516-
self.assertEqual(result.returncode, 0, "Band-pass spatial filter with trend command failed")
517-
band_pass_file = self.check_file_exists('01336.atmos_daily_bps_trended.nc')
515+
result = self.run_mars_files(['01336.atmos_daily.nc', '-bps', '10', '20', '-incl', 'temp'])
516+
self.assertEqual(result.returncode, 0, "Band-pass spatial filter command failed")
517+
band_pass_file = self.check_file_exists('01336.atmos_daily_bps.nc')
518518
self.verify_netcdf_has_variable(band_pass_file, 'temp')
519519
print("✓ Band-pass spatial filter succeeded")
520520

0 commit comments

Comments
 (0)