Effective Computation in Physics (Python).pdf

(8698 KB) Pobierz
Effective
Computation
in Physics
FIELD GUIDE TO RESEARCH
WITH PYTHON
Anthony Scopatz &
Kathryn D. Huff
Effective Computation in Physics
More physicists today are taking on the role of software developer as
part of their research, but software development isn’t always easy or
obvious, even for physicists. This practical book teaches essential software
development skills to help you automate and accomplish nearly any aspect
of research in a physics-based field.
Written by two PhDs in nuclear engineering, this book includes practical
examples drawn from a working knowledge of physics concepts. You’ll
learn how to use the Python programming language to perform everything
from collecting and analyzing data to building software and publishing
your results.
In four parts, this book includes:
This is the book I wish
had existed when I
was a physics graduate
student. Now that
computing has become
central to virtually all
scientific research, it
should be essential
reading for scientists
from many disciplines:
practical, hands-on
knowledge that will help
with all stages of the
research cycle.
Staff Scientist,
Lawrence Berkeley National Laboratory
Getting Started:
Jump into Python, the command line, data
containers, functions, flow control and logic, and classes
and objects
Getting It Done:
Learn about regular expressions, analysis
and visualization, NumPy, storing data in files and HDF5,
important data structures in physics, computing in parallel,
and deploying software
Getting It Right:
Build pipelines and software, learn to use
local and remote version control, and debug and test your code
Getting It Out There:
Document your code, process and
publish your findings, and collaborate efficiently; dive into
software licenses, ownership, and copyright procedures
—Fernando Perez
Kathryn Huff
is a fellow with the Berkeley Institute for Data Science and a
postdoctoral scholar with the Nuclear Science and Security Consortium at the
University of California Berkeley. She received her Ph.D. in Nuclear Engineering
from the University of Wisconsin-Madison.
Anthony Scopatz,
a computational physicist and longtime Python developer,
holds a Ph.D. in Mechanical/Nuclear Engineering from the University of Texas at
Austin. In August 2015, he'll start as a professor in Mechanical Engineering at the
University of South Carolina.
SCIENCE/PROGR AMMING
Twitter: @oreillymedia
facebook.com/oreilly
US $49.99
CAN $57.99
ISBN: 978-1-491-90153-3
Effective Computation in Physics
Anthony Scopatz and Kathryn D. Huff
Boston
Effective Computation in Physics
by Anthony Scopatz and Kathryn D. Huff
Copyright © 2015 Anthony Scopatz and Kathryn D. Huff. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://safaribooksonline.com). For more information, contact our corporate/
institutional sales department: 800-998-9938 or
corporate@oreilly.com.
Editor:
Meghan Blanchette
Production Editor:
Nicole Shelby
Copyeditor:
Rachel Head
Proofreader:
Rachel Monaghan
June 2015:
First Edition
Indexer:
Judy McConville
Interior Designer:
David Futato
Cover Designer:
Ellie Volckhausen
Illustrator:
Rebecca Demarest
Revision History for the First Edition
2015-06-09:
First Release
See
http://oreilly.com/catalog/errata.csp?isbn=9781491901533
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Effective Computation in Physics,
the
cover image, and related trade dress are trademarks of O’Reilly Media, Inc.
While the publisher and the authors have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the authors disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
978-1-491-90153-3
[LSI]
To THW and friends: gonuke, animal1, kmo, redbeard, spidr, slayer, nicopresto,
wolfman, blackbeard, johnnyb, jdangerx, punkish, radio, crbates, 3rdbit, fastmath, and
others, this one is for you.
Zgłoś jeśli naruszono regulamin