Skip to content

Commit 498069a

Browse files
authored
Merge pull request #60 from MiraGeoscience/DEVOPS-515
DEVOPS-515: requires geoh5py 0.10 + pymatsolver constraint in conda recipe
2 parents 0355804 + fd7691b commit 498069a

18 files changed

Lines changed: 73 additions & 57 deletions

File tree

.pre-commit-config.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1+
default_language_version:
2+
python: python3
13
repos:
2-
- repo: https://github.com/psf/black
4+
- repo: https://github.com/psf/black-pre-commit-mirror
35
rev: 24.3.0
46
hooks:
57
- id: black
6-
language_version: python3
78
- repo: https://github.com/pycqa/flake8
8-
rev: 7.0.0
9+
rev: 7.1.1
910
hooks:
1011
- id: flake8
11-
language_version: python3
1212
additional_dependencies:
1313
- flake8-bugbear==23.12.2
1414
- flake8-builtins==2.2.0
1515
- flake8-mutable==1.2.0
1616
- flake8-rst-docstrings==0.3.0
1717
- flake8-docstrings==1.7.0
18+
- repo: https://github.com/MiraGeoscience/pre-commit-hooks
19+
rev: v1.0.1
20+
hooks:
21+
- id: prepare-commit-msg
22+
- id: check-commit-msg

meta.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ requirements:
2525
- discretize >=0.10.0
2626
- empymod >=2.0.0
2727
- geoana >=0.5.0
28-
- geoh5py >=0.9.1,<0.11
28+
- geoh5py >=0.10.0a0.dev0, <0.11.0
2929
- matplotlib-base
3030
- numpy >=1.20
3131
- pandas
32-
- pymatsolver >=0.2
32+
- pymatsolver >=0.2.0, <0.3.0
3333
- scikit-learn >=1.2
3434
- scipy >=1.8.0
3535
run_constrained:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies = [
2020
"discretize>=0.10.0",
2121
"empymod>=2.0.0",
2222
"geoana>=0.5.0",
23-
"geoh5py>=0.9.1,<0.11",
23+
"geoh5py>=0.10.0-alpha.1, <0.11",
2424
"matplotlib",
2525
"numpy>=1.20",
2626
"pandas",

simpeg/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(
5858
relative_error=None,
5959
noise_floor=None,
6060
standard_deviation=None,
61-
**kwargs
61+
**kwargs,
6262
):
6363
super().__init__(**kwargs)
6464
self.survey = survey

simpeg/electromagnetics/frequency_domain/simulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(
7373
forward_only=False,
7474
permittivity=None,
7575
storeJ=False,
76-
**kwargs
76+
**kwargs,
7777
):
7878
super().__init__(mesh=mesh, survey=survey, **kwargs)
7979
self.forward_only = forward_only

simpeg/electromagnetics/natural_source/simulation_1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(
5454
thicknesses=None,
5555
thicknessesMap=None,
5656
fix_Jmatrix=False,
57-
**kwargs
57+
**kwargs,
5858
):
5959
super().__init__(mesh=None, survey=survey, **kwargs)
6060
self.fix_Jmatrix = fix_Jmatrix

simpeg/electromagnetics/static/induced_polarization/simulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __init__(
7070
etaMap=None,
7171
Ainv=None, # A DC's Ainv
7272
_f=None, # A pre-computed DC field
73-
**kwargs
73+
**kwargs,
7474
):
7575
super().__init__(mesh=mesh, survey=survey, **kwargs)
7676
self.sigma = sigma

simpeg/electromagnetics/static/self_potential/simulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(
6464
rho=rho,
6565
sigmaMap=None,
6666
rhoMap=None,
67-
**kwargs
67+
**kwargs,
6868
)
6969
self.q = q
7070
self.qMap = qMap

simpeg/electromagnetics/static/spectral_induced_polarization/simulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545
storeJ=False,
4646
actinds=None,
4747
storeInnerProduct=True,
48-
**kwargs
48+
**kwargs,
4949
):
5050
super().__init__(mesh=mesh, survey=survey, **kwargs)
5151
self.tau = tau

simpeg/electromagnetics/static/spectral_induced_polarization/survey.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(
2626
source_list=None,
2727
survey_geometry="surface",
2828
survey_type="dipole-dipole",
29-
**kwargs
29+
**kwargs,
3030
):
3131
if source_list is None:
3232
raise AttributeError("Survey cannot be instantiated without sources")

0 commit comments

Comments
 (0)