This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make sure that pip is installed : | |
to install pip globaly not in a virtual environment do this | |
**step 1: download pip** | |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | |
step 2 : install it with sudo : | |
**sudo python get-pip.py** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def optimal_markings(input_graph): | |
""" | |
The following function will return the most optimal marking for an input graph. | |
To do it, we will try all possibles markings, and check if they are valid markings by using the previous function. | |
Once all valid markings are found, | |
we need to sort them according to the number of the element it required to achieve a full marking. | |
The most optimal markings are the markings with the lowest number of players. | |
""" | |
results_counts = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en" > | |
<style type="text/css"> | |
.progress { | |
width: 100%; | |
height: 20px; | |
} | |
.progress-wrap { | |
background: #00a651; | |
margin: 20px 0; | |
overflow: hidden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################### INPUT FILES ############# | |
Tk().withdraw() | |
files = tkFileDialog.askopenfilenames() | |
lst = list(files) | |
dataframe = pd.DataFrame() | |
for FileName in lst: | |
df = pd.read_excel(str(FileName)) | |
#add this to remove white spaces in the Vehicle columns |
NewerOlder