Skip to main content

Reading the results

The results are stored in the results folder. The subfolder with the results of an specific simulation will have the date and time of the moment when it was launched as a name in %Y-%m-%d_%H-%M-%S format.

For each simulation there are four files that are saved: user_trips.csv, bike_trips.csv, config.json and app.log.

User trips#

The structure of the user_trips.csv file can be found in the UserTrip.py under the folder src. The format is the same for the three types of system SB= Station-based, DL= Dockless, AUT= Autonomous. This output file contains the following colums:

ParameterDescriptionType of system
user_idThe id of the user who made the tripSB, DL, AUT
statusThe user finished the tip (finished), there were no bikes in a walkable distance (no_bikes), there was no walkable station at the beginning of the trip (not_walkable_stations), there was no end station walkable or not walkable(no_end_station)SB
bike_idThe id of the bike used for that tripSB, DL, AUT
mode0=Station-based, 1=Dockless, 2= AutonomousSB, DL, AUT
time_departureElapsed time at the beginning of the trip [s]SB, DL, AUT
time_targetElapsed time at arrival [s]SB, DL, AUT
time_walk_originDuration of the walk from the departure point to the bike/station [s]SB, DL
time_rideDuration of the bike ride [s]SB, DL, AUT
time_waitDuration of the wait time at the beginning of the trip [s]AUT
time_walk_destinationDuration of the walk at the end of the trip from the station to the destination [s]SB
origin_lonLongitude of the departure pointSB, DL, AUT
origin_latLatitude of the departure pointSB, DL, AUT
destination_lonLongitude of the destination pointSB, DL, AUT
destination_latLatitude of the destination pointSB, DL, AUT
origin_visited_stationsList of the ids of the stations visited until finding an available bikeSB
destination_visited_stationsList of the ids of the stations visited until finding an available dockSB
origin_stationThe id of the station where the user got the bikeSB
destination_stationThe id of the station where the user left the bikeSB
instant_bikeIndicates if the used bike was an instantaneously rebalanced bike (1) or not (0)SB, AUT
instant_dockIndicates if the used dock was liberated by an instantaneously rebalanced bike (1) or not (0)SB
bike_lonLongitude of the location of the bike chosen for the tripDL, AUT
bike_latLatitude of the location of the bike chosen for the tripDL, AUT

Bike trips#

The structure of the bike_trips.csv file can be found in the BikeTrip.py under the folder src. The format is the same for the three types of system SB= Station-based, DL= Dockless, AUT= Autonomous. This output file contains the following columns:

ParameterDescriptionType of system
bike_idThe id of the bike that made the tripSB, DL, AUT
user_idThe id of the user who made the tripSB, DL, AUT
mode0=Station-based, 1=Dockless, 2= AutonomousSB, DL, AUT
trip_type1=User drive, 2=Charge trip, 3=Rebalancing tripAUT
time_departureElapsed time at the beginning of the trip [s]SB, DL, AUT
time_rideDuration of the bike ride [s]SB, DL, AUT
time_chargeDuration of the bike charging process [s]AUT
instant_bikeIndicates if the used bike was an instantaneously rebalanced bike (1) or not (0)SB, AUT
instant_dockIndicates if the used dock was liberated by an instantaneously rebalanced bike (1) or not (0)SB
origin_stationThe id of the station where the user got the bikeSB
destination_stationThe id of the station where the user left the bikeSB
origin_lonLongitude of the departure pointSB, DL, AUT
origin_latLatitude of the departure pointSB, DL, AUT
destination_lonLongitude of the destination pointSB, DL, AUT
destination_latLatitude of the destination pointSB, DL, AUT
battery_inBattery at the beginning of the trip/processAUT
battery_outBattery at the end of the trip/processAUT

Configuration#

The config.json file saves the parameters that were used when running this simulation

Logging#

The app.log file saves the log of the actions.

The logging can be activated and deactivated on the Results.py file, commenting out the self.setup_log() command.