Allow permanent switching of USE_CFPINT

Open Beginner friendly
#7,048 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python

Research direction

Start with the Future property in lib/iris/init.py referenced by the issue, then compare the public set() APIs for COMBINE_POLICY and LOAD_CONTROLS. Trace how USE_CFPINT is currently defined and controlled. Done means users can permanently enable or disable Pint units through a documented global set-style interface.

Written by the indexing model from the issue text.

Description

Feature: cfpint

If you want to permanently (globally) switch to Pint units, it should be easy to do so
e.g. say something like USE_CF_PINT.set(True).

This is basically the same as COMBINE_POLICY.set()
or netcdf LOAD_CONTROLS.set()
(or, assigning to the property in Future)

Dominant language
Python
Stars
724
Forks
317
Avg merge
3d 20h
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SciTools/iris

All issues in SciTools/iris

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.