“She published her initial findings in a 2010 book: Science vs. Religion: What Scientists Really Think,
which documented a surprising openness to religious faith and experience among an intellectual class wrongly thought to be implacably and uniformly hostile to religion.”
So according to the two sources you cited it is “wrongly thought” that science is hostile to religion.
A particular segment of the population likes to push that idea - but it is not supported by the evidence collected by Dr. Ecklund.
She found that the majority of American scientists she spoke to believed in God.
She finds that most of what we believe about the faith lives of elite scientists is wrong. Nearly 50 percent of them are religious.