Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
venaturum committed Sep 13, 2021
2 parents 53e1534 + 24cb98f commit 91a5ffc
Show file tree
Hide file tree
Showing 43 changed files with 4,709 additions and 2,588 deletions.
3 changes: 3 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
exclude_paths:
- 'staircase/_version.py'
- 'staircase/_typing.py'
- 'staircase/__init__.py'
- 'tests/**/*'
- 'tests/*'
- 'benchmarks/**/*'
Expand All @@ -9,3 +11,4 @@ exclude_paths:
- 'README.md'
- 'docs/*'
- 'docs/**/*'
- '.github/*'
48 changes: 48 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---

name: Bug Report
about: Create a bug report to help us improve staircase
title: "BUG:"
labels: "Bug"

---

- [ ] I have checked that this issue has not already been reported.

- [ ] I have confirmed this bug exists on the latest version of staircase.

---

**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.

#### Code Sample, a copy-pastable example

```python
# Your code here

```

#### Problem description

[this should explain **why** the current behaviour is a problem and why the expected output is a better solution]

#### Expected Output

#### Dependency Versions``

Please run the following code:

```python
import staircase
import pandas
import numpy

for pkg in (staircase, pandas, numpy):
print(pkg.__name__, pkg.__version__)
```

<details>

[paste the output here leaving a blank line after the details tag]

</details>
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation_improvement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---

name: Documentation Improvement
about: Report wrong or missing documentation
title: "DOC:"
labels: "Documentation"

---

#### Location of the documentation

[this should provide the location of the documentation, e.g. "https://www.staircase.dev/en/latest/reference/api/staircase.Stairs.fillna.html"]

**Note**: You can check the latest versions of the docs on `master` [here](https://www.staircase.dev/en/master/).

#### Documentation problem

[this should provide a description of what documentation you believe needs to be fixed/improved]

#### Suggested fix for documentation

[this should explain the suggested fix and **why** it's better than the existing documentation]
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---

name: Feature Request
about: Suggest an enhancement for staircase
title: "ENH:"
labels: "Enhancement"

---

#### Is your feature request related to a problem?

[if so, what is the problem? What do you want to do?"]

#### Describe the solution you'd like

[a DETAILED description of the feature request]

#### Additional context

[add any other context, code examples, or references to existing implementations about the feature request here]

```python
# Your code here, if applicable

```
4 changes: 4 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] ensure all linting tests pass
- [ ] changelog entry
14 changes: 14 additions & 0 deletions .github/workflows/assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Assign
on:
issue_comment:
types: created

jobs:
one:
runs-on: ubuntu-latest
steps:
- if: github.event.comment.body == 'take'
name:
run: |
echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}"
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload to test-PYPI
name: Upload to PYPI

on:
release:
Expand All @@ -19,8 +19,7 @@ jobs:
poetry install
- name: Build package
run: poetry build
- name: Publish to Test-PyPI
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}
11 changes: 10 additions & 1 deletion docs/release_notes/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ Changelog
=========


v2.0.1 2021-09-13

- bugfix for incorrect closed parameter not being produced by operations with right-closed step functions (#GH95)
- bugfix for slicing with non-fixed frequency period index (#GH108)
- bugfix for Stairs binary operations with np.nan reporting incorrect number of step changes (#GH109)
- throw `ClosedMismatchError` on binary operations with different `closed` values (#GH96)
Contributors: @amagee (Andrew Magee)


v2.0.0 2021-08-25

- see :ref:`What's new in Version 2 <release_notes.versiontwo>`
Expand Down Expand Up @@ -123,4 +132,4 @@ v1.0.0 2020-09-01

- updated documentation to include :ref:`A note on interval endpoints<getting_started.interval_endpoints>`
- parameter *start* in :meth:`staircase.Stairs.layer` made optional to make method symmetric with respect to time
- removed *staircase.Stairs.evaluate* method (superseded by :meth:`staircase.Stairs.sample`)
- removed *staircase.Stairs.evaluate* method (superseded by :meth:`staircase.Stairs.sample`)
Loading

0 comments on commit 91a5ffc

Please sign in to comment.