Skip to content

Commit

Permalink
Updated to build with macOS Sonoma.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdolinar committed Nov 18, 2023
1 parent 706d232 commit 5acd70c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/XmsInterp-CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ jobs:
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install conan==1.41.0 conan-package-tools==0.35.1 devpi-client wheel MarkupSafe==2.0.0
pip install pyYAML==5.3.1 conan==1.41.0 conan-package-tools==0.35.1 devpi-client wheel MarkupSafe==2.0.0
python -m pip install -i https://public.aquapi.aquaveo.com/aquaveo/stable/+simple/ "xmsconan>=1.0.4,<2"
# Login to Aquaveo Docker
- name: Login to Aquaveo Docker
Expand Down Expand Up @@ -328,7 +328,7 @@ jobs:
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install conan==1.41.0 conan-package-tools==0.35.1 devpi-client wheel MarkupSafe==2.0.0
pip install pyYAML==5.3.1 conan==1.41.0 conan-package-tools==0.35.1 devpi-client wheel MarkupSafe==2.0.0
python -m pip install -i https://public.aquapi.aquaveo.com/aquaveo/stable/+simple/ "xmsconan>=1.0.4,<2"
# Setup Visual Studio
- name: Setup Visual Studio
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.2)
cmake_minimum_required(VERSION 3.11.0)
cmake_policy(SET CMP0015 NEW) # Link Directory Pathing
set(CMAKE_DEBUG_POSTFIX _d)

Expand All @@ -10,6 +10,7 @@ endif()

if (APPLE)
set(CMAKE_POSITION_INDEPENDENT_CODE False)
add_compile_definitions(_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION)
else()
set(CMAKE_POSITION_INDEPENDENT_CODE True)
endif()
Expand Down
4 changes: 2 additions & 2 deletions _package/xms/interp/api/interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ def interpolate_to_grid(interpolation_points, method, grid=None, size=(100, 100)
data = xr.DataArray(coords={'x': x_coord, 'y': y_coord}, dims=['x', 'y'], data=z_values.T, name=z)

if in_place and grid is not None:
if xr_enabled and type(grid) == xr.DataArray or hasattr(grid, 'to_dataset'):
if xr_enabled and isinstance(grid, xr.DataArray) or hasattr(grid, 'to_dataset'):
grid.name = z
grid.data = z_values

if xr_enabled and type(grid) == xr.Dataset or hasattr(grid, 'to_array'):
if xr_enabled and isinstance(grid, xr.Dataset) or hasattr(grid, 'to_array'):
if data is not None:
grid[z] = data
else:
Expand Down

0 comments on commit 5acd70c

Please sign in to comment.