Skip to content

Commit

Permalink
move SHAPE_MT_IDS to priortools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gschnabel committed Apr 7, 2022
1 parent e5fe533 commit 2534993
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gmapi/data_management/uncfuns.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from scipy.sparse import block_diag, csr_matrix
from collections import OrderedDict

from ..mappings.helperfuns import SHAPE_MT_IDS
from ..mappings.priortools import SHAPE_MT_IDS



Expand Down
2 changes: 1 addition & 1 deletion gmapi/legacy/conversion_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .data_management import init_datablock, init_fisdata, init_prior
from .generic_utils import Bunch
from .database_reading import read_gma_database
from ..mappings.helperfuns import SHAPE_MT_IDS
from ..mappings.priortools import SHAPE_MT_IDS



Expand Down
1 change: 0 additions & 1 deletion gmapi/mappings/helperfuns/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from .helperfuns import SHAPE_MT_IDS
from .helperfuns import return_matrix
from .numeric_jacobian import numeric_jacobian
from .romberg_integration import compute_romberg_integral
3 changes: 0 additions & 3 deletions gmapi/mappings/helperfuns/helperfuns.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
from scipy.sparse import csr_matrix


SHAPE_MT_IDS = (2,4,8,9)


def return_matrix(idcs1, idcs2, vals, dims, how):
"""Return a matrix defined by triples in desired format."""
Sdic = {'idcs1': np.array(idcs1, dtype=int),
Expand Down
3 changes: 2 additions & 1 deletion gmapi/mappings/priortools.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import numpy as np
import pandas as pd
import re
from .helperfuns import SHAPE_MT_IDS


SHAPE_MT_IDS = (2,4,8,9)


def attach_shape_prior(priortable, mapping, exptable, refvals=None, uncs=None):
"""Attach experimental normalization constants to prior."""
Expand Down

0 comments on commit 2534993

Please sign in to comment.