Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.2.0 #63

Merged
merged 128 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
7371f38
Prepare for v0.1.9
p-snft Jan 27, 2021
28ab60a
Add h0_dyn as an additional profile next to all other profiles
uvchik Jun 29, 2021
0561952
Remove the decision parameter and add docstrings
uvchik Jun 29, 2021
9189541
Add h0 dynamic to the example
uvchik Jun 29, 2021
3b6fa58
Remove import of warnings
uvchik Jun 29, 2021
1dffaf7
Remove "minute" column from frame with profiles
uvchik Jun 29, 2021
35f811f
Clean code
uvchik Jun 29, 2021
d781139
Add first unit tests
uvchik Jun 29, 2021
fdf297b
Add tests
uvchik Nov 19, 2021
fc579fa
Drop unused columns
uvchik Nov 19, 2021
0d97ae4
Merge pull request #39 from oemof/revise-dynamic-h0-profile
uvchik Nov 19, 2021
ab50ee7
Merge pull request #40 from oemof/add-unit-tests
uvchik Nov 19, 2021
7ae1fb0
Add new template
uvchik Nov 19, 2021
da150bd
Fix style issues (black, isort, flake8)
uvchik Nov 19, 2021
51a4886
Move examples into the package (as it was before)
uvchik Nov 19, 2021
d57ef82
Add extra requirements
uvchik Nov 19, 2021
2147fe2
Reduce number of test environments
uvchik Nov 19, 2021
a9f208e
Fix tests
uvchik Nov 19, 2021
5373f7f
Add github workflow and templates from oemof.solph
uvchik Nov 19, 2021
f7c2920
Fix black issues
uvchik Nov 19, 2021
4f3d7d7
Allow any coverage for the revision phase
uvchik Nov 19, 2021
5fc4a3b
Add github actions to tox
uvchik Nov 19, 2021
8d75e94
Add coverage to all test envirnoments
uvchik Nov 19, 2021
bf28e94
Restrict coverage to min 85%
uvchik Nov 19, 2021
f59e157
Remove testmode in examples
uvchik Nov 19, 2021
c30b0eb
Install extra requirements in Python
uvchik Nov 19, 2021
f251c9c
Make example more straight forward
uvchik Nov 19, 2021
823ed2c
Move example to src dir
uvchik Nov 19, 2021
306e6a1
Fix black issues
uvchik Nov 19, 2021
f6c2a13
Remove codecov
uvchik Nov 19, 2021
0d4fefe
Add token for appveyor
uvchik Nov 19, 2021
38d08a1
Give appveyor a last chance
uvchik Nov 19, 2021
a239961
Give appveyor the very last chance
uvchik Nov 19, 2021
f04ad23
Reduce number of appveyor tests
uvchik Nov 19, 2021
b64249c
Move location of examples
p-snft Nov 23, 2021
f139a3d
Move test to test directory and fix path of data
uvchik Nov 23, 2021
10aacbe
Fix Manifest
uvchik Nov 23, 2021
35f8657
Add message if example data file is not found
uvchik Nov 24, 2021
c8fa235
Fix Black issue
uvchik Nov 24, 2021
0902286
Merge pull request #42 from oemof/revision/use-typical-oemof-template
uvchik Nov 25, 2021
d264fbc
Change branch in badges to dev
uvchik Nov 25, 2021
c6e6142
Remove Changelog from long description
uvchik Nov 25, 2021
dda0e49
Fix coveralls and appveyor badge links
uvchik Nov 25, 2021
59ffb18
Add workflow badges
uvchik Nov 25, 2021
c9284c6
Fix equations
uvchik Dec 7, 2021
dc7018d
Add imgmath to render equations
uvchik Dec 7, 2021
9f6389a
Add tables to explain electrical slp types
uvchik Dec 7, 2021
c90cbea
Change table layout
uvchik Dec 7, 2021
7d18248
Add more information about elec. load profiles
uvchik Dec 8, 2021
a77bd4e
Revert "Fix equations"
uvchik Dec 8, 2021
692ead0
Remove whitespaces
uvchik Dec 8, 2021
12fdfad
Fix csv table
uvchik Dec 8, 2021
b9015b4
Improve equation
uvchik Dec 8, 2021
ff8ab91
Revise documentation structure
uvchik Dec 9, 2021
82f8904
Ignore long line with url in pep checker
uvchik Dec 9, 2021
0846c1f
Add explanation of the assignment of values to building_class
MaGering Dec 14, 2021
9acfebc
Merge pull request #44 from oemof/docs/improve-docs
uvchik Dec 15, 2021
68850be
Fix merge conflicts
uvchik Dec 15, 2021
01e0102
Merge branch 'dev' of github.com:oemof/demandlib into features/docs-b…
uvchik Dec 15, 2021
57e8e92
Apply suggestions from code review
MaGering Dec 15, 2021
ba4d5c1
Update docs/bdew.rst
MaGering Jan 13, 2022
ed26909
Merge pull request #46 from oemof/features/docs-building_class-explan…
MaGering Jan 13, 2022
e720e39
Added label to the parameters of the used pandas functions to prevent…
GregorBecker Jun 5, 2022
7a2856a
Remove more deprecations found.
GregorBecker Jul 9, 2022
9be72f0
Merge pull request #51 from GregorBecker/dev
uvchik Jul 12, 2022
da5cebe
Release v0.1.9
p-snft Mar 28, 2023
c1f951f
Set version to v0.1.10
p-snft Mar 29, 2023
ea48365
Adhere to Black style
p-snft Mar 29, 2023
889b6e9
Remove Appveyor
p-snft Mar 29, 2023
b1be228
Add long_description_content_type
p-snft Mar 29, 2023
4e3fafa
Add changes to changelog
p-snft Mar 29, 2023
f44f449
Merge pull request #52 from oemof/revision/remove_appveyor
p-snft Mar 29, 2023
6206dfd
Fix/ remove broken links
p-snft Mar 29, 2023
b2e5e5b
Remove broken links
p-snft Mar 29, 2023
59d5f91
Do not check link that blocks GitHub
p-snft Jun 26, 2023
5cb5784
Move linkcheck_ignore to correct place
p-snft Jun 26, 2023
26b910b
Update heat_building.py
ddceruti Oct 25, 2023
56c9814
Update heat_building.py
ddceruti Oct 25, 2023
b13fadf
Update heat_building.py
ddceruti Oct 25, 2023
1e87642
update with new error message
Oct 26, 2023
bb39a03
amend previous changes, update AUTHORS and CHANGELOG
Oct 26, 2023
8db53ec
Update src/demandlib/bdew/heat_building.py
ddceruti Apr 15, 2024
864824d
Update src/demandlib/bdew/heat_building.py
ddceruti Apr 15, 2024
1ebdc92
Fix FutureWarnings
maurerle Apr 15, 2024
a8e869f
Simplify error message
ddceruti Apr 24, 2024
00452ca
Merge pull request #55 from ddceruti/dev
p-snft Jun 25, 2024
343f938
update type casts to use int for hour and minute
maurerle Jun 25, 2024
898a10d
Merge branch 'fix_future_warnings' of github.com:maurerle/demandlib i…
p-snft Jun 26, 2024
b79f69a
Adhere to Black
p-snft Jun 26, 2024
3d69d16
Merge branch 'maurerle-fix_future_warnings' into dev
p-snft Jun 26, 2024
a70a7b8
Merge MANIFEST.in into pyproject.toml
p-snft Jun 26, 2024
dda0d31
update github runner actions
maurerle Jun 26, 2024
42170de
add maurerle to authors
maurerle Jun 26, 2024
2c72ea7
update python envs to supported versions
maurerle Jun 26, 2024
5ab1d38
Update Python version support info
p-snft Jun 26, 2024
94dd6b4
Merge pull request #61 from maurerle/update_actions
p-snft Jun 27, 2024
7faa3cb
Merge branch 'dev' into revision/update_build_system
p-snft Jun 27, 2024
2485da2
Remove a lot of old junk
fwitte Jun 27, 2024
ab75918
Add features into pyproject.toml
fwitte Jun 27, 2024
28e947c
Tidy up tox.ini and fix the dependecies
fwitte Jun 27, 2024
e9aaa1a
Try to fix the gh-action configration to work with extra requirements
fwitte Jun 27, 2024
3c6c3ec
Remove unnecessary step in pytest
fwitte Jun 27, 2024
0d2f2c6
Add tox dependency for gh actions checks and pytest
fwitte Jun 27, 2024
4c8796c
Adhere to Black
p-snft Jun 27, 2024
20fc94d
Move matplotlib to test dependencies
fwitte Jun 27, 2024
5006df1
Ignore venv
p-snft Jun 27, 2024
0ea6652
Merge branch 'dev' into revision/update_build_system
fwitte Jun 27, 2024
f1177a9
Adhere to Black
p-snft Jun 27, 2024
3bd2bf7
Merge branch 'dev' into revision/update_build_system
fwitte Jun 27, 2024
3b69550
Try to install things more better
fwitte Jun 27, 2024
83bc21f
Shorten line
p-snft Jun 27, 2024
a92ec81
Fix dependency installation between gh actions and tox
fwitte Jun 27, 2024
7d3dae0
Fix typo and rename job
fwitte Jun 27, 2024
d495ee0
Reformat AUTHORS.rst
p-snft Jun 27, 2024
e137c83
Final clean up for today?
fwitte Jun 27, 2024
d587cfd
No
fwitte Jun 27, 2024
816e11a
Delete report tox env
p-snft Jun 27, 2024
760d0ec
Merge pull request #62 from oemof/revision/update_build_system
p-snft Jun 27, 2024
f030f15
Add Francesco to autor list
p-snft Jun 27, 2024
05201e1
Add build to readthedocs.yml
p-snft Jun 27, 2024
5e2d578
Show latest pytest badge in README.rst
p-snft Jun 27, 2024
c4ecf4b
Remove utf-8 characters from docstring
p-snft Jun 27, 2024
38a6117
Update copyriht year in docs config
p-snft Jun 27, 2024
157847a
Remove hardcoded version from doc config
p-snft Jun 27, 2024
2500bf7
Improve compatibility with Pandas 3.0
p-snft Jun 27, 2024
e33d648
Require Pandas 2.0+
p-snft Jun 27, 2024
7f9d042
Release v0.2.0
p-snft Jun 27, 2024
604090a
Update CHANGELOG.rst
p-snft Jun 27, 2024
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
16 changes: 13 additions & 3 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
[paths]
source = src

