Closed CameronBodine closed 2 years ago
Imported packages for each script:
main.py::
from funcs_common import *
from pj_readFiles import read_master_func
from pj_rectify import rectify_master_func
import time
import datetime
pj_readFiles.py::
from funcs_common import *
from c_sonObj import sonObj
from joblib import delayed
import time
from scipy.signal import savgol_filter
c_sonObj.py::
from funcs_common import *
from funcs_bedpick import *
# from scipy.signal import savgol_filter
from skimage.filters import gaussian
from skimage.morphology import remove_small_holes, remove_small_objects
from skimage.measure import label, regionprops
from skimage.io import imsave
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
pj_rectify.py::
from __future__ import division
from funcs_common import *
from c_rectObj import rectObj
from rasterio.merge import merge
import gdal
c_rectObj.py::
from funcs_common import *
from c_sonObj import sonObj
from scipy.interpolate import splprep, splev
from skimage.transform import PiecewiseAffineTransform, warp
from rasterio.transform import from_origin
from PIL import Image
funcs_common.py::
import os, sys, struct, gc
from joblib import Parallel, delayed, cpu_count
from glob import glob
import numpy as np
from array import array as arr
import pyproj
import imageio # Scikit-image dep; need to update image manip w/ rasterio for consistency
import rasterio
from numpy.lib.stride_tricks import as_strided as ast
import pandas as pd
from collections import defaultdict
from copy import deepcopy
import pickle
import shutil
funcs_bedpick.py::
import os, time
import json
import tensorflow as tf
import numpy as np
from skimage.morphology import remove_small_holes, remove_small_objects
from skimage.transform import resize
from skimage.filters import threshold_otsu
from skimage.measure import label, regionprops
import tensorflow.keras.backend as K
Looking at PINGMapper_TF.yml, required dependencies specified in the file are necessary, and other packages (such as imageio
), are dependencies required by packages specified in the conda environment. Therefore, dependencies seem as straight forward as possible and no further removal of dependencies necessary at this time. Closing issue for now.
Need to check which libraries are absolutely necessary. The following lists the installed packages for the
ping-tf
environment: