Skip to content

Commit 0d9f993

Browse files
authored
Allow configuring CPU usage during SEG-Y import/export (#392)
* Update CPU count configuration for parallel operations Changes have been made to improve the control of parallel computations in the application. The number of CPUs used by the mdio_to_segy and to_zarr methods can now be controlled by altering environmental variables MDIO__EXPORT__CPU_COUNT and MDIO__IMPORT__CPU_COUNT respectively. This allows users to optimize the program's performance based on their specific hardware setup. * update lockfile * update black to fix security vulnerability * remove double newline from beginning of modules
1 parent 1571a00 commit 0d9f993

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+417
-444
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Sphinx configuration."""
2+
23
project = "MDIO"
34
author = "TGS"
45
copyright = "2023, TGS"

noxfile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Nox sessions."""
22

3-
43
import os
54
import shlex
65
import shutil

poetry.lock

Lines changed: 398 additions & 397 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ cloud = ["s3fs", "gcsfs", "adlfs"]
5050
lossy = ["zfpy"]
5151

5252
[tool.poetry.group.dev.dependencies]
53-
black = "^23.12.1"
53+
black = "^24.4.2"
5454
coverage = {version = "^7.4.0", extras = ["toml"]}
5555
darglint = "^1.8.1"
5656
flake8 = "^7.0.0"

src/mdio/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""MDIO library."""
22

3-
43
from importlib import metadata
54

65
from mdio.api import MDIOReader

src/mdio/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Command-line interface."""
22

3-
43
from __future__ import annotations
54

65
import importlib

src/mdio/api/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""API Module."""
22

3-
43
from .accessor import MDIOReader
54
from .accessor import MDIOWriter
65

src/mdio/api/io_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Utilities related to API functions and classes."""
22

3-
43
from __future__ import annotations
54

65
from typing import Any

src/mdio/commands/copy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""MDIO Dataset copy command."""
22

3-
43
from __future__ import annotations
54

65
from click import STRING

src/mdio/commands/segy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""SEG-Y Import/Export CLI Plugin."""
22

3-
43
from typing import Any
54

65
from click import BOOL

0 commit comments

Comments
 (0)