Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bsj-models-for-rubbers
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dasharatha.vamshi
bsj-models-for-rubbers
Commits
5d708a91
Commit
5d708a91
authored
Dec 21, 2023
by
dasharatha.vamshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added main
parent
1057b00c
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2024 additions
and
13 deletions
+2024
-13
app.py
app.py
+19
-13
main.py
main.py
+2005
-0
No files found.
app.py
View file @
5d708a91
import
warnings
import
sys
import
numpy
as
np
import
pandas
as
pd
from
loguru
import
logger
...
...
@@ -253,18 +253,24 @@ def start_prediction(raw_path, viscosity_path, index_no, raw_skip_rows, viscosit
if
__name__
==
"__main__"
:
try
:
logger
.
info
(
"Starting the model"
)
index_number
=
1250
raw_file_path
=
'FY676-A-WO_Visc.xlsx'
raw_file_skip_rows
=
0
viscosity_file_path
=
'viscosity_natural_rubber_data.xlsx'
viscosity_file_skip_rows
=
3
start_prediction
(
raw_file_path
,
viscosity_file_path
,
index_number
,
raw_file_skip_rows
,
viscosity_file_skip_rows
)
index_number
=
3294
raw_file_path
=
'fy664g_raw.csv'
raw_file_skip_rows
=
0
viscosity_file_path
=
'fy664g-viscosity.xlsx'
viscosity_file_skip_rows
=
2
# logger.info("Starting the model")
# index_number = 1250
# raw_file_path = 'FY676-A-WO_Visc.xlsx'
# raw_file_skip_rows = 0
# viscosity_file_path = 'viscosity_natural_rubber_data.xlsx'
# viscosity_file_skip_rows = 3
# start_prediction(raw_file_path, viscosity_file_path, index_number, raw_file_skip_rows, viscosity_file_skip_rows)
# index_number = 3294
# raw_file_path = 'fy664g_raw.csv'
# raw_file_skip_rows = 0
# viscosity_file_path = 'fy664g-viscosity.xlsx'
# viscosity_file_skip_rows = 2
# start_prediction(raw_file_path, viscosity_file_path, index_number, raw_file_skip_rows, viscosity_file_skip_rows)
raw_file_path
=
sys
.
argv
[
sys
.
argv
.
index
(
'-r'
)
+
1
]
viscosity_file_path
=
sys
.
argv
[
sys
.
argv
.
index
(
'-v'
)
+
1
]
raw_file_skip_rows
=
int
(
sys
.
argv
[
sys
.
argv
.
index
(
'-sr'
)
+
1
])
viscosity_file_skip_rows
=
int
(
sys
.
argv
[
sys
.
argv
.
index
(
'-sv'
)
+
1
])
index_number
=
int
(
sys
.
argv
[
sys
.
argv
.
index
(
'-index'
)
+
1
])
start_prediction
(
raw_file_path
,
viscosity_file_path
,
index_number
,
raw_file_skip_rows
,
viscosity_file_skip_rows
)
except
Exception
as
e
:
logger
.
exception
(
f
"Module failed because of error {e}"
)
main.py
0 → 100644
View file @
5d708a91
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment