Skip to content
Snippets Groups Projects
Commit 575b5982 authored by Nour's avatar Nour
Browse files

Added Simpy_tutorail folder

parent e526483c
No related branches found
No related tags found
No related merge requests found
File moved
File added
File added
File added
File added
File moved
......@@ -24,7 +24,7 @@ def add_end_event(process, event_id, end_timestamp):
# add functions for adding events with their attributes to the log
def export_to_csv(process, file_path):
event_log_df = pd.DataFrame(process.event_log)
event_log_df = pd.DataFrame.from_dict(process.event_log)
event_log_df.to_csv(file_path, index=False)
def export_to_xes(process, file_path):
......
......@@ -250,8 +250,8 @@ def main():
print(state['event'])
print(business_env.flatten_observation(state))
rl.q_learning(space, activities)
eventlog.export_to_csv(business_env.process, r'D:\test')
path = r"C:\Users\nourm\OneDrive\Desktop\Nour\optis_app\out.csv"
eventlog.export_to_csv(business_env.process, path)
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment