Hi Guys,
I tried this code from internet, Its returns following please
guide me to solve this error
--
*Warm Regards,*
*Palanikumar Gopalakrishnan *[image: ✌]
*Developer*
___
Tutor maillist - Tutor@python.org
To unsubscribe or change su
王学敏 wrote:
> Dear Python Users,
>
> Attachment is python code.
>
> The function of this code is that I want to insert lots of fiber into
> matrix, data is a list storing translate vector. When a fiber is
> translated to matrix, I used fiber to cut matrix. So the new part will be
> generated, I d
On 11/08/2014 22:28, 王学敏 wrote:
Dear Python Users,
Attachment is python code.
The function of this code is that I want to insert lots of fiber into
matrix, data is a list storing translate vector. When a fiber is
translated to matrix, I used fiber to cut matrix. So the new part will
be generate
On 11/08/14 22:28, 王学敏 wrote:
for i in range(len(data)):
instancename='Part'+str(i)+'-'+str(1)
partname='Part'+str(i+1)
pre_part='Part'+str(i)
mdb.models['Model-1'].rootAssembly.translate(instanceList=('fiber-1',
),vector=(data[i][0], data[i][1], 0.0))
Dear Python Users,
Attachment is python code.
The function of this code is that I want to insert lots of fiber into
matrix, data is a list storing translate vector. When a fiber is translated
to matrix, I used fiber to cut matrix. So the new part will be generated, I
delete the previous part and
Op 16-11-11 09:46, lina schreef:
On Wed, Nov 16, 2011 at 4:31 PM, Andre Engels wrote:
On Wed, Nov 16, 2011 at 9:21 AM, lina wrote:
it still complaining. I set the gedit, use space not tab,
Now I even typed space by space, avoid using tab, it still has the same
problem.
How can I fixed it?
T
On Wed, Nov 16, 2011 at 4:31 PM, Andre Engels wrote:
> On Wed, Nov 16, 2011 at 9:21 AM, lina wrote:
>>
>> it still complaining. I set the gedit, use space not tab,
>> Now I even typed space by space, avoid using tab, it still has the same
>> problem.
>>
>> How can I fixed it?
>
> The line
>
>
On Wed, Nov 16, 2011 at 9:21 AM, lina wrote:
> it still complaining. I set the gedit, use space not tab,
> Now I even typed space by space, avoid using tab, it still has the same
> problem.
>
> How can I fixed it?
>
The line
if list1[i][j] != list1[i][j+1]:
still contains a tab, th
On Wed, Nov 16, 2011 at 4:06 PM, Dario Lopez-Kästen wrote:
> The indentation is indeed off:
> Original code:
> def PlotPathway(list1):
> for i in range(len(list1)):
> for j in range(len(list1[i])-1):
> if list1[i][j] != list1[i][j+1]:
> g.add_edg
The indentation is indeed off:
Original code:
def PlotPathway(list1):
for i in range(len(list1)):
for j in range(len(list1[i])-1):
if list1[i][j] != list1[i][j+1]:
g.add_edge(list1[i][j], list1[i][j+1])
if list1[i][j]<=42:
Why it keeps on complaining:
$ python plot-pathway.py
File "plot-pathway.py", line 35
if list1[i][j]<=42:
^
IndentationError: unindent does not match any outer indentation level
def PlotPathway(list1):
for i in range(len(list1)):
for j in range(len(list1[i
11 matches
Mail list logo