Skip to content

Commit 326ae19

Browse files
authored
Merge pull request #54 from ProjectPythia/main
[pull] main from ProjectPythia:main
2 parents 444fee9 + fafea42 commit 326ae19

File tree

16 files changed

+43
-45
lines changed

16 files changed

+43
-45
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ updates:
44
# directory: "/"
55
# schedule:
66
# interval: daily
7-
- package-ecosystem: 'github-actions'
8-
directory: '/'
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
99
schedule:
1010
# Check for updates once a week
11-
interval: 'weekly'
11+
interval: "weekly"

.github/workflows/nightly-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: nightly-build
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '0 0 * * *' # Daily “At 00:00”
6+
- cron: "0 0 * * *" # Daily “At 00:00”
77

88
jobs:
99
build:

.github/workflows/publish-book.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,3 @@ jobs:
1616
deploy:
1717
needs: build
1818
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
19-
with:
20-
cname: foundations.projectpythia.org

.github/workflows/trigger-preview.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ jobs:
1717
with:
1818
artifact_name: book-zip-${{ needs.find-pull-request.outputs.number }}
1919
destination_dir: _preview/${{ needs.find-pull-request.outputs.number }} # deploy to subdirectory labeled with PR number
20-
is_preview: 'true'
21-
cname: foundations.projectpythia.org
20+
is_preview: "true"
2221

2322
preview-comment:
2423
needs: find-pull-request

.pre-commit-config.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v5.0.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
@@ -10,7 +10,7 @@ repos:
1010
- id: double-quote-string-fixer
1111

1212
- repo: https://github.com/psf/black
13-
rev: 23.12.1
13+
rev: 25.1.0
1414
hooks:
1515
- id: black
1616

@@ -20,7 +20,7 @@ repos:
2020
- id: blackdoc
2121

2222
- repo: https://github.com/PyCQA/flake8
23-
rev: 7.0.0
23+
rev: 7.1.1
2424
hooks:
2525
- id: flake8
2626

@@ -29,17 +29,12 @@ repos:
2929
hooks:
3030
- id: seed-isort-config
3131
- repo: https://github.com/PyCQA/isort
32-
rev: 5.13.2
32+
rev: 6.0.0
3333
hooks:
3434
- id: isort
3535

36-
- repo: https://github.com/pre-commit/mirrors-prettier
37-
rev: v3.1.0
38-
hooks:
39-
- id: prettier
40-
4136
- repo: https://github.com/nbQA-dev/nbQA
42-
rev: 1.7.1
37+
rev: 1.9.1
4338
hooks:
4439
- id: nbqa-black
4540
additional_dependencies: [black]

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cff-version: 1.2.0
2-
message: 'If you use this resource, please cite it as below.'
2+
message: "If you use this resource, please cite it as below."
33
authors:
44
- family-names: Rose
55
given-names: Brian E. J.
@@ -69,6 +69,6 @@ authors:
6969
orcid: https://orcid.org/0000-0002-2666-8493
7070
website: https://github.com/anissa111
7171
affiliation: UCAR/NCAR
72-
title: 'Pythia Foundations'
72+
title: "Pythia Foundations"
7373
version: v2023.05.01
7474
doi: 10.5281/zenodo.7884571

_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Pythia Foundations
55
author: the <a href="https://projectpythia.org/">Project Pythia</a> Community
66
logo: images/logos/pythia_logo-white-rtext.svg
77
email: projectpythia@ucar.edu
8-
copyright: '2024'
8+
copyright: "2024"
99

1010
exclude_patterns:
1111
- README.md
@@ -91,15 +91,15 @@ sphinx:
9191
config:
9292
nb_execution_raise_on_error: true # raise exception in build if there are notebook errors (this flag is ignored if building on binder)
9393
linkcheck_request_headers:
94-
'https://docs.github.com/':
94+
"https://docs.github.com/":
9595
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0
9696
html_favicon: images/icons/favicon.ico
97-
html_last_updated_fmt: '%-d %B %Y'
97+
html_last_updated_fmt: "%-d %B %Y"
9898
html_theme: sphinx_pythia_theme
9999
html_permalinks_icon: '<i class="fas fa-link"></i>'
100100
html_theme_options:
101101
analytics:
102-
google_analytics_id: 'G-G57FLM9M46'
102+
google_analytics_id: "G-G57FLM9M46"
103103
home_page_in_toc: true
104104
repository_url: https://github.com/ProjectPythia/pythia-foundations # Online location of your book
105105
repository_branch: main # Which branch of the repository should be used when creating links (optional)

