Skip to content

Commit

Permalink
fix: correção para o Python
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinanHS committed Dec 13, 2024
1 parent 6dbe701 commit 196dfdc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/python/src/delivery_ag/ag.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from random import random

import individuo
from src.delivery_ag.individuo import Individuo


class AlgoritmoGenetico:
Expand Down Expand Up @@ -57,7 +57,7 @@ def inicializa_populacao(
"""
for _ in range(self.tamanho_populacao):
self.populacao.append(
individuo.Individuo(
Individuo(
cidades,
rotas,
caminho,
Expand Down
6 changes: 3 additions & 3 deletions src/python/src/delivery_ag/exemplo_aleatorio.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from random import random

from cidade import Cidade
from ag import AlgoritmoGenetico
from view import Estatistica
from src.delivery_ag.cidade import Cidade
from src.delivery_ag.ag import AlgoritmoGenetico
from src.delivery_ag.view import Estatistica


def gerar_cidades(numero_cidades: int = 10):
Expand Down
6 changes: 3 additions & 3 deletions src/python/src/delivery_ag/exemplo_simples.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from cidade import Cidade
from ag import AlgoritmoGenetico
from view import Estatistica
from src.delivery_ag.cidade import Cidade
from src.delivery_ag.ag import AlgoritmoGenetico
from src.delivery_ag.view import Estatistica

cidades = [
Cidade("X"),
Expand Down
6 changes: 3 additions & 3 deletions src/python/src/delivery_ag/view.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os

import matplotlib.pyplot as plt
import networkx as nx
from PIL import Image
import matplotlib.pyplot as plt
import networkx as nx
from PIL import Image


class Estatistica:
Expand Down

0 comments on commit 196dfdc

Please sign in to comment.