Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ name: Upload Python Package

on:
release:
types: [created]
types: [released]

jobs:
deploy:

runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand Down
31 changes: 8 additions & 23 deletions .github/workflows/python-request.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,33 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python on pull request
name: pytest Build

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
build:

if: github.event.pull_request.draft == false
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.11]
os: [ubuntu-latest, macos-latest, windows-latest]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v4
- name: Set up mamba ${{ matrix.python-version }}
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: 'latest'
environment-file: environment.yml
init-shell: bash
environment-name: IS2view
cache-environment: true
post-cleanup: 'all'
create-args: >-
python=${{ matrix.python-version }}
flake8
pytest
pytest-cov
pytest-runner
cython
- name: Set up pixi environment
uses: prefix-dev/setup-pixi@v0.9.1
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
pixi run lint
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

pixi run lint "--exit-zero --max-complexity=10 --max-line-length=127"
18 changes: 18 additions & 0 deletions .github/workflows/ruff-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Ruff Format

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- main

jobs:
ruff-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Format and annotate PR
uses: astral-sh/ruff-action@v3
with:
version: "latest"
args: "format --check --diff"
53 changes: 35 additions & 18 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,33 +1,50 @@
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
cff-version: 1.3.0
title: IS2view
message: Interactive visualization and data extraction tool for the ICESat-2 ATL14/15 Gridded Land Ice Height Products
abstract: Interactive visualization and data extraction tool for the ICESat-2 ATL14/15 Gridded Land Ice Height Products
type: software
keywords:
- ICESat-2
- elevation
- Digital Elevation Model
- Jupyter
- xarray
license: MIT
version: "0.1.1"
date-released: "2025-01-06"
message: If you use this software, please consider citing our library

authors:
- given-names: Tyler
family-names: Sutterley
affiliation: University of Washington, Applied Physics Laboratory
- given-names: Ben

contributors:
- given-names: Benjamin
family-names: Smith
affiliation: University of Washington, Applied Physics Laboratory

contact:
- family-names: Sutterley
given-names: Tyler C.
orcid: "https://orcid.org/0000-0002-6964-1194"

identifiers:
- type: doi
value: 10.5281/zenodo.8015463
description: Zenodo Archive
repository-code: 'https://github.com/tsutterley/IS2view'
url: 'https://is2view.readthedocs.io'
repository: 'https://pypi.org/project/IS2view'
repository-artifact: 'https://anaconda.org/conda-forge/is2view'
description: Persistent identifier for IS2view
- type: url
value: https://github.com/tsutterley/IS2view
description: GitHub repository for IS2view
- type: url
value: https://pypi.org/project/IS2view
description: IS2view on PyPI
- type: url
value: https://anaconda.org/conda-forge/is2view
description: IS2view on conda-forge
repository-code: "https://github.com/tsutterley/IS2view"
url: "https://is2view.readthedocs.io"
doi: "10.5281/zenodo.8015463"
version: "0.1.1"
date-released: "2025-01-06"
keywords:
- ICESat-2
- elevation
- digital elevation models
- ipython
- jupyter
- graphics
license: MIT

83 changes: 35 additions & 48 deletions CODE_OF_CONDUCT.rst → CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
===============
Code of Conduct
===============
# Code of Conduct

Our Pledge
##########
## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
Expand All @@ -15,39 +12,37 @@ and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

Our Standards
#############
## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* Offensive comments related to gender, gender identity and expression, sexual orientation,
- Offensive comments related to gender, gender identity and expression, sexual orientation,
disability, mental illness, physical appearance, body size, race, or religion
* Deliberate misgendering or use of "dead" or rejected names
* The use of sexualized language or imagery, and sexual attention or
- Deliberate misgendering or use of "dead" or rejected names
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Incitement or threats of violence towards any individual,
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Incitement or threats of violence towards any individual,
including encouraging a person to commit suicide or to engage in self-harm
* Publishing others' private information, such as a physical or email
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Advocating for, or encouraging, any of the above behavior
* Other conduct which could reasonably be considered inappropriate in a
- Advocating for, or encouraging, any of the above behavior
- Other conduct which could reasonably be considered inappropriate in a
professional setting

Enforcement Responsibilities
############################
## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
Expand All @@ -59,25 +54,21 @@ comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

Enforcement
###########
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
`@tsutterley <mailto: tsutterl@uw.edu>`_.
Instances of abusive, harassing, or otherwise unacceptable behavior can be
reported to the organizational leaders responsible for enforcement.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

Enforcement Guidelines
######################
## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

1. Correction
-------------
### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
Expand All @@ -86,8 +77,7 @@ unprofessional or unwelcome in the community.
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

2. Warning
----------
### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.
Expand All @@ -99,8 +89,7 @@ includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

3. Temporary Ban
----------------
### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
Expand All @@ -111,26 +100,24 @@ private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

4. Permanent Ban
----------------
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

Attribution
###########
## Attribution

This code of conduct is adapted from the `Contributor Covenant <https://www.contributor-covenant.org/>`_
`Code of Conduct <https://www.contributor-covenant.org/version/2/1/code_of_conduct.html>`_ and
the `Geek Feminism <http://geekfeminism.wikia.com>`_
`Community Anti-Harassment Policy <http://geekfeminism.wikia.com/wiki/Community_anti-harassment/Policy>`_.
This code of conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/)
[Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html) and
the [Geek Feminism](http://geekfeminism.wikia.com)
[Community Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Community_anti-harassment/Policy).

Community Impact Guidelines were inspired by `Mozilla's code of conduct
enforcement ladder <https://github.com/mozilla/diversity>`_.
Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

We have adapted these documents for our own use under the terms of the
`Creative Commons Attribution License <https://creativecommons.org/licenses/by/4.0/>`_.
[Creative Commons Attribution License](https://creativecommons.org/licenses/by/4.0/).
2 changes: 2 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [Tyler Sutterley (University of Washington)](http://psc.apl.uw.edu/people/investigators/tyler-sutterley/)
- [Benjamin Smith (University of Washington)](http://psc.apl.uw.edu/people/investigators/ben-smith/)
2 changes: 0 additions & 2 deletions CONTRIBUTORS.rst

This file was deleted.

2 changes: 2 additions & 0 deletions IS2view/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@

Documentation is available at https://is2view.readthedocs.io
"""

import IS2view.utilities
import IS2view.version
from IS2view.api import Leaflet, basemaps, layers, image_service_layer
from IS2view.convert import convert
from IS2view.io import open_dataset, from_file, from_rasterio, from_xarray
from IS2view.tools import widgets

# get semantic version from setuptools-scm
__version__ = IS2view.version.version
Loading