Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing full_fact function and docs updated #23

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Let's say you have a design problem with the following table for the parameters
Pressure | Temperature | FlowRate | Time
------------ | ------------- | -------------|-----------------
40 | 290 | 0.2 | 5
50 | 320 | 0.3 | 8
55 | 320 | 0.4 | 8
70 | 350 | - | -

First, import `build` module from the package,
Expand All @@ -71,15 +71,15 @@ If you build a full-factorial DOE out of this, you should get a table with 3x3x2
Pressure | Temperature | FlowRate | Time
------------ | ------------- | -------------|-----------------
40 | 290 | 0.2 | 5
50 | 290 | 0.2 | 5
55 | 290 | 0.2 | 5
70 | 290 | 0.2 | 5
40 | 320 | 0.2 | 5
... | ... | ... | ...
...| ... | ... | ...
40 | 290 | 0.3 | 8
50 | 290 | 0.3 | 8
70 | 290 | 0.3 | 8
40 | 320 | 0.3 | 8
40 | 290 | 0.4 | 8
55 | 290 | 0.4 | 8
70 | 290 | 0.4 | 8
40 | 320 | 0.4 | 8
... | ... | ... | ...
...| ... | ... | ...

Expand Down
12 changes: 6 additions & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Let's say you have a design problem with the following table for the parameters
Pressure | Temperature | FlowRate | Time
------------ | ------------- | -------------|-----------------
40 | 290 | 0.2 | 5
50 | 320 | 0.3 | 8
55 | 320 | 0.4 | 8
70 | 350 | - | -

First, import `build` module from the package,
Expand All @@ -104,15 +104,15 @@ If you build a full-factorial DOE out of this, you should get a table with 3x3x2
Pressure | Temperature | FlowRate | Time
------------ | ------------- | -------------|-----------------
40 | 290 | 0.2 | 5
50 | 290 | 0.2 | 5
55 | 290 | 0.2 | 5
70 | 290 | 0.2 | 5
40 | 320 | 0.2 | 5
... | ... | ... | ...
...| ... | ... | ...
40 | 290 | 0.3 | 8
50 | 290 | 0.3 | 8
70 | 290 | 0.3 | 8
40 | 320 | 0.3 | 8
40 | 290 | 0.4 | 8
55 | 290 | 0.4 | 8
70 | 290 | 0.4 | 8
40 | 320 | 0.4 | 8
... | ... | ... | ...
...| ... | ... | ...

Expand Down
12 changes: 6 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ levels of ``Temperature``, 2 levels of ``FlowRate``, and 2 levels of
Pressure Temperature FlowRate Time
======== =========== ======== ====
40 290 0.2 5
50 320 0.3 8
55 320 0.4 8
70 350 - -
======== =========== ======== ====

Expand Down Expand Up @@ -104,15 +104,15 @@ with 3x3x2x2 = 36 entries.
Pressure Temperature FlowRate Time
======== =========== ======== ====
40 290 0.2 5
50 290 0.2 5
55 290 0.2 5
70 290 0.2 5
40 320 0.2 5
… … … …
… … … …
40 290 0.3 8
50 290 0.3 8
70 290 0.3 8
40 320 0.3 8
40 290 0.4 8
55 290 0.4 8
70 290 0.4 8
40 320 0.4 8
… … … …
… … … …
======== =========== ======== ====
Expand Down
2 changes: 1 addition & 1 deletion doepy/doe_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def construct_df(x, r):
df = pd.DataFrame(data=x, dtype="float32")
for i in df.index:
for j in range(len(list(df.iloc[i]))):
df.iloc[i][j] = r[j][int(df.iloc[i][j])]
df.iat[i, j] = r[j][int(df.iat[i, j])]
return df


Expand Down