Limit search to available items
Book Cover
E-book
Author Scopatz, Anthony, author

Title Effective computation in physics / Anthony Scopatz and Kathryn D. Huff
Edition First edition
Published Sebastopol, CA : O'Reilly Media, 2015

Copies

Description 1 online resource
Contents Copyright; Table of Contents; Foreword; Preface; What Is This Book?; Who This Book Is For; Who This Book Is Not For; Case Study on How to Use This Book: Radioactive Decay Constants; Accessing Data and Libraries; Creating a Simple Program; Automating Data Collection; Analyzing and Plotting the Data; Keeping Track of Changes; Testing the Code; Documenting the Code; Publishing; What to Do While Reading This Book; Conventions Used in This Book; Using Code Examples; Installation and Setup; Step 1: Download and Install Miniconda (or Anaconda); Step 2: Install the Packages; Safari® Books Online
How to Contact UsAcknowledgments; Part I. Getting Started; Chapter 1. Introduction to the Command Line; Navigating the Shell; The Shell Is a Programming Language; Paths and pwd; Home Directory ()̃; Listing the Contents (ls); Changing Directories (cd); File Inspection (head and tail); Manipulating Files and Directories; Creating Files (nano, emacs, vi, cat,>, and touch); Copying and Renaming Files (cp and mv); Making Directories (mkdir); Deleting Files and Directories (rm); Flags and Wildcards; Getting Help; Reading the Manual (man); Finding the Right Hammer (apropos)
String ConcatenationString Literals; String Methods; Modules; Importing Modules; Importing Variables from a Module; Aliasing Imports; Aliasing Variables on Import; Packages; The Standard Library and the Python Ecosystem; Python Wrap-up; Chapter 3. Essential Containers; Lists; Tuples; Sets; Dictionaries; Containers Wrap-up; Chapter 4. Flow Control and Logic; Conditionals; if-else Statements; if-elif-else Statements; if-else Expression; Exceptions; Raising Exceptions; Loops; while Loops; for Loops; Comprehensions; Flow Control and Logic Wrap-up; Chapter 5. Operating with Functions
Functions in PythonKeyword Arguments; Variable Number of Arguments; Multiple Return Values; Scope; Recursion; Lambdas; Generators; Decorators; Function Wrap-up; Chapter 6. Classes and Objects; Object Orientation; Objects; Classes; Class Variables; Instance Variables; Constructors; Methods; Static Methods; Duck Typing; Polymorphism; Decorators and Metaclasses; Object Orientation Wrap-up; Part II. Getting It Done; Chapter 7. Analysis and Visualization; Preparing Data; Experimental Data; Simulation Data; Metadata; Loading Data; NumPy; PyTables; Pandas; Blaze; Cleaning and Munging Data
Summary 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: 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
Notes "Field guide to research with Python"--Cover
Bibliography Includes bibliographical references and index
Notes Copyright © O'Reilly Media, Inc
Vendor-supplied metadata
Subject Physics -- Research -- Data processing
Physical sciences -- Data processing
Python (Computer program language)
SCIENCE -- Energy.
SCIENCE -- Mechanics -- General.
SCIENCE -- Physics -- General.
Physical sciences -- Data processing
Physics -- Research -- Data processing
Python (Computer program language)
Form Electronic book
Author Huff, Kathryn D., author
LC no. 2015458840
ISBN 9781491901595
1491901594
9781491901588
1491901586
1491901535
9781491901533
9781491901564
149190156X