Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Issue/86 remove torch #215

Merged
merged 3 commits into from
Oct 11, 2021
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
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install git+https://github.com/SheffieldSolar/PV_Live-API
pip install -e .
pip install -e .[torch]
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ conda activate nowcasting_dataset
pip install -e .
```

Note you can install the [pytorch](https://github.com/pytorch/pytorch)
and [pytorch_lightning](https://github.com/PyTorchLightning/pytorch-lightning) using
```shell
pip install -e .[torch]
```
but it is only used to create a dataloader for machine learning models.

## Pip

A (probably older) version is also available through `pip install nowcasting-dataset`
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ xarray
ipykernel
h5netcdf
gcsfs
torch
pytorch-lightning
dask
pvlib
pyproj
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
author_email="[email protected]",
company="Open Climate Fix Ltd",
install_requires=install_requires,
extras_require={"torch": ["torch", "pytorch_lightning"]},
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(),
Expand Down