Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
0dd0c506
Commit
0dd0c506
authored
Mar 24, 2015
by
panos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Script added to extract the data from the workplan and input it in the database
parent
1abbe737
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
dream/KnowledgeExtraction/PilotCases/CapacityStations/WorkplanExtraction.py
...raction/PilotCases/CapacityStations/WorkplanExtraction.py
+4
-1
No files found.
dream/KnowledgeExtraction/PilotCases/CapacityStations/WorkplanExtraction.py
View file @
0dd0c506
...
@@ -54,7 +54,10 @@ def dataExtraction(File):
...
@@ -54,7 +54,10 @@ def dataExtraction(File):
partType
=
sheet
.
cell
(
i
,
7
).
value
partType
=
sheet
.
cell
(
i
,
7
).
value
operation
=
sheet
.
cell
(
i
,
8
).
value
operation
=
sheet
.
cell
(
i
,
8
).
value
capacityRequired
=
sheet
.
cell
(
i
,
9
).
value
capacityRequired
=
sheet
.
cell
(
i
,
9
).
value
if
sheet
.
cell
(
i
,
10
).
value
:
earliestStart
=
datetime
.
datetime
.
utcfromtimestamp
((
sheet
.
cell
(
i
,
10
).
value
-
25569
)
*
86400.0
)
earliestStart
=
datetime
.
datetime
.
utcfromtimestamp
((
sheet
.
cell
(
i
,
10
).
value
-
25569
)
*
86400.0
)
else
:
earliestStart
=
None
workplan
[
orderId
][
wpId
]
=
[]
workplan
[
orderId
][
wpId
]
=
[]
workplan
[
orderId
][
wpId
].
insert
(
0
,
partId
)
workplan
[
orderId
][
wpId
].
insert
(
0
,
partId
)
...
...
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