Presentation is loading. Please wait.

Presentation is loading. Please wait.

Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center 13-Mar-2007 A Python Tutorial Part 2 Kurt Schwehr 13 Mar 2007.

Similar presentations


Presentation on theme: "Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center 13-Mar-2007 A Python Tutorial Part 2 Kurt Schwehr 13 Mar 2007."— Presentation transcript:

1 Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center 13-Mar-2007 A Python Tutorial Part 2 Kurt Schwehr 13 Mar 2007

2 Remember ipython? Then start it up!

3 Exploring functions

4

5

6

7

8

9 five

10 Return values

11 Documentation can help prevent tangles

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26 Command line args Tell ‘em what to do!

27 Simplest command line parser does nothing

28

29

30

31

32 Testing

33 doctests

34

35

36

37 Not everything is testable with doctest

38 First we need to introduce classes

39

40

41

42

43 Now we are ready for unit testing

44

45

46 Two example data loggers http://vislab-ccom.unh.edu/~schwehr/ais/waterlevel/downloads

47

48

49 That’s it for now


Download ppt "Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center 13-Mar-2007 A Python Tutorial Part 2 Kurt Schwehr 13 Mar 2007."

Similar presentations


Ads by Google