Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused modules #144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions jwst_reffiles/bad_pixel_mask/badpix_from_flats.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
- astropy
- numpy
"""
import argparse
import copy
import numpy as np
import os
Expand All @@ -61,7 +60,7 @@
from astropy.io import fits, ascii
from astropy.stats import sigma_clip
from scipy.ndimage import median_filter
from jwst.datamodels import dqflags, MaskModel, Level1bModel
from jwst.datamodels import dqflags, MaskModel
from jwst.dq_init import DQInitStep
from stdatamodels import util

Expand Down
5 changes: 0 additions & 5 deletions jwst_reffiles/bad_pixel_mask/mkref_bad_pixel_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,13 @@
This class is based on that in the
template file: jwst_reffiles/templates/plugin_template.py
"""
import argparse
import copy
import os
import re
import sys
import types

from jwst_reffiles.plugin_wrapper import mkrefclass_template

from jwst_reffiles.bad_pixel_mask import bad_pixel_mask as bpm
from jwst_reffiles.utils.constants import RATE_FILE_SUFFIXES
from jwst_reffiles.utils.definitions import PIPE_STEPS


class mkrefclass(mkrefclass_template):
Expand Down
5 changes: 0 additions & 5 deletions jwst_reffiles/bad_pixel_mask/mkref_badpix_from_flats.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@
This class is based on that in the
template file: jwst_reffiles/templates/plugin_template.py
'''

import argparse
import copy
import os
import re
import sys
import types

from jwst_reffiles.plugin_wrapper import mkrefclass_template

Expand Down
1 change: 0 additions & 1 deletion jwst_reffiles/dark_current/badpix_from_darks.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import os
from jwst.datamodels import dqflags
import numpy as np
from os import path
import matplotlib.pyplot as plt
from scipy.stats import sigmaclip
import matplotlib.cm as cm
Expand Down
8 changes: 0 additions & 8 deletions jwst_reffiles/dark_current/mkref_dark.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@
This class is based on that in the
template file: jwst_reffiles/templates/plugin_template.py
"""

import argparse
import copy
import os
import re
import sys
import types

from jwst_reffiles.plugin_wrapper import mkrefclass_template

# import the dark current reference file script
Expand Down
1 change: 0 additions & 1 deletion jwst_reffiles/example/example_readnoise_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
We'll also add some unique options in order to explore how to propagate
those into the jwst_reffiles world.
"""
import os
import copy

from astropy.io import fits
Expand Down
8 changes: 1 addition & 7 deletions jwst_reffiles/mkref.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@
'''

import argparse
import glob
import os
import re
import sys
import types

import astropy.io.fits as fits
import numpy as np
import scipy

from jwst_reffiles.utils.tools import astrotableclass,yamlcfgclass
from jwst_reffiles.utils.tools import yamlcfgclass

#from jwst_lib.models import RampModel

Expand Down
13 changes: 3 additions & 10 deletions jwst_reffiles/mkrefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,16 @@
'''
import argparse
import glob
import os,re,sys,types,copy,random
import os,re,sys,copy,random
import logging
from logging import StreamHandler
from logging.handlers import RotatingFileHandler

import astropy.io.fits as fits
from astropy.io import ascii
import astropy
import numpy as np
import scipy

from jwst_reffiles.plugin_wrapper import mkrefclass_template
from jwst_reffiles.pipeline.calib_prep import CalibPrep
from jwst_reffiles.pipeline import pipeline_steps
from jwst_reffiles.utils.logging_functions import configure_logging, log_info, log_fail, make_log_file
from jwst_reffiles.utils.logging_functions import configure_logging, log_info, log_fail
from jwst_reffiles.utils.tools import astrotableclass, yamlcfgclass
from jwst_reffiles.utils.tools import makepath, executecommand, append2file, rmfile
from jwst_reffiles.utils.tools import makepath, executecommand, rmfile

# get the root dir of the code. This is needed only if the scripts are not installed as a module!
#if 'JWST_MKREFS_SRCDIR' in os.environ:
Expand Down
3 changes: 1 addition & 2 deletions jwst_reffiles/pipeline/find_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
Version 0.0 - 20 Jan 2017 - BNH
'''

import os,sys
import argparse
import os
from collections import OrderedDict
import fnmatch
from glob import glob
Expand Down
8 changes: 1 addition & 7 deletions jwst_reffiles/plugin_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,11 @@
'''

import argparse
import glob
import os
import re
import sys
import types

from astropy.io import ascii
import astropy.io.fits as fits
import numpy as np

from jwst_reffiles.utils.tools import astrotableclass, yamlcfgclass
from jwst_reffiles.utils.tools import yamlcfgclass


class mkrefclass_template:
Expand Down
8 changes: 0 additions & 8 deletions jwst_reffiles/readnoise/mkref_readnoise.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@
This class is based on that in the
template file: jwst_reffiles/templates/plugin_template.py
"""

import argparse
import copy
import os
import re
import sys
import types

from jwst_reffiles.plugin_wrapper import mkrefclass_template

# import the readnoise script
Expand Down
6 changes: 0 additions & 6 deletions jwst_reffiles/templates/plugin_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@
Any additional parameters (as defined in the config file and/or on the command
line) will be available in the self.parameters dictionary.
"""
import argparse
import os
import re
import sys
import types

from jwst_reffiles.plugin_wrapper import mkrefclass_template

# import your script!
Expand Down
5 changes: 0 additions & 5 deletions jwst_reffiles/utils/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

import os,io
import re
import sys
import types
import subprocess
#import pytz

Expand All @@ -17,9 +15,6 @@
from astropy.time import Time
from datetime import datetime
import astropy.io.fits as fits
import numpy as np
from numpy import recarray
import numpy.lib.recfunctions as nprecf
import yaml


Expand Down