Skip to content

Commit

Permalink
Merge pull request #63 from sebhmg/develop
Browse files Browse the repository at this point in the history
DEVOPS-515: merge release prep branch to develop
  • Loading branch information
sebhmg authored Oct 16, 2024
2 parents 2cb27f9 + 25a363a commit fe1acb0
Show file tree
Hide file tree
Showing 7 changed files with 501 additions and 458 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
default_language_version:
python: python3
exclude: ^docs/(source/conf.py|_ext/)
default_stages: [commit,push]
default_stages: [pre-commit,pre-push]
fail_fast: false

ci:
Expand All @@ -22,7 +22,7 @@ repos:
- id: pycln
args: [--config=pyproject.toml]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.5
rev: v0.6.9
hooks:
- id: ruff
args:
Expand All @@ -31,7 +31,7 @@ repos:
# - --unsafe-fixes
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.0
rev: v1.12.0
hooks:
- id: mypy
additional_dependencies: [
Expand All @@ -42,7 +42,7 @@ repos:
]
exclude: ^(docs|las_geoh5-assets)/
- repo: https://github.com/codingjoe/relint
rev: 3.1.1
rev: 3.2.0
hooks:
- id: relint
args: [-W] # to fail on warnings
Expand Down Expand Up @@ -70,7 +70,7 @@ repos:
exclude: (\.lock|\.ipynb|^THIRD_PARTY_SOFTWARE\.rst)$
entry: codespell -I .codespellignore
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: \.mdj$
Expand Down
4 changes: 2 additions & 2 deletions las_geoh5/export_las.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def add_curve_data(file: LASFile, drillhole: Drillhole, group):

file.append_curve(datum.name, datum.values)

if isinstance(datum, ReferencedData):
for k, v in datum.value_map.map.items(): # pylint: disable=invalid-name
if isinstance(datum, ReferencedData) and datum.value_map is not None:
for k, v in datum.value_map().items(): # pylint: disable=invalid-name
file.params.append(
HeaderItem(
mnemonic=f"{datum.name} ({k})", value=v, descr="REFERENCE"
Expand Down
2 changes: 2 additions & 0 deletions las_geoh5/import_las.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def create_or_append_drillhole(
lasfile: lasio.LASFile,
drillhole_group: DrillholeGroup,
group_name: str,
*,
translator: LASTranslator | None = None,
collocation_tolerance: float = 0.01,
logger: logging.Logger | None = None,
Expand Down Expand Up @@ -354,6 +355,7 @@ def las_to_drillhole(
data: lasio.LASFile | list[lasio.LASFile],
drillhole_group: DrillholeGroup,
property_group: str,
*,
surveys: Path | list[Path] | None = None,
logger: logging.Logger | None = None,
options: ImportOptions | None = None,
Expand Down
936 changes: 488 additions & 448 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ tqdm = "^4.66.1"

## dependencies from Git repositories
#------------------------------------
geoh5py = {version = ">=0.9.1, <0.11", allow-prereleases = true}
#geoh5py = {git = "https://github.com/MiraGeoscience/geoh5py.git", rev = "develop"}
#geoh5py = {version = ">=0.9.1, <0.11", allow-prereleases = true}
geoh5py = {git = "https://github.com/MiraGeoscience/geoh5py.git", rev = "release/0.10.0"}
#geoh5py = {path = "../geoh5py", develop = true}

[tool.poetry.group.dev.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/geoh5_to_las_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import lasio
import numpy as np
import pytest
from geoh5py.groups.drillhole_group import DrillholeGroup
from geoh5py.groups.drillhole import DrillholeGroup
from geoh5py.objects.drillhole import Drillhole
from geoh5py.shared.utils import compare_entities
from geoh5py.workspace import Workspace
Expand Down
1 change: 1 addition & 0 deletions tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def write_import_params_file(
property_group_name: str,
files: list[Path],
collar_xyz_names: tuple[str, str, str],
*,
skip_empty_header=False,
) -> Path:
workspace = drillhole_group.workspace
Expand Down

0 comments on commit fe1acb0

Please sign in to comment.