Re: [sqlalchemy] Batch patch ORM entities

2023-10-11 Thread Pierre Massé
Thanks a lot, sorry to have been a bother for such a simple question.. Le mer. 11 oct. 2023 à 17:16, Mike Bayer < mike_not_on_goo...@zzzcomputing.com> a écrit : > > > On Wed, Oct 11, 2023, at 11:10 AM, Pierre Massé wrote: > > Thanks a lot for the insight Mike, > > My question might then be quite

Re: [sqlalchemy] Batch patch ORM entities

2023-10-11 Thread Mike Bayer
On Wed, Oct 11, 2023, at 11:10 AM, Pierre Massé wrote: > Thanks a lot for the insight Mike, > > My question might then be quite naive: let's say I have a list of ORM > entities on one side, and an accordingly sorted numpy array of computed > features, how would I merge back attributes on

Re: [sqlalchemy] Batch patch ORM entities

2023-10-11 Thread Pierre Massé
Thanks a lot for the insight Mike, My question might then be quite naive: let's say I have a list of ORM entities on one side, and an accordingly sorted numpy array of computed features, how would I merge back attributes on entities? Let's say I have a list like : user_list = [User(id=1,

Re: [sqlalchemy] Batch patch ORM entities

2023-10-11 Thread Mike Bayer
On Wed, Oct 11, 2023, at 4:22 AM, Pierre Massé wrote: > Dear all, > > I have a requirement that makes me think that I need to "mass patch" some ORM > objects. However, I am open to any suggestions regarding the way to answer my > requirements. > > I have defined an ORM object which

[sqlalchemy] Batch patch ORM entities

2023-10-11 Thread Pierre Massé
Dear all, I have a requirement that makes me think that I need to "mass patch" some ORM objects. However, I am open to any suggestions regarding the way to answer my requirements. I have defined an ORM object which represents a user, holding longitude and latitude (among other attributes). At