Skip to content

Commit 16c4c14

Browse files
committed
Remove redundant example code
1 parent d406208 commit 16c4c14

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

defensive_style.md

-17
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,3 @@ could be misused mischievously or inadvertently to catastrophic effect.
2424
- Asserts
2525
- Logging
2626
- Unit tests
27-
28-
--------------------------------------------------
29-
30-
# Example
31-
32-
!python
33-
def normalize_ranges(original_data_range):
34-
colspan = button_state['datamax'] - button_state['datamin']
35-
36-
# 1-D numpy array of data
37-
live_data = get_column_data(button_state['colname'])
38-
39-
ratio = {}
40-
ratio['min'] = button_state['datamin'] / colspan
41-
ratio['max'] = button_state['datamax'] / colspan
42-
43-
return ratio

0 commit comments

Comments
 (0)