Rémy CLUZE пре 6 година
родитељ
комит
d3ac601898

+ 5 - 2
Src/Action.py

@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
 from define import *
 import os.path
 import ast
@@ -8,7 +10,7 @@ class Action():
 
 		self.add = ID.split(";")[1]
 		self.name = ID.split(";")[0]
-		self.path = "/home/remy/Projet/Valeurs/"
+		self.path = D_file + "valeurs/"
 
 		self.Journee = {}
 		
@@ -23,9 +25,10 @@ class Action():
 		self.Tab = [0]*NBNeurone
 
 		self.chaleur = 0
-		
+
 	def MajQuotidient(self,date):
 		name=self.path+self.name+"-"+date
+		print(name)
 		F_Journee = open(name,"r")
 		self.Journee = ast.literal_eval(F_Journee.readline())
 		Quoti = ast.literal_eval(F_Journee.readline())

+ 4 - 2
Src/RDN.py

@@ -1,6 +1,8 @@
+# -*- coding: utf-8 -*-
+
 from define import *
 import math
-import numpy
+#import numpy
 
 def mult(Addresse,Neuronne, poids):
 	res = Neuronne[Addresse[0]] * \
@@ -54,7 +56,7 @@ class RDN():
 		self.C4 = [0]*NBC4
 		self.C5 = [0]*NBC5
 		
-		path = D_file + str(ID) + "/"
+		path = D_file + str(self.ID) + "/"
 		
 		#changer les addresse des fichier des poids avec l'ID
 		F_add2=open(path + "Addresse2.pos","r")

BIN
Src/__pycache__/Action.cpython-38.pyc


BIN
Src/__pycache__/RDN.cpython-38.pyc


BIN
Src/__pycache__/define.cpython-38.pyc


BIN
Src/__pycache__/functionMain.cpython-38.pyc


+ 4 - 1
Src/define.py

@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
 initPortefeuille = 30000
 ValeursAchat = 2000
 
@@ -27,4 +29,5 @@ minute = [
 "17h00", "17h01", "17h02", "17h03", "17h04", "17h05", "17h06", "17h07", "17h08", "17h09", "17h10", "17h11", "17h12", "17h13","17h14", "17h15", "17h16", "17h17", "17h18", "17h19", "17h20", "17h21", "17h22", "17h23", "17h24", "17h25", "17h26", "17h27", "17h28", "17h29", "17h30"]
 
 
-D_file= "/home/remy/Projet/DonneBourse/" #dossier des files
+D_file= "C:/Users/rcluze/Documents/Perso/Projet/DonneBourse/" 
+#"/home/remy/Projet/DonneBourse/" #dossier des files

+ 2 - 0
Src/functionMain.py

@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
 import os.path
 import random
 from define import *

+ 3 - 1
Src/main.py

@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
 from functionMain import *
 from RDN import *
 from Action import *
@@ -6,7 +8,7 @@ Portefeuille = initPortefeuille
 FraisBancaire = 0
 
 print ("debut init  gererate")
-ID = 30#GenerateFile()
+ID = 31#GenerateFile()
 
 RDN=RDN(ID)
 

+ 9 - 0
Src/resume.txt

@@ -86,3 +86,12 @@
 30: null
 30: null
 30: null
+31: null
+31: null
+32: null
+31: null
+31: null
+31: null
+31: null
+31: null
+31: null