bugpyFormex - Bugs: bug #36858, export formatted data to Abaqus...

 
 

bug #36858: export formatted data to Abaqus (.inp)

Submitted by:  gianluca de santis <gianlucadesi>
Submitted on:  Tue 17 Jul 2012 10:17:58 AM UTC  
 
Category: PluginsSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: Benedict Verhegghe <bverheg>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 18 Jul 2012 05:24:25 PM UTC, comment #3:

As the previous command says, fmtData should get a numerical array (or compatible) as input, as specified in the docstring.
Closing the bug as invalid.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Tue 17 Jul 2012 12:15:06 PM UTC, comment #2:

fmtData should only be used with numerical data.

gianluca de santis <gianlucadesi>
Project Member
Tue 17 Jul 2012 10:56:34 AM UTC, comment #1:

the problem seems solved by inserting this lines before the asarray()

w=[type(d)!=str for d in data]#GDS
for i in where(w)[0]:#GDS
data[i]=around(data[i], decimals=7)#GDS

Please check it.

gianluca de santis <gianlucadesi>
Project Member
Tue 17 Jul 2012 10:17:58 AM UTC, original submission:

In the plugin fe_abq the fmtData gives wrong values when a (long) float is used in combination with a string. For example:

from plugins.fe_abq import fmtData
time=[1.1234567e-5,]
print fmtData(time)
#1.1234567e-05

time=[1.1234567e-5,'']
print fmtData(time)
#1.123456,
exit()

in the second case the time 1.1234567e-05 becomes 1.123456.
I have found this problem in the
fil.write(fmtData(self.time))#LINE 1678 of the fe_abq.py

The reason is that asarray(time) will cut some digits if a string '' is present.
Should we convert all floats into a float with less digits before doing asarray?
e.g. 1.1234567e-5 should be first converted into 1.123e-5

gianluca de santis <gianlucadesi>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bverheg (Posted a comment)
  • -unavailable- added by gianlucadesi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 18 Jul 2012 05:24:25 PM UTCbverhegStatusFixed=>Invalid
      Open/ClosedOpen=>Closed
    Tue 17 Jul 2012 12:15:06 PM UTCgianlucadesiStatusIn Progress=>Fixed
    Tue 17 Jul 2012 10:56:34 AM UTCgianlucadesiStatusNone=>In Progress

    Back to the top


    Powered by Savane 3.1-cleanup1