And similarly take the compass out of the aircraft and check if is OK remote from any metal objects.
Welding does certainly cause horrible magnetic effects. What gets magnetised depends to some extent on where the earth return cable is attached during welding.
H