Skip to content

Commit

Permalink
Fix deprecation warning for Dataset.apply
Browse files Browse the repository at this point in the history
  • Loading branch information
EdGrrr committed Mar 20, 2024
1 parent 72e3db3 commit e2b83ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_RadTran.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def uvspec_test_function(uvspec_testdata):
output_filename = test_filename.replace('.INP', '.OUT')
testdata = parse_outputfile(lrt.parser, output_filename, rt=lrt)

abs_error = ((sdata-testdata)).apply(np.abs)
rel_error_abs = (abs_error/testdata).apply(np.abs)
abs_error = ((sdata-testdata)).map(np.abs)
rel_error_abs = (abs_error/testdata).map(np.abs)

rel_error_flag = (((rel_error_abs>rtol)*(abs_error>atol)).sum()>0)

Expand Down

0 comments on commit e2b83ab

Please sign in to comment.