Commit 9efee26c authored by Carl Schaffer's avatar Carl Schaffer
Browse files

compatibility fixes for data retrieval in slit orientation study

parent bb02b006
......@@ -6,7 +6,8 @@ Created by schaffer at 11/26/19
"""
import pandas as pd
from .gris.study_gris_slit_orientation.get_data import get_raw_data
from kis_tools.gris.study_gris_slit_orientation.get_data import get_raw_data
def get_cleaned_data(*args, **kwargs):
......
......@@ -6,16 +6,18 @@ Created by schaffer at 11/26/19
"""
from glob import iglob, glob
from glob import glob
from math import atan, degrees
from os.path import abspath, dirname, basename, join
from pathlib import Path
from astropy.io.fits.verify import VerifyError
from scipy.io import readsav
from ..GrisFitsFile import GrisFitsFile
from kis_tools.util.util import date_from_fn, gris_run_number, cache
from tqdm import tqdm
from kis_tools.util.util import date_from_fn, gris_run_number, cache
from ..GrisFitsFile import GrisFitsFile
def get_slit(f):
data = readsav(f)
......@@ -70,7 +72,8 @@ def angle_keywords_from_fits(save_filename):
@cache
def get_raw_data(force=False):
sav_files = iglob("/dat/sdc/gris/*/context_data/*coord_mu*")
# sav_files = iglob("/dat/sdc/gris/*/context_data/*coord_mu*")
sav_files = (Path("Y:") / r'dat\sdc\gris').glob("*/context_data/*coord_mu*")
progress_bar = tqdm(list(sav_files))
raw_values = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment