Skip to content

Commit 6ae1434

Browse files
author
ledoux
committed
Vendredi
1 parent da5cd4c commit 6ae1434

File tree

40 files changed

+835
-4702
lines changed

40 files changed

+835
-4702
lines changed

Pythonlogy/MANIFEST

Lines changed: 0 additions & 2145 deletions
This file was deleted.

Pythonlogy/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
global-include *
1+
global-include *
22
prune draft
33
global-exclude *.pyc *.ipynb *.html *.hdf5 *.0 *.ns *.lock *copy.py *.DS_Store *.so

Pythonlogy/ShareYourSystem/Standards/Itemizers/Commander/__init__.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def do_command(self):
7979
]
8080
)
8181
'''
82-
82+
8383
#Check
8484
if type(self.CommandingGetVariable)!=list:
8585

@@ -118,13 +118,15 @@ def do_command(self):
118118
CommandedValueVariablesList=SYS.filterNone(CommandedValueVariablesList)
119119

120120
#debug
121+
'''
121122
self.debug(
122123
[
123124
'in the end, CommandedValueVariablesList is ',
124125
SYS._str(CommandedValueVariablesList)
125126
]
126127
)
127-
128+
'''
129+
128130
#/###################/#
129131
# Check if we have to walk before
130132
#
@@ -500,7 +502,18 @@ def mimic_set(self):
500502
#stop the setting
501503
return {'HookingIsBool':False}
502504

503-
#Call the base method
504-
BaseClass.set(self)
505+
#debug
506+
'''
507+
self.debug(
508+
[
509+
'Call the base set method',
510+
'BaseClass is '+str(BaseClass),
511+
('self.',self,['SettingKeyVariable'])
512+
]
513+
)
514+
'''
515+
516+
#Call the base method
517+
BaseClass.set(self)
505518

506519
#</DefineClass>

Pythonlogy/ShareYourSystem/Standards/Itemizers/Executer/__init__.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,27 @@ def mimic_get(self):
112112
ExecutionDotStr
113113
)
114114

115+
#debug
116+
'''
117+
self.debug(
118+
[
119+
'GetKeyStr is '+GetKeyStr,
120+
'AttributeStr is '+AttributeStr,
121+
'self is '+SYS._str(self)
122+
]
123+
)
124+
'''
125+
115126
#get
116127
GetValueVariable=self[GetKeyStr]
117128

129+
#debug
130+
self.debug(
131+
[
132+
'GetValueVariable is '+SYS._str(GetValueVariable)
133+
]
134+
)
135+
118136
#get the get
119137
AttributeValueVariable=getattr(
120138
GetValueVariable,
@@ -201,6 +219,14 @@ def mimic_set(self):
201219
ExecutionDotStr
202220
)
203221

222+
#debug
223+
self.debug(
224+
[
225+
'GetKeyStr is '+GetKeyStr,
226+
'AttributeStr is '+AttributeStr
227+
]
228+
)
229+
204230
#get
205231
GetValueVariable=self[GetKeyStr]
206232

Pythonlogy/ShareYourSystem/Standards/Itemizers/Getter/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,16 @@ def do_get(self):
233233
#Get safely the Value
234234
elif self.GettingKeyVariable in self.__dict__:
235235

236+
#debug
237+
'''
238+
self.debug(
239+
[
240+
'self.GettingKeyVariable exists in the __dict__',
241+
self.GettingKeyVariable
242+
]
243+
)
244+
'''
245+
236246
#__getitem__ in the __dict__
237247
self.GettedValueVariable=self.__dict__[
238248
self.GettingKeyVariable

Pythonlogy/ShareYourSystem/Standards/Itemizers/Pather/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,21 @@ def mimic_set(self):
323323
PathPrefixStr
324324
):
325325

326+
#deprefix
327+
SetKeyVariable=SYS.deprefix(self.SettingKeyVariable,PathPrefixStr)
328+
329+
#Check
330+
if PathPrefixStr not in SetKeyVariable:
331+
332+
#set
333+
self.set(
334+
SetKeyVariable,
335+
self.SettingValueVariable
336+
)
337+
338+
#stop the set
339+
return {'HookingIsBool':False}
340+
326341
#debug
327342
'''
328343
self.debug('We are going to path')

Pythonlogy/ShareYourSystem/Standards/Itemizers/Pointer/__init__.py

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,28 @@ def do_point(self):
6565
#
6666

6767
#debug
68+
'''
6869
self.debug(
6970
('self.',self,[
7071
'PointingToGetVariable',
7172
'PointingToSetKeyVariable'
7273
])
7374
)
74-
75+
'''
76+
7577
#get
7678
PointedToGetValueVariable=self[
7779
self.PointingToGetVariable
7880
]
7981

8082
#debug
83+
'''
8184
self.debug(
8285
'PointedToGetValueVariable is '+str(
8386
PointedToGetValueVariable
8487
)
8588
)
89+
'''
8690