core/data-formats/netcdf-cf.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,6 @@
983983
"\n",
984984
"- [CF Conventions doc (1.7)](http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/cf-conventions.html)\n",
985985
"- [Jonathan Gregory's old CF presentation](http://cfconventions.org/Data/cf-documents/overview/viewgraphs.pdf)\n",
986-
"- [NASA ESDS \"Dataset Interoperability Recommendations for Earth Science\"](https://earthdata.nasa.gov/user-resources/standards-and-references/dataset-interoperability-recommendations-for-earth-science)\n",
987986
"- [CF Data Model (cfdm) python package tutorial](https://ncas-cms.github.io/cfdm/tutorial.html)\n",
988987
"- [Tim Whiteaker's cfgeom python package (GitHub repo)](https://github.com/twhiteaker/CFGeom) and [(tutorial)]( https://twhiteaker.github.io/CFGeom/tutorial.html)\n",
989988
"- [netCDF4 Documentation](https://unidata.github.io/netcdf4-python/)"
@@ -1013,7 +1012,7 @@
10131012
"name": "python",
10141013
"nbconvert_exporter": "python",
10151014
"pygments_lexer": "ipython3",
1016-
"version": "3.10.9"
1015+
"version": "3.11.9"
10171016
}
10181017
},
10191018
"nbformat": 4,

core/datetime/datetime.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
"\n",
352352
"In these examples, we will look at current data pertaining to coastal tides during a [tropical cyclone storm surge](http://www.nhc.noaa.gov/surge/).\n",
353353
"\n",
354-
"The [lunar day](http://oceanservice.noaa.gov/education/kits/tides/media/supp_tide05.html) is 24 hours and 50 minutes; there are two low tides and two high tides in that time duration. If we know the time of the current high tide, we can easily calculate the occurrence of the next low and high tides by using the [timedelta class](https://docs.python.org/3/library/datetime.html#timedelta-objects). (In reality, the *exact time* of tides is influenced by local coastal effects, in addition to the laws of celestial mechanics, but we will ignore that fact for this exercise.)\n",
354+
"The [lunar day](https://tidesandcurrents.noaa.gov/glossary.html#lunarday) is 24 hours and 50 minutes; there are two low tides and two high tides in that time duration. If we know the time of the current high tide, we can easily calculate the occurrence of the next low and high tides by using the [timedelta class](https://docs.python.org/3/library/datetime.html#timedelta-objects). (In reality, the *exact time* of tides is influenced by local coastal effects, in addition to the laws of celestial mechanics, but we will ignore that fact for this exercise.)\n",
355355
"\n",
356356
"The `timedelta` class is initialized by supplying time duration, usually supplied with [keyword arguments](https://docs.python.org/3/glossary.html#term-argument), to clearly express the length of time. The `timedelta` class allows you to perform arithmetic with dates and times using standard operators (i.e., `+`, `-`, `*`, `/`). You can use these operators with a `timedelta` object, and either another `timedelta` object, a datetime object, or a numeric literal, to obtain objects representing new dates and times.\n",
357357
"\n",
@@ -554,7 +554,7 @@
554554
"name": "python",
555555
"nbconvert_exporter": "python",
556556
"pygments_lexer": "ipython3",
557-
"version": "3.10.9"
557+
"version": "3.11.9"
558558
}
559559
},
560560
"nbformat": 4,

core/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ Increasingly, these individuals and groups
9898
are formally packaging and releasing their code for use within their community.
9999
For instance, Andrew Dawson (an atmospheric scientist at Oxford)
100100
does a lot of EOF analysis and manipulation of wind data,
101-
so he has released his [eofs](https://ajdawson.github.io/eofs/latest/)
102-
and [windspharm](https://ajdawson.github.io/windspharm/latest/) libraries
101+
so he has released his [eofs](https://ajdawson.github.io/eofs/)
102+
and [windspharm](https://ajdawson.github.io/windspharm/) libraries
103103
(which are able to handle data arrays from NumPy or Xarray).
104104
Similarly, a group at the Atmospheric Radiation Measurement (ARM) Climate Research Facility
105105
have released their Python ARM Radar Toolkit ([Py-ART](http://arm-doe.github.io/pyart/))

0 commit comments

Comments
 (0)