From 622dc789e0bc7ef46f96fd99e3b2798b46bea5d8 Mon Sep 17 00:00:00 2001 From: AlexKurek Date: Sat, 20 Jul 2024 12:36:40 +0200 Subject: [PATCH] Remove unused modules --- src/commons.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/commons.py b/src/commons.py index e4618228..8bfd1999 100644 --- a/src/commons.py +++ b/src/commons.py @@ -38,21 +38,19 @@ ############################################ # Miscellaneous import ast, collections, contextlib, ctypes, cython, functools, hashlib -import importlib, inspect, itertools, keyword, logging, operator, os, re -import shutil, struct, sys, textwrap, traceback, types +import importlib, inspect, itertools, keyword, logging, os, re +import struct, sys, textwrap, traceback, types import unicodedata, warnings from copy import deepcopy # Numerics # (note that numpy.array is purposely not imported directly into the # global namespace, as this does not play well with Cython). -import decimal import numpy as np -from numpy import arange, asarray, empty, linspace, logspace, ones, zeros +from numpy import arange, asarray, empty, ones # MPI import mpi4py.rc; mpi4py.rc.threads = False # Do not use threads from mpi4py import MPI # I/O -import io from glob import glob # For fancy terminal output import blessings