Python Forum
[solved] Variable number of dictionnaries as argument in def()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Variable number of dictionnaries as argument in def()
#11
(Apr-20-2021, 10:07 AM)paul18fr Wrote: Or I can store in hdf5 files (with h5py) and then work with 2D and 3D (numpy) arrays Wink
I guess you are the smartest one and everyone else using databases are losers not knowing what they do...
Of course we are not fully aware of all details for your project and circumstances, so if it works for you - great.
Still, you can look at key-value pair DBs/data storage like Redis.

And some interesting (although a bit old) blog posts https://cyrille.rossant.net/moving-away-hdf5/ and folow-up https://cyrille.rossant.net/should-you-use-hdf5/
paul18fr likes this post
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#12
I'm not familiar with database, but thanks for the information about Redis, I'll have a look on it.

Three reasons why I've been using hdf5 files so far:
  1. using hdfview (here) I can easily have a look to the hdf5 file contents (including arrays)
  2. hdf5 files can be read and modified using Matlab for example for additional calculations
  3. you can store pictures (an image is no more no less than a matrix)

Thanks to all contributors for their advices and helps that have been highly appreciated Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] Pad strings to always get three-digit number? Winfried 2 281 Jan-27-2024, 05:23 PM
Last Post: Winfried
  TypeError: float() argument must be a string or a number, not 'list' Anldra12 2 4,757 Jul-01-2022, 01:23 PM
Last Post: deanhystad
  SOLVED variable as tuple name krayon70 7 1,763 Apr-09-2022, 03:30 PM
Last Post: krayon70
  Give a number for Variable quest 2 1,480 Jan-31-2022, 08:35 AM
Last Post: ibreeden
  Get latest version off website and save it as variable [SOLVED] AlphaInc 5 1,888 Nov-14-2021, 09:00 PM
Last Post: DeaD_EyE
  Adding an ascending number [SOLVED] AlphaInc 3 2,204 Jul-11-2021, 10:13 AM
Last Post: perfringo
  [solved] subdictionaries path as variable paul18fr 4 2,564 May-18-2021, 08:12 AM
Last Post: DeaD_EyE
  TypeError: int() argument must be a string, a bytes-like object or a number, not 'Non Anldra12 2 5,103 May-02-2021, 03:45 PM
Last Post: Anldra12
  Defining an object's argument whose name is stored in a variable arbiel 2 2,144 Dec-11-2020, 10:19 PM
Last Post: arbiel
  [regex] Good way to parse variable number of items? Winfried 4 2,560 May-15-2020, 01:54 PM
Last Post: Winfried

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020