Skip to content

Instantly share code, notes, and snippets.

View JackAtOmenApps's full-sized avatar
💭
Happily typing away

Jack at Omen Apps JackAtOmenApps

💭
Happily typing away
View GitHub Profile
@JackAtOmenApps
JackAtOmenApps / multilayer_layout.py
Created January 8, 2024 20:53 — forked from cvanelteren/multilayer_layout.py
Flat multilayer layout networkx
import proplot as plt, cmasher as cmr, pandas as pd, numpy as np, os, sys, networkx as nx, warnings
def multilayer_layout(
G: nx.Graph,
subset_key="layer",
layout=nx.spring_layout,
separation: float = 10.0,
) -> dict:
# set positions
@JackAtOmenApps
JackAtOmenApps / geopackage_whole_project.py
Created June 6, 2021 03:26 — forked from danzig666/geopackage_whole_project.py
Save whole QGIS project to geopackage
# input: all layers
# save path: save_layerpath project property / current project majority path
# replaces all postgis datasources with gpkg!
##########################
from qgis.utils import iface
from qgis.core import *
from qgis.PyQt.QtWidgets import *
from PyQt5.QtCore import *
from processing.tools import dataobjects