Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
batch-analytics
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
aakash.bedi
batch-analytics
Commits
ab3c8127
Commit
ab3c8127
authored
Jan 27, 2023
by
aakash.bedi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure postgres
parent
4399ec5c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
3 deletions
+5
-3
config.env
config.env
+1
-1
data/t_batch_information_master.xlsx
data/t_batch_information_master.xlsx
+0
-0
data/t_batch_kpi_master.xlsx
data/t_batch_kpi_master.xlsx
+0
-0
data/t_batch_master.xlsx
data/t_batch_master.xlsx
+0
-0
data/t_batch_material_master.xlsx
data/t_batch_material_master.xlsx
+0
-0
scripts/core/master_tables/batch_master_table.py
scripts/core/master_tables/batch_master_table.py
+4
-2
No files found.
config.env
View file @
ab3c8127
...
...
@@ -6,4 +6,4 @@ DEFAULT_TZ="UTC"
REQUIRED_TZ="Asia/Kolkata"
START_RELATIVE=90
END_RELATIVE=0
POSTGRES_URI=postgresql://ilens
:iLens$456@192.168.0.207:5455
/ilens_ai
POSTGRES_URI=postgresql://ilens
read:UnifyTwin#098@192.168.0.207:5433
/ilens_ai
data/t_batch_information_master.xlsx
View file @
ab3c8127
No preview for this file type
data/t_batch_kpi_master.xlsx
View file @
ab3c8127
No preview for this file type
data/t_batch_master.xlsx
View file @
ab3c8127
No preview for this file type
data/t_batch_material_master.xlsx
View file @
ab3c8127
No preview for this file type
scripts/core/master_tables/batch_master_table.py
View file @
ab3c8127
...
...
@@ -27,6 +27,7 @@ class BatchMaster:
df
[
'batch_product'
]
=
batch_product
df
[
'ideal_batch_cycle_time_hr'
]
=
ideal_batch_cycle_time_hr
df
[
'batch_cycle_time'
]
=
df
[
'batch_end_time'
]
-
df
[
'batch_start_time'
]
df
[
'batch_cycle_time_hours'
]
=
df
[
'batch_cycle_time'
]
.
dt
.
total_seconds
()
//
3600
df
[
'batch_cycle_time_minutes'
]
=
df
[
'batch_cycle_time'
]
.
dt
.
total_seconds
()
//
60
df
[
'batch_setup_time_hr'
]
=
batch_setup_time_hr
df
[
'selected_equipments'
]
=
df
[
'used_equipment'
]
...
...
@@ -39,8 +40,9 @@ class BatchMaster:
df
=
df
[[
'batch_no'
,
'final_product'
,
'batch_product'
,
'process_stage_name'
,
'process_stage_id'
,
'work_order_no'
,
'work_order_item_no'
,
'ideal_batch_cycle_time_hr'
,
'batch_start_time'
,
'batch_end_time'
,
'live_batch_end_time'
,
'batch_cycle_time'
,
'batch_cycle_time_minutes'
,
'batch_setup_time_hr'
,
'downtime'
,
'selected_equipments'
,
'created_on'
,
'created_by'
,
'batch_end_time'
,
'live_batch_end_time'
,
'batch_cycle_time'
,
'batch_cycle_time_hours'
,
'batch_cycle_time_minutes'
,
'batch_setup_time_hr'
,
'downtime'
,
'selected_equipments'
,
'created_on'
,
'created_by'
,
'last_updated_on'
,
'last_updated_by'
,
'golden_batch'
]]
df
.
reset_index
(
drop
=
True
,
inplace
=
True
)
return
df
...
...
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