8791
#/####################/#
8892
# Check for the SetKeyVariable
@@ -97,18 +101,22 @@ def do_point(self):
97101
PointedToSetKeyVariable=self.PointingToSetKeyVariable
98102

99103
#debug
104+
'''
100105
self.debug(
101106
'PointedToSetKeyVariable is '+SYS._str(
102107
PointedToSetKeyVariable
103108
)
104109
)
110+
'''
105111

106112
#Check
107113
if type(PointedToSetKeyVariable)==str and PointedToSetKeyVariable.startswith(
108114
Pather.PathPrefixStr)==False:
109115

110116
#debug
117+
'''
111118
self.debug('It is a direct path')
119+
'''
112120

113121
#set
114122
self.set(
@@ -119,7 +127,9 @@ def do_point(self):
119127
else:
120128

121129
#debug
130+
'''
122131
self.debug('It is an encapsulate path')
132+
'''
123133

124134
#previous
125135
PointedPreviousSetKeyStr,PointedKeyStr=SYS.previous(
@@ -195,20 +205,24 @@ def do_point(self):
195205
if self.PointingBackBool:
196206

197207
#debug
208+
'''
198209
self.debug(
199210
[
200211
'We point back',
201212
('self.',self,['PointingBackSetKeyVariable'])
202213
]
203214
)
215+
'''
204216

205217
#Check
206218
if self.PointingBackSetKeyVariable==None:
207219

208220
#debug
221+
'''
209222
self.debug(
210223
'PointedToSetKeyVariable is '+str(PointedToSetKeyVariable)
211224
)
225+
'''
212226

213227
#/###################/#
214228
# Case where the PointedToSetKeyVariable is derived from a pathsetstr
@@ -245,6 +259,7 @@ def do_point(self):
245259
PointedBackSetKeyVariable=self.PointingBackSetKeyVariable
246260

247261
#debug
262+
'''
248263
self.debug(
249264
[
250265
'we set the back',
@@ -256,6 +271,7 @@ def do_point(self):
256271
)
257272
]
258273
)
274+
'''
259275

260276
#set
261277
PointedToGetValueVariable.point(
@@ -312,9 +328,11 @@ def mimic_get(self):
312328
):
313329

314330
#debug
331+
'''
315332
self.debug(
316333
'we back point here'
317334
)
335+
'''
318336

319337
#point
320338
self.point(
@@ -438,6 +456,17 @@ def mimic_set(self):
438456
return {'HookingIsBool':False}
439457
'''
440458

459+
#debug
460+
'''
461+
self.debug(
462+
[
463+
'Call the base set method',
464+
'BaseClass is '+str(BaseClass),
465+
('self.',self,['SettingKeyVariable'])
466+
]
467+
)
468+
'''
469+
441470
#call the base method
442471
return BaseClass.set(self)
443472

Pythonlogy/ShareYourSystem/Standards/Teamers/Manager/__init__.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def do_manage(self):
136136
) or SYS.getIsTuplesListBool(self.ManagedValueVariable):
137137

138138
#init
139-
self.ManagedValueVariable=SYS.TeamerClass(
139+
self.ManagedValueVariable=self.ManagingValueClass(
140140
)['map*set'](
141141
self.ManagedValueVariable
142142
)
@@ -250,11 +250,21 @@ def mimic_set(self):
250250
)
251251

252252
#Stop the setting
253-
OutputDict["HookingIsBool"]=False
253+
return {'HookingIsBool':False}
254254

255-
#Call the manage get method
256-
if OutputDict['HookingIsBool']:
257-
return BaseClass.set(self)
255+
#debug
256+
'''
257+
self.debug(
258+
[
259+
'Call the base set method',
260+
'BaseClass is '+str(BaseClass),
261+
('self.',self,['SettingKeyVariable'])
262+
]
263+
)
264+
'''
265+
266+
#return
267+
return BaseClass.set(self)
258268

259269
#</DefineClass>
260270

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
<!---
3+
FrozenIsBool True
4+
-->
5+
6+
##Example
7+
8+
With a parent structure we can make the top as a recruiter of things during a walk command
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
#ImportModules
3+
import ShareYourSystem as SYS
4+
5+
#define and get two children
6+
MyParenter=SYS.ParenterClass(
7+
).get(
8+
'NeuronsList'
9+
).array(
10+
[
11+
['&Layers'],
12+
['$First','$Second'],
13+
['&Neurons'],
14+
['$E','$I']
15+
]
16+
).command(
17+
'&$',
18+
{
19+
'parent':[],
20+
'/Top/NeuronsList.append':{
21+
'#set':[">>self"],
22+
'#if':[
23+
('/^/ParentKeyStr',SYS.operator.eq,"Neurons")
24+
]
25+
}
26+
},
27+
_AfterWalkBool=True
28+
)
29+
30+
#print
31+
print('MyParenter.NeuronsList is ')
32+
SYS._print(MyParenter.NeuronsList)
33+

0 commit comments

Comments
 (0)