@testing.requires_testing_data
def test_read_write_fine_cal():
 temp_dir = _TempDir()
 temp_fname = op.join(temp_dir, 'fine_cal_temp.dat')
 for fname in [fine_cal_fname, fine_cal_fname_3d]:
  fine_cal_dict = read_fine_calibration(fname)
  write_fine_calibration(temp_fname, fine_cal_dict)
  fine_cal_dict_reload = read_fine_calibration(temp_fname)
  assert_equal(object_hash(fine_cal_dict), object_hash(fine_cal_dict_reload))

@ testing . requires_testing_data def test_read_write_fine_cal ( ) : temp_dir = _TempDir ( ) temp_fname = op . join ( temp_dir , 'fine_cal_temp.dat' ) for fname in [ fine_cal_fname , fine_cal_fname_3d ] : fine_cal_dict = read_fine_calibration ( fname ) write_fine_calibration ( temp_fname , fine_cal_dict ) fine_cal_dict_reload = read_fine_calibration ( temp_fname ) assert_equal ( object_hash ( fine_cal_dict ) , object_hash ( fine_cal_dict_reload ) )
test round trip reading/writing of fine calibration .