Skip to content

Add the recipe for the compass conda metapackage - #5

Merged
xylar merged 1 commit into
MPAS-Dev:masterfrom
xylar:add_recipe
Nov 6, 2020
Merged

xylar merged 1 commit into
MPAS-Dev:masterfrom
xylar:add_recipe

Conversation

@xylar

@xylar xylar commented Nov 6, 2020

Copy link
Copy Markdown
Collaborator

@xylar xylar self-assigned this Nov 6, 2020
@xylar
xylar merged commit 4f45822 into MPAS-Dev:master Nov 6, 2020
@xylar
xylar deleted the add_recipe branch November 6, 2020 10:19
@mark-petersen

Copy link
Copy Markdown
Collaborator

Thanks for saving the rest of us from these details. I need to learn more about conda packages, so this is a nice example.

I'm confused about how the conda package relates to the actual code, the repos, and the names. Right now, compass_0.1.11 lives in MPAS-Tools. So that will be removed? Will this new compass package include MpasMeshConverter.x and other codes in MPAS-Tools, or will those split off?

@xylar

xylar commented Nov 9, 2020 •

Copy link
Copy Markdown
Collaborator Author

@mark-petersen,

Thanks for saving the rest of us from these details. I need to learn more about conda packages, so this is a nice example.

Sure, happy to do it. But I think you would benefit from learning some of these details.

I'm confused about how the conda package relates to the actual code, the repos, and the names. Right now, compass_0.1.11 lives in MPAS-Tools. So that will be removed?

Yes, for sure. The recipe is for a "metapackage" that contains all of the conda tools that COMPASS needs. It couldn't live in MPAS-Model (because of the issue with how frequently it needs to be updated) but it doesn't really belong in MPAS-Tools, now that there is a separate COMPASS repo.

Will this new compass package include MpasMeshConverter.x and other codes in MPAS-Tools, or will those split off?

The compass metapackage includes mpas_tools as one of its packages. MpasMeshConverter.x is part of mpas_tools. Those tools will continue to live in the MPAS-Tools repo. I'm only moving the compass metapackage here, not the mpas_tools package.

trhille added a commit to trhille/compass that referenced this pull request Sep 26, 2026
Addressed review comments MPAS-Dev#1, MPAS-Dev#2, MPAS-Dev#3, MPAS-Dev#4, MPAS-Dev#5, MPAS-Dev#6, MPAS-Dev#7, MPAS-Dev#8 from the Copilot
review. Deferred MPAS-Dev#9 (Dask dependency) and MPAS-Dev#10 (test suite) as low priority.

CODE FIXES:

region) to the nearest region by great-circle distance (cKDTree), instead of
silently assigning them to basin 1 via argmax. Overlapping cells (multiple
regions) still pick the first matching region. Added lat/lon parameters to
build_basin_ids and updated the call site in load_mesh_and_basins.

greenland_3d.py so only the public API (Config and run) remains non-
underscored. This satisfies the repository convention that non-underscore
module-scope symbols should be documented in api.rst.

ice) with a finite JSON target would crash calibrate_gamma0 instead of being
excluded. Now NaN out empty regions in the target array before calibration, so
active_regions correctly excludes both NaN targets and empty regions.

DOC FIXES:

(it uses forcing_interval_annual). GrIS 3D stays in Monthly (correct).

{mesh}_2dThermalForcing_*.nc (GrIS) and {mesh}_3dThermalForcing_*.nc
(AIS; optional GrIS), and fixed lowercase smb→SMB.

locations (user/dev ismip7_forcing.rst) since the checked-in JSON requests 20
levels and it's configurable.

NETCDF3_64BIT" to "netCDF4 engine → nccopy -k nc6 for CDF-2" (actual
implementation uses netCDF4 + nccopy conversion).

block (required by ismip7_run as melt_params_path but was undocumented).

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants