Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge HEAD into gstatsim-interface #171

Merged
merged 58 commits into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
81463bb
Run on pull request too
mmaelicke Jul 7, 2023
3fd629b
Divide dowd estimator value by 2
rhugonnet Aug 1, 2023
06b9cc9
Update tests
rhugonnet Aug 1, 2023
48a8150
Merge pull request #158 from rhugonnet/dowd_scale
mmaelicke Aug 1, 2023
01e13fe
1.0.13
mmaelicke Aug 1, 2023
7232c43
Add _custom_model class attribute, exception in fit and p0 and bounds…
rhugonnet Aug 11, 2023
5247cd4
Add tests on custom model definition and fitting
rhugonnet Aug 11, 2023
7b3cd22
Add to DirectionalVariogram and rename _custom_model to _is_model_cus…
rhugonnet Aug 11, 2023
20749fc
Build sum of models from string name
rhugonnet Aug 21, 2023
c93ed9a
Add self._model_name attribute, and logic for sum of models in descri…
rhugonnet Aug 21, 2023
daf6eda
Add more tests and correct bugs
rhugonnet Aug 21, 2023
2df8592
Remove static typing, move to description
rhugonnet Aug 21, 2023
5d37015
Fix instantiation and fix tests
rhugonnet Aug 21, 2023
66aff87
Add tests for plotting
rhugonnet Aug 21, 2023
82fa559
Document fit_bounds and fit_p0, and add tests
rhugonnet Aug 22, 2023
4185c75
Update model argument description
rhugonnet Aug 22, 2023
bc4e170
Fix random test and inf bound check
rhugonnet Aug 22, 2023
aa2d7ed
Fix warnings in test_variogram
rhugonnet Aug 22, 2023
ce9aa85
Fix typo in description
rhugonnet Aug 22, 2023
66fbeb6
Skip GSTools test in test_variogram if not installed
rhugonnet Aug 22, 2023
8ece116
Example precommit codespell
rhugonnet Aug 22, 2023
de3a948
Fix floating precision error
rhugonnet Sep 21, 2023
2e31741
Add example in user guide
rhugonnet Sep 21, 2023
6985339
Make nugget consistent for a sum of models
rhugonnet Sep 21, 2023
fbff110
Finalize nugget for sum and add tests
rhugonnet Sep 21, 2023
f4d33f1
Rerun tests with scipy 1.11.3
rhugonnet Oct 2, 2023
ca2a63e
Rerun tests with scipy 1.11.3
rhugonnet Oct 2, 2023
34388c6
Force SciPy versions to before 1.11.1
rhugonnet Oct 5, 2023
d357c1a
Try with NumPy version before 1.25
rhugonnet Oct 5, 2023
56127e2
Try with 1.24
rhugonnet Oct 5, 2023
7d5d287
Try 1.24.1
rhugonnet Oct 5, 2023
591ae37
Try 1.24.1
rhugonnet Oct 5, 2023
d0bb82d
Try 1.24.2
rhugonnet Oct 5, 2023
9a76ae7
Try 1.24.3
rhugonnet Oct 5, 2023
35903f8
Try 1.25.0
rhugonnet Oct 5, 2023
b6af438
Fix formula in spherical model docs
mmaelicke Oct 9, 2023
9ada1f4
Remove NumPy version fixing
rhugonnet Oct 9, 2023
59781f1
Change stable entropy bin test precision to 0 decimals
rhugonnet Oct 9, 2023
ff2d22c
Merge pull request #163 from rhugonnet/precommit_typos
mmaelicke Oct 12, 2023
de69af1
fixing typos
mmaelicke Oct 12, 2023
dbaac68
some more typos fixed
mmaelicke Oct 12, 2023
2255d06
automatically fixed by codespell
mmaelicke Oct 12, 2023
c09ad55
last fixes
mmaelicke Oct 12, 2023
48b7259
write-changes flag and ignore words
mmaelicke Oct 12, 2023
b47f597
add basic pre-commit-hooks
mmaelicke Oct 13, 2023
0690ef5
fix whitespace and end-of-file warnings
mmaelicke Oct 13, 2023
96b671c
fix end-of-file error
mmaelicke Oct 13, 2023
c2d63d1
Merge pull request #167 from mmaelicke/pre-commit
mmaelicke Oct 13, 2023
5f67e4e
Merge branch 'main' into combine_models
mmaelicke Oct 13, 2023
9690d39
Linting
rhugonnet Oct 13, 2023
1c83f5a
Merge pull request #160 from rhugonnet/combine_models
mmaelicke Oct 13, 2023
d96b063
1.0.14
mmaelicke Oct 13, 2023
629aa88
Merge remote-tracking branch 'upstream/main' into skip_local_gstools
rhugonnet Oct 13, 2023
4e2d92b
Linting
rhugonnet Oct 13, 2023
88f06af
Merge pull request #170 from mmaelicke/main
mmaelicke Oct 14, 2023
a59a83f
Merge pull request #162 from rhugonnet/skip_local_gstools
mmaelicke Oct 14, 2023
a59da91
Merge pull request #165 from mmaelicke/fix-spherical-docs
mmaelicke Oct 14, 2023
3f01059
Merge branch 'gstatsim-interface' into resolve-gstatsim-conflict
mmaelicke Oct 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[run]
omit =
omit =
skgstat/tests/*
skgstat/plotting/*
docs/*
setup.py

[report]
exclude_lines =
exclude_lines =
pragma: no cover
def __repr__
def __str__
Expand Down
34 changes: 20 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
name: Test and build docs

on: push
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'

jobs:
test:
name: Run Unittest
runs-on: ubuntu-20.04
strategy:
matrix:
matrix:
python: ['3.6', '3.7', '3.8', '3.9', '3.10']

steps:
- name: Checkout
uses: actions/checkout@master
Expand All @@ -18,7 +24,7 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Install SciKit-GStat
run: |
run: |
pip3 install -r requirements.txt
python3 setup.py install
- name: Install PyTest requirements
Expand All @@ -45,7 +51,7 @@ jobs:
with:
python-version: '3.8'
- name: Install SciKit-GStat
run: |
run: |
pip3 install -r requirements.txt
python3 setup.py install
- name: Install Sphinx requirements
Expand All @@ -55,13 +61,13 @@ jobs:
- name: Install pdflatex
run: sudo apt install texlive-latex-extra texlive-latex-recommended texlive-fonts-recommended pandoc
- name: make HTML & LaTeX docs
run: |
run: |
cd docs
make html
make html
make latex
continue-on-error: true
- name: compile LaTeX
run: |
run: |
cd docs/_build/latex
pdflatex -interaction=nonstopmode -halt-on-error SciKitGStat.tex
cd ../..
Expand All @@ -73,7 +79,7 @@ jobs:
target_branch: gh-pages
build_dir: docs/_build/html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release:
name: Create Github release
Expand All @@ -95,7 +101,7 @@ jobs:
name: Publish to PyPi
runs-on: ubuntu-20.04
needs: test
if: startsWith(github.event.ref, 'refs/tags/v')
if: startsWith(github.event.ref, 'refs/tags/v')

steps:
- uses: actions/checkout@v3
Expand All @@ -113,13 +119,13 @@ jobs:
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
ci_develop:
password: ${{ secrets.PYPI_TOKEN }}

ci_develop:
name: Print Github Context for Development
runs-on: ubuntu-20.04
if: true

steps:
- name: Dump GitHub context
env:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Linting and formatting (pre-commit)

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/[email protected]
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ container
Playground.ipynb
in_progress
docs/auto_examples
docs/gen_modules
docs/gen_modules
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
repos:
# Fix common spelling mistakes
- repo: https://github.com/codespell-project/codespell
rev: v2.2.1
hooks:
- id: codespell
args: [
# Verly is a Name, coo references the SciPy coo sparse matrix
'--ignore-words-list', 'verly,coo',
'--write-changes',
# 'nd,alos,inout',
# '--ignore-regex', '\bhist\b',
'--'
]
types_or: [python, rst, markdown]
files: ^(skgstat|docs|tutorials)/

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ RUN pip install jupyter
# open port 8888
EXPOSE 8888

CMD jupyter notebook --ip "0.0.0.0"
CMD jupyter notebook --ip "0.0.0.0"
6 changes: 3 additions & 3 deletions Dockerfile.legacy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# use the minimal jupyter notebook
FROM jupyter/minimal-notebook:ad3574d3c5c7

# build tutorials folder
# build tutorials folder
USER root
RUN mkdir tutorials

Expand All @@ -12,15 +12,15 @@ USER $NB_USER
# copy the tutorials content
COPY ./docs/tutorials ./tutorials

# install the latest version
# install the latest version
COPY ./ ./scikit-gstat

# use the latest
RUN cd scikit-gstat && \
pip install . && \
cd ..

# the interfaces has two additional
# the interfaces has two additional
# optional dependencies: pykrige and gstools
RUN pip install pykrige gstools

Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ include .coveragerc
include Dockerfile
include Dockerfile.legacy
graft skgstat/data/rf
graft skgstat/data/samples
graft skgstat/data/samples
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ PyPI

pip install scikit-gstat

**Note:** It can happen that the installation of numba or numpy is failing using pip. Especially on Windows systems.
Usually, a missing Dll (see eg. `#31 <https://github.com/mmaelicke/scikit-gstat/issues/31>`_) or visual c++ redistributable is the reason.
**Note:** It can happen that the installation of numba or numpy is failing using pip. Especially on Windows systems.
Usually, a missing Dll (see eg. `#31 <https://github.com/mmaelicke/scikit-gstat/issues/31>`_) or visual c++ redistributable is the reason.

GIT:
^^^^
Expand Down
4 changes: 2 additions & 2 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Scikit-GStat

SciKit-Gstat is a scipy-styled variogram estimation and analysis module for geostatistics.
SciKit-Gstat is a scipy-styled variogram estimation and analysis module for geostatistics.
It includes classes for variogram estimation and ordinary kriging. More advanced use-cases
like directional variograms and space-time variograms are included as well.

Expand All @@ -26,4 +26,4 @@ or bibtex:
URL = {https://gmd.copernicus.org/articles/15/2505/2022/},
DOI = {10.5194/gmd-15-2505-2022}
}
```
```
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Loading
Loading