Skip to content

Commit

Permalink
Allow relative paths with '../' in weights extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
nsmith- committed Jan 29, 2019
1 parent ab80a8f commit c9b48bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fnal_column_analysis_tools/lookup_tools/extractor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
import os

import numpy as np
from .evaluator import evaluator
Expand Down Expand Up @@ -78,7 +79,7 @@ def add_weight_sets(self,weightsdescs):
def import_file(self,file):
""" cache the whole contents of a file for later processing """
if file not in self._filecache.keys():
file_dots = file.split('.')
file_dots = os.path.basename(file).split('.')
format = file_dots[-1].strip()
type = 'default'
if len(file_dots) > 2:
Expand Down

0 comments on commit c9b48bc

Please sign in to comment.