sciann / sciann-applications

A place to share problems solved with SciANN
https://www.sciann.com
Other
238 stars 128 forks source link

"tuple" object does not support assignment #21

Closed katayooneshkofti closed 3 years ago

katayooneshkofti commented 3 years ago

Dear Dr. @ehsanhaghighat, Thank you for sharing the DataGenerator class. I have a question about a one-dimensional time-dependent problem with Dirichlet and Neumann boundary conditions. As I understood from the class of DataGenerator, by default, all these boundary and initial conditions are set to zero. If we have nonzero boundary conditions/initial conditions (e.g., equal to a function of time or space), how can we change the associated target data from zero to function(input_data)??? I tried to address the desired tuple and assign this function to it, but you know tuples are immutable, and I don't have the foggiest idea about a solution to that.

katayooneshkofti commented 3 years ago

I think I found the solution to that. I addressed the list and changed it to the desired function.

ehsanhaghighat commented 3 years ago

Excellent.

On Jul 9, 2021, at 11:12 PM, katayooneshkofti @.***> wrote:

I think I found the solution to that. I addressed the list and changed it to the desired function.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sciann/sciann-applications/issues/21#issuecomment-877576828, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHMBIZ57OG6VURCCNOU6IDDTW7QDRANCNFSM5AD4UXXA.