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
import pandas as pd | |
import sys | |
from logging import getLogger | |
logger = getLogger(__name__) | |
def main(file_path: str) -> pd.DataFrame: | |
"""Read CPLEX solution file and return dual values for E8_AnnualEmissionsLimit constraint. | |
""" |
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
import os, sys, time | |
######################################################################################### | |
######################################################################################### | |
#if len(sys.argv) != 3: | |
# print '''Usage: {0} | |
# <input> | |
# <output>\n\n\n'''.format(sys.argv[0]) | |
# sys.exit() |
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
from shapely.affinity import translate | |
from shapely.geometry import Point, MultiPolygon | |
from shapely.ops import transform | |
from functools import partial | |
import pyproj | |
import geopandas as gpd | |
import os | |
def move_city(filepath, source_latlon, destination_latlon): |
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
import pyarrow as pa | |
import os | |
from csv import writer | |
from sys import argv | |
import numpy as np | |
def get_data(filepath): | |
data = None | |
with pa.memory_map(filepath, 'rb') as f: | |
f.seek(0) |
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
""" | |
Navigate to the root of the AKWF folder downloadable from http://www.adventurekid.se/AKRTfiles/AKWF/AKWF.zip | |
and run this script using the command ``python3 distingify.py`` | |
""" | |
import os | |
def main(): | |
folder_list = [] | |
for folder in os.listdir(): | |
if os.path.isdir(folder): |