As a scientist very interested in philosophy of science and epistemology, I would say that Romanticism and Hume's Idealism were equally important for the development of an empirical epistemic outlook for science. I'm curious why you think romanticism was more relevant? I'm not opposed to it, I just don't see how we can discount Hume in the turn away from material rationalism