Commit 13a4b075 authored by Stefan Mauerberger's avatar Stefan Mauerberger
Browse files

Fixes function built_in_models()

parent 28b8ec43
......@@ -28,7 +28,7 @@ import sys
import argparse
from . import commands
from .pymagglobal import models
from pymagglobal import models
from pymagglobal import __version__
......
......@@ -30,7 +30,6 @@ import os
import numpy as np
from scipy.interpolate import BSpline
# XXX pyfield.dspharm_CLR_NED were less cryptic than CRUSpline as kernel
from pyfield import CRUSpline as Kernel, REARTH, i2lm_l, i2lm_m, lmax2N
from .utils import nez2dif
......@@ -43,6 +42,7 @@ def built_in_models() -> dict:
for it in os.listdir(datdir):
if os.path.isfile(os.path.join(datdir, it)) and not 'README' in it:
models[it] = os.path.join(datdir, it)
return models
def master_curve(times, loc, splines, ser_type='dif'):
......
Supports Markdown
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