From ce343bab93e8435dabef1166ed236b2785d89652 Mon Sep 17 00:00:00 2001 From: dalmijn <92092029+dalmijn@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:33:49 +0200 Subject: [PATCH] Release update (#132) * Release update * Expose a little more in main __init__ --- docs/changelog.qmd | 13 +++++-------- src/fiat/__init__.py | 8 ++------ src/fiat/io.py | 2 +- src/fiat/version.py | 2 +- 4 files changed, 9 insertions(+), 16 deletions(-) diff --git a/docs/changelog.qmd b/docs/changelog.qmd index a89df3d2..473e0c3a 100644 --- a/docs/changelog.qmd +++ b/docs/changelog.qmd @@ -2,16 +2,13 @@ title: "What's new?" --- -## Unreleased -These are the unreleased changes of Delft-FIAT - -### Added +## v0.1.1 (2024-10-04) +Small patch release. ### Changes - -### Deprecated - -### Documentation +- Bugfix regarding drivernotfound error in `GridSource` +- Fixed install from conda +- More functions and objects exposed directly under `fiat` -> e.g. `from fiat import open_grid` ## v0.1.0 (2024-10-03) The first full release of Delft-FIAT. diff --git a/src/fiat/__init__.py b/src/fiat/__init__.py index ff9c492b..7b75e03f 100644 --- a/src/fiat/__init__.py +++ b/src/fiat/__init__.py @@ -20,11 +20,7 @@ osr.UseExceptions() from .cfg import ConfigReader +from .io import open_csv, open_geom, open_grid from .main import FIAT +from .models import GeomModel, GridModel from .version import __version__ - -# if not importlib.util.find_spec("PySide2"): -# warnings.warn("PySide2 is not installed in \ -# this environment -> ui is not callable") -# else: -# from .gui import * diff --git a/src/fiat/io.py b/src/fiat/io.py index 03175f62..f85fea15 100644 --- a/src/fiat/io.py +++ b/src/fiat/io.py @@ -1331,7 +1331,7 @@ def __init__( _BaseIO.__init__(self, file, mode) if self.path.suffix not in GRID_DRIVER_MAP: - raise DriverNotFoundError("") + raise DriverNotFoundError(gog="Grid", path=self.path) driver = GRID_DRIVER_MAP[self.path.suffix] diff --git a/src/fiat/version.py b/src/fiat/version.py index 76ae84f6..519ec5e7 100644 --- a/src/fiat/version.py +++ b/src/fiat/version.py @@ -4,6 +4,6 @@ major = 1 minor = 1 build = 0 -suffix = ".dev" +suffix = "" __version__ = f"{main}.{major}.{minor}{suffix}"