This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import h5py | |
from importlib import resources # assuming python >= 3.7 is installed | |
def data_load_function(): | |
data = {'Sensors': {'Lumbar': {}}} | |
with resources.path('sit2standpy.data', 'sample.h5') as file_path: | |
with h5py.File(file_path, 'r') as h5: | |
data['Sensors']['Lumbar']['Accelerometer'] = h5['Sensors']['Lumbar']['Accelerometer'][()] | |
data['Sensors']['Lumbar']['Unix Time'] = h5['Sensors']['Lumbar']['Unix Time'][()] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"province": [ | |
{ | |
"id": "0", | |
"name": "Bocas del Toro", | |
"district": { | |
"Almirante": { | |
"corregimientos": [ | |
"Almirante", "Bajo Culubre", "Barriada Guaymí", "Barrio Francés", "Cauchero", "Ceiba", "Miraflores", "Nance de Riscó", "Valle de Aguas Arriba", "Valle de Riscó" | |
] | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Inspired by | |
# https://www.codeenigma.com/community/blog/using-mdbtools-nix-convert-microsoft-access-mysql | |
# USAGE | |
# Rename your MDB file to migration-export.mdb | |
# run ./mdb2sqlite.sh migration-export.mdb | |
# wait and wait a bit longer... | |
mdb-schema migration-export.mdb sqlite > schema.sql |