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
65006aec
Commit
65006aec
authored
Dec 20, 2023
by
dasharatha.vamshi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'final_pipeline_tested'
added models for fy676a and fy664g See merge request
!2
parents
0bde5356
e725f40a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app.py
app.py
+2
-1
scripts/section_utils/material_section.py
scripts/section_utils/material_section.py
+1
-2
No files found.
app.py
View file @
65006aec
...
...
@@ -200,7 +200,8 @@ def start_prediction(raw_path, viscosity_path, index_no, raw_skip_rows, viscosit
logger
.
info
(
f
"Shape of raw df is {df.shape}"
)
logger
.
info
(
"Starting preprocessing material section"
)
viscosity_df
,
raw_viscosity_df
=
preprocess_viscosity_section
(
viscosity_path
,
index_no
,
viscosity_skip_rows
)
visc_df
=
pd
.
read_excel
(
viscosity_path
,
skiprows
=
viscosity_skip_rows
)
viscosity_df
,
raw_viscosity_df
=
preprocess_viscosity_section
(
visc_df
,
index_no
)
# viscosity_df.to_csv('viscosity-agg.csv')
logger
.
info
(
f
"The shape of the viscosity df is {viscosity_df.shape}"
)
logger
.
info
(
"Completed material section preprocessing"
)
...
...
scripts/section_utils/material_section.py
View file @
65006aec
...
...
@@ -6,8 +6,7 @@ from scripts.constants.constants import ViscosityConstants
warnings
.
filterwarnings
(
"ignore"
)
def
preprocess_viscosity_section
(
path
,
index_number
,
viscosity_skip_rows
):
viscosity_df
=
pd
.
read_excel
(
path
,
skiprows
=
viscosity_skip_rows
)
def
preprocess_viscosity_section
(
viscosity_df
,
index_number
):
# adding date col to the viscosity df
viscosity_df
=
viscosity_df
.
sort_values
(
by
=
'Mixing date'
)
raw_viscosity_df
=
viscosity_df
.
sort_values
(
by
=
'Mixing date'
)
...
...
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