-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More comprehensive excel and csv import, bringing in limits as part o…
…f the headers.
- Loading branch information
1 parent
f54b148
commit 060ed4a
Showing
7 changed files
with
65 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
index,value | ||
index,value (lsl=-2.5 usl=2.5) | ||
0,2.22733878 | ||
1,-0.59642503 | ||
2,0.38748058 | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import logging | ||
from manufacturing import import_csv, calc_cpk, show_cpk | ||
|
||
data = import_csv('example_data.csv', columnname='value') | ||
logging.basicConfig(level=logging.INFO) | ||
|
||
cpk = calc_cpk(data, upper_spec_limit=2.5, lower_spec_limit=-2.5) | ||
data = import_csv('example_data.csv', columnname='value (lsl=-2.5 usl=2.5)') | ||
|
||
cpk = calc_cpk(**data) | ||
print(f'cpk = {cpk:.3g}') | ||
|
||
show_cpk(data, upper_spec_limit=2.5, lower_spec_limit=-2.5) | ||
show_cpk(**data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from manufacturing import import_excel, calc_cpk, show_cpk | ||
|
||
data = import_excel('example_data.xlsx', columnname='value', skiprows=3) | ||
data = import_excel('example_data.xlsx', columnname='value (lsl=-2.5 usl=2.5)', skiprows=3) | ||
|
||
cpk = calc_cpk(data, upper_spec_limit=2.5, lower_spec_limit=-2.5) | ||
cpk = calc_cpk(**data) | ||
print(f'cpk = {cpk:.3g}') | ||
|
||
show_cpk(data, upper_spec_limit=2.5, lower_spec_limit=-2.5) | ||
show_cpk(**data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
__all__ = ['calc_cpk', 'show_cpk', | ||
'import_csv', 'import_excel'] | ||
|
||
__version__ = '0.2.0' | ||
__version__ = '0.3.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters