Skip to content

Commit 474e6ea

Browse files
Update model function
1 parent f73ce45 commit 474e6ea

File tree

9 files changed

+27
-29
lines changed

9 files changed

+27
-29
lines changed
+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
md5: a2d8f534e958e3213da9e560e3e6697e
1+
md5: 7952f6be4194ca8011e1ad9c61d2785f
22
frozen: true
33
deps:
44
- path: data/models/modelfun-3.11.dillpickle
55
repo:
6-
url: ../boilercore
7-
rev_lock: 7a776c8e3b35f8077056922e5f0138ece71a9028
6+
url: submodules/boilercore
7+
rev_lock: 780ca1358fe8a1959b6602fd603327d37baf57b7
88
outs:
9-
- md5: 79f36b9dd6d19be02ab360ae7a8d801c
10-
size: 63301
9+
- md5: 5496feba82331752a39059cb49cae48a
10+
size: 1293
1111
hash: md5
1212
path: modelfun-3.11.dillpickle
+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
md5: 078e2641b466c484ffaeae10b9184231
1+
md5: 905b922b4e8499c2a004ec7015778b83
22
frozen: true
33
deps:
44
- path: data/models/modelfun-3.12.dillpickle
55
repo:
6-
url: ../boilercore
7-
rev_lock: 7a776c8e3b35f8077056922e5f0138ece71a9028
6+
url: submodules/boilercore
7+
rev_lock: 780ca1358fe8a1959b6602fd603327d37baf57b7
88
outs:
9-
- md5: 4c8f5419f842a9f1f2de719d8e51a7ed
10-
size: 60741
9+
- md5: 75e092f44d0df89ebfd148838133fc81
10+
size: 1112
1111
hash: md5
1212
path: modelfun-3.12.dillpickle

lock.json

+4-4
Large diffs are not rendered by default.

requirements/requirements.txt

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pyside6-essentials==6.7.2 ; sys_platform == 'linux'
66
shiboken6==6.7.2 ; sys_platform == 'linux'
77
# compilation
88
# This file was autogenerated by uv via the following command:
9-
# uv pip compile --universal --all-extras --exclude-newer 2024-07-09T22:54:01.158673Z --python-version 3.11 --resolution lowest-direct --override requirements/override.txt requirements/dev.in pyproject.toml docs/pyproject.toml scripts/pyproject.toml tests/pyproject.toml submodules/boilercore/pyproject.toml
9+
# uv pip compile --universal --all-extras --exclude-newer 2024-07-18T21:40:09.533221Z --python-version 3.11 --resolution lowest-direct --override requirements/override.txt requirements/dev.in pyproject.toml docs/pyproject.toml scripts/pyproject.toml tests/pyproject.toml submodules/boilercore/pyproject.toml
1010
-e .
1111
# via -r requirements/dev.in
1212
-e docs/
@@ -55,7 +55,7 @@ appnope==0.1.4 ; platform_system == 'Darwin'
5555
# via ipykernel
5656
argcomplete==3.4.0
5757
# via pipx
58-
astroid==3.2.2
58+
astroid==3.2.3
5959
# via sphinx-autodoc2
6060
asttokens==2.4.1
6161
# via stack-data
@@ -92,7 +92,7 @@ blosc2==2.7.0
9292
# via tables
9393
bottleneck==1.4.0
9494
# via pandas
95-
cachetools==5.3.3
95+
cachetools==5.4.0
9696
# via google-auth
9797
cachier @ git+https://github.com/blakeNaccarato/cachier@db7f394a553a90944ca25c2d687771006e77a024
9898
# via
@@ -155,7 +155,7 @@ copier==9.2.0
155155
# via
156156
# boilerdaq-tools (scripts/pyproject.toml)
157157
# boilerdaq-tools
158-
coverage==7.5.4
158+
coverage==7.6.0
159159
# via pytest-cov
160160
cryptography==42.0.8
161161
# via asyncssh
@@ -576,7 +576,7 @@ pipx==1.6.0
576576
# via
577577
# boilerdaq-tools (scripts/pyproject.toml)
578578
# boilerdaq-tools
579-
pkg-about==1.1.6
579+
pkg-about==1.1.7
580580
# via libusb
581581
platformdirs==3.11.0
582582
# via
@@ -594,7 +594,7 @@ pluggy==1.5.0
594594
# via pytest
595595
plumbum==1.8.3
596596
# via copier
597-
portalocker==2.10.0
597+
portalocker==2.10.1
598598
# via cachier
599599
posthog==3.5.0
600600
# via ploomber-core
@@ -652,7 +652,7 @@ pydantic-core==2.16.2
652652
# via pydantic
653653
pydata-sphinx-theme==0.15.4
654654
# via sphinx-book-theme
655-
pydot==2.0.0
655+
pydot==3.0.1
656656
# via dvc
657657
pygit2==1.15.1
658658
# via scmrepo
@@ -819,7 +819,7 @@ scmrepo==3.3.6
819819
# gto
820820
semver==3.0.2
821821
# via gto
822-
setuptools==70.3.0
822+
setuptools==71.0.3
823823
# via
824824
# cachier
825825
# dulwich
@@ -958,7 +958,7 @@ tabulate==0.9.0
958958
# numpydoc
959959
tinycss2==1.3.0
960960
# via nbconvert
961-
tomlkit==0.12.5
961+
tomlkit==0.13.0
962962
# via dvc
963963
tornado==6.4.1
964964
# via

src/boilerdaq/daq.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
from typing import TYPE_CHECKING, Any, NamedTuple, Self
1111
from warnings import warn
1212

13-
from boilercore.fits import fit_from_params
14-
from boilercore.modelfun import get_model
15-
from boilercore.models.fit import Fit
13+
from boilercore.fits import Fit, fit_from_params
1614
from boilercore.models.geometry import GEOMETRY
1715
from boilercore.types import Rod
1816
from pyqtgraph import (
@@ -451,7 +449,7 @@ def __init__(
451449
self.fit = fit
452450
self.source = Param(name, unit) # type: ignore
453451
self.results_to_fit = results_to_fit
454-
self.model, _ = get_model(models)
452+
self.model, _ = self.fit.get_models(models)
455453
self.x = GEOMETRY.rods[rod]
456454

457455
def update(self):

src/boilerdaq/models/params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
from pathlib import Path
44

5+
from boilercore.fits import Fit
56
from boilercore.models import SynchronizedPathsYamlModel
6-
from boilercore.models.fit import Fit
77
from boilercore.models.geometry import Geometry
88
from pydantic.v1 import Field
99

-60.6 KB
Binary file not shown.
-58.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)