[run]
omit = tests/*
*example.py
source = demandlib
branch = true
source =
src
tests
parallel = true

[report]
show_missing = true
precision = 2
omit = *migrations*
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# see https://editorconfig.org/
root = true

[*]
# Use Unix-style newlines for most files (except Windows files, see below).
end_of_line = lf
trim_trailing_whitespace = true
indent_style = space
insert_final_newline = true
indent_size = 4
charset = utf-8

[*.{bat,cmd,ps1}]
end_of_line = crlf

[*.{yml,yaml}]
indent_size = 2

[*.tsv]
indent_style = tab
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS, Debian, Ubuntu, Windows10]
- Python version [e.g. 3.11]

**Additional context**
Add any other context about the problem here.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/general-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: General issue
about: General purpose
title: ''
labels: ''
assignees: ''

---


13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
* Describe your pull request as transparent as possible
* What functionality does it implement?
* Where is it located?
* How does the API look?
...

* Related issues?

* Share your knowledge: Insights/Remarks

* Other comments and questions

* [] For new features: Remember the documentation!
38 changes: 38 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Black

on:
push:
branches:
- master
- dev
pull_request:


jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install Python dependencies
run: pip install black flake8

- name: Run linters
uses: wearerequired/lint-action@v2
with:
github_token: ${{ secrets.github_token }}
# Enable linters
black: true
flake8: false
# Mark the following line true if you want linters to attempt to autocorrect your code
auto_fix: false
git_name: "Greene Lab Linter"
git_email: "csgreene@upenn.edu"
38 changes: 38 additions & 0 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: packaging

on:
# Make sure packaging process is not broken
push:
branches: [master, dev]
pull_request:
# Make a package for release
release:
types: [published]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.11]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[build]
- name: Create packages
run: python -m build .
- name: Run twine check
run: twine check dist/*
- uses: actions/upload-artifact@v4
with:
name: tox-gh-actions-dist
path: dist
51 changes: 51 additions & 0 deletions .github/workflows/tox_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# NB: this name is used in the status badge
name: tox checks

on:
push:
branches:
- master
- dev
pull_request:

workflow_dispatch:
schedule:
- cron: "0 5 * * 6" # 5:00 UTC every Saturday

jobs:
lint:
name: ${{ matrix.toxenv }}
runs-on: ubuntu-latest

strategy:
matrix:
toxenv:
- clean
- check
- docs

steps:
- name: Git clone
uses: actions/checkout@v2

- name: Set up Python ${{ env.default_python || '3.11' }}
uses: actions/setup-python@v5
with:
python-version: "${{ env.default_python || '3.11' }}"

- name: Pip cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.toxenv }}-${{ hashFiles('tox.ini', 'pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.toxenv }}-
${{ runner.os }}-pip-

- name: Install dependencies
run: |
python -m pip install pip --upgrade
python -m pip install tox

- name: Run ${{ matrix.toxenv }}
run: python -m tox -e ${{ matrix.toxenv }}
41 changes: 41 additions & 0 deletions .github/workflows/tox_pytests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: tox pytests

on:
push:
branches:
- master
- dev
pull_request:

workflow_dispatch:
schedule:
- cron: "0 5 * * 6" # 5:00 UTC every Saturday

jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions coverage coveralls
- name: Test with tox
run: tox

- name: Check test coverage
run: coverage report -m --fail-under=${{ matrix.vcs == 'bzr' && 84 || 85 }}

- name: Report to coveralls
run: coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
96 changes: 53 additions & 43 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,66 +1,76 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
__pycache__

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
# Packages
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
*.egg-info
dist
build
eggs
.eggs
parts
bin
var
sdist
wheelhouse
develop-eggs
.installed.cfg
lib
lib64
venv*/
pyvenv*/
pip-wheel-metadata/

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.tox
.coverage.*
.cache
.pytest_cache/
nosetests.xml
coverage.xml
*,cover
.hypothesis/
htmlcov

# Translations
*.mo
*.pot

# Django stuff:
*.log
# Buildout
.mr.developer.cfg

# IDE project files
.project
.pydevproject
.idea
.vscode
*.iml
*.komodoproject

# Sphinx documentation
docs/_build/
doc/_build/
# Complexity
output/*.html
output/*/index.html

# PyBuilder
target/
# Sphinx
docs/_build

#Ipython Notebook
.ipynb_checkpoints
.DS_Store
*~
.*.sw[po]
.build
.ve
.env
.venv/
.cache
.pytest
.benchmarks
.bootstrap
.appveyor.token
*.bak
venv/

#IDEs
.idea/
# Mypy Cache
.mypy_cache/
Loading
Loading