I am getting the correct outcome for Exercise 4, but the “test your solution” is returning an error.
(Moderation Edit - solution code removed)
But I am getting the following test error
AttributeError Traceback (most recent call last)
~/work/w2_unittest.py in test_augmented_to_ref(target)
346 try:
--> 347 assert result.shape == test_case["expected"]["A_ref"].shape
348 successful_cases += 1
AttributeError: 'NoneType' object has no attribute 'shape'
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
<ipython-input-71-041849f721e5> in <module>
1 # Test your solution
----> 2 w2_unittest.test_augmented_to_ref(augmented_to_ref)
~/work/w2_unittest.py in test_augmented_to_ref(target)
352 "name": test_case["name"],
353 "expected": test_case["expected"]["A_ref"].shape,
--> 354 "got": result.shape,
355 }
356 )
AttributeError: 'NoneType' object has no attribute 'shape'