What is a question about this article? If the question is unanswerable, say "unanswerable".

Idealist notions took a strong hold among physicists of the early 20th century confronted with the paradoxes of quantum physics and the theory of relativity. In The Grammar of Science, Preface to the 2nd Edition, 1900, Karl Pearson wrote, "There are many signs that a sound idealism is surely replacing, as a basis for natural philosophy, the crude materialism of the older physicists." This book influenced Einstein's regard for the importance of the observer in scientific measurements[citation needed]. In 5 of that book, Pearson asserted that "...science is in reality a classification and analysis of the contents of the mind...." Also, "...the field of science is much more consciousness than an external world."

Along with quantum physics generally, what scientific doctrine caused some physicists to embrace idealism?
relativity