fn get_variable_direction( vr: &VariableRef, wave_container_opt: Option<&WaveContainer>, ) -> VariableDirection