This file contains 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
# @SNTService sntService | |
# script to fit paths from previous tracing session programatically via Jython and SNT | |
# single threaded fitting and slow. Will refactor to multithreaded in future.... | |
# see: https://forum.image.sc/t/fit-paths-with-simple-neurite-tracer-api/30139/ | |
# test traces file | |
traces_test = "path/to/traces_file.traces" | |
# test img file | |
image_test = "path/to/image_file.tif" |
This file contains 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
# example script to organize and add metadata to a database | |
# see https://nickgeorge.net/science/organizing-scientific-metadata-with-sqlite-and-python/ | |
# for explanation | |
import argparse | |
import os | |
import csv | |
import sqlite3 | |
import pyabf |
This file contains 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
# extract SQLite3 data to dict example, explained in this post: | |
# https://nickgeorge.net/programming/python-sqlite3-extract-to-dictionary/ | |
# run with: | |
# python3 extract-to-dict.py | |
import os | |
import sqlite3 | |
import sys | |
def sql_data_to_list_of_dicts(path_to_db, select_query): |