Dear Daniel, My code is running now. Please don't bother to check the errors. Thank you.
Thanks, Rose On Wed, Nov 20, 2013 at 11:08 AM, yuan wang <rose.w...@tufts.edu> wrote: > Dear Daniel, > > Thank you for your response. I attached my code. > I think somewhat have passed the error I emailed earlier, but I'm > encountering new error message. > "AttributeError: Solids instance has no attribute 'rank' > > I always got errors about 'rank', which I'm not sure what it stands for. > Since I am applying coefficients that vary with depth, my coefficient terms > are numpy arrays. Would that cause the problem? Should I use list for > coefficient terms instead? > > Thanks again for your help. > > Best regards, > Rose > > > On Wed, Nov 20, 2013 at 10:11 AM, Daniel Wheeler < > daniel.wheel...@gmail.com> wrote: > >> On Wed, Nov 20, 2013 at 9:38 AM, yuan wang <rose.w...@tufts.edu> wrote: >> > Dear colleagues, >> > >> > I am trying to organize my code in an object oriented way, but found it >> > difficult when putting fipy codes into the classes. Please see a sample >> code >> > below. I try to assign CellVariable into self.value attribute, but I >> got an >> > error message "Solids instance has no attribute of value". It might be a >> > silly question, but I could not find an answer online. >> >> Hi Yuan, Could you give a code snippet that's fully executable or at >> least give the full traceback? So that I can reproduce the issue. >> Thanks. >> >> -- >> Daniel Wheeler >> _______________________________________________ >> fipy mailing list >> fipy@nist.gov >> http://www.ctcms.nist.gov/fipy >> [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] >> > >
_______________________________________________ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]