Skip to content

Commit

Permalink
Merge pull request #65 from AI4S2S/fix-lilioname
Browse files Browse the repository at this point in the history
Changed s2spy.time to lilio where needed.
  • Loading branch information
ClaireDons authored Jan 19, 2024
2 parents ee8ff0a + b7c4184 commit 5809bbb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).

### Changed
- Consistent output type of train-test split as input ([#62](https://github.com/AI4S2S/lilio/pull/62)).
- Corrected s2spy.time to lilio ([#65](https://github.com/AI4S2S/lilio/pull/64))

## 0.4.1 (2023-09-11)
### Added
Expand Down
4 changes: 2 additions & 2 deletions docs/notebooks/all_about_the_calendar.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Here we copy-paste the calendar, and we import the required classes from `s2spy.time`. Note that it reproduces itself when you call `cal`"
"Here we copy-paste the calendar, and we import the required classes from `lilio`. Note that it reproduces itself when you call `cal`"
]
},
{
Expand Down Expand Up @@ -514,7 +514,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.5"
"version": "3.9.6"
},
"orig_nbformat": 4,
"vscode": {
Expand Down
12 changes: 6 additions & 6 deletions docs/notebooks/tutorial_calendar_shifter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"Another example could be that we wish to investigate the influence of intraseasonal \n",
"variability of one of our precursors over time.\n",
"\n",
"With `s2spy.calendar_shifter`, the user can easily create calendars that suit these needs.\n",
"With `lilio.calendar_shifter`, the user can easily create calendars that suit these needs.\n",
"This notebook shows how to:\n",
" * Shift a calendar n number of times and return a list of those calendars\n",
" * Resample a dataset to those calendars resulting in an `xarray.Dataset`\n",
Expand Down Expand Up @@ -68,7 +68,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Then we build up a list of calendars. We shift (using `s2spy.calendar_shifter.staggered_calendar`) the initial calendar by 7 days three times such that we get four calendars:\n",
"Then we build up a list of calendars. We shift (using `lilio.calendar_shifter.staggered_calendar`) the initial calendar by 7 days three times such that we get four calendars:\n",
"\n",
"(note that the anchor date does not change, only the gaps relative to the anchor date change)"
]
Expand Down Expand Up @@ -130,7 +130,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Resample by using the `s2spy.calendar_shifter.calendar_list_resampler` function.\n",
"Resample by using the `lilio.calendar_shifter.calendar_list_resampler` function.\n",
"\n",
"Before we resample, it is important to map our calendar to the desired years. Before, we mapped it to the year\n",
"it to 2021. Now, we can set it to other years using:\n",
Expand Down Expand Up @@ -170,7 +170,7 @@
"metadata": {},
"source": [
"Now we we have to resample `ds` to all the calendars in `cal_list` using \n",
"`s2spy.time.resample`.\n",
"`lilio.resample`.\n",
"\n",
"We can do that with a simple list comprehension:"
]
Expand All @@ -189,7 +189,7 @@
"metadata": {},
"source": [
"If you wish to also concatenate all resampled data to one `xr.Dataset`, we can use the \n",
"built-in `s2spy.calendar_shifter.calendar_list_resampler` function which resamples the \n",
"built-in `lilio.calendar_shifter.calendar_list_resampler` function which resamples the \n",
"data to all the calendars in cal_list and concatenates these datasets along a new \n",
"dimension (default name is 'step')."
]
Expand Down Expand Up @@ -221,7 +221,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.5"
"version": "3.9.6"
},
"orig_nbformat": 4,
"vscode": {
Expand Down
2 changes: 1 addition & 1 deletion lilio/traintest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""s2spy train/test splitting methods.
"""lilio train/test splitting methods.
Wrapper around sklearn splitters for working with (multiple) xarray dataarrays.
"""
Expand Down

0 comments on commit 5809bbb

Please sign in to comment.