Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
abearab committed Jun 24, 2024
1 parent dcb70b0 commit 6675812
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CanDI/candi/candi.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Classes for handling data aggregations
import operator
from collections import OrderedDict, MutableSequence
from collections.abc import MutableSequence
import itertools as it
import pandas as pd
import numpy as np
Expand Down
5 changes: 3 additions & 2 deletions CanDI/candi/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ def __init__(self, config_path='auto', verbose=False):
parser.read(config_path)

self._parser = parser
#self._verify_install()
self._verify_install()
self._init_sources()
self._init_depmap_paths()
# self._init_index_tables()
self._init_index_tables()

def _verify_install(self): #ensures data being loaded is present
#TODO: add more checks for different data sources
try:
assert "depmap_urls" in self._parser.sections()
except AssertionError:
Expand Down
2 changes: 1 addition & 1 deletion CanDI/setup/install.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import argparse
from .manager import DataverseDepMap, BroadDepMap
from manager import DataverseDepMap, BroadDepMap


def main():
Expand Down
2 changes: 1 addition & 1 deletion CanDI/setup/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, manager_path='auto', cfig_path='auto', verbose=False):
print(f"Config Path: {cfig_path}")

parser = configparser.ConfigParser()
parser.read(cfig_path.replace(".ini", ".draft.ini"))
parser.read(cfig_path) #.replace(".ini", ".draft.ini"))

self.manager_path = manager_path
self.cfig_path = Path(cfig_path)
Expand Down

0 comments on commit 6675812

Please sign in to comment.