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

Commit a5af07b

Browse files
Merge pull request #215 from openclimatefix/issue/86-remove-torch
Issue/86 remove torch
2 parents 4fa6173 + 3540306 commit a5af07b

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.github/workflows/python-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
pip install flake8 pytest
2222
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2323
pip install git+https://github.com/SheffieldSolar/PV_Live-API
24-
pip install -e .
24+
pip install -e .[torch]
2525
- name: Lint with flake8
2626
run: |
2727
# stop the build if there are Python syntax errors or undefined names

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ conda activate nowcasting_dataset
4545
pip install -e .
4646
```
4747

48+
Note you can install the [pytorch](https://github.com/pytorch/pytorch)
49+
and [pytorch_lightning](https://github.com/PyTorchLightning/pytorch-lightning) using
50+
```shell
51+
pip install -e .[torch]
52+
```
53+
but it is only used to create a dataloader for machine learning models.
54+
4855
## Pip
4956

5057
A (probably older) version is also available through `pip install nowcasting-dataset`

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ xarray
88
ipykernel
99
h5netcdf
1010
gcsfs
11-
torch
12-
pytorch-lightning
1311
dask
1412
pvlib
1513
pyproj

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
author_email="[email protected]",
1818
company="Open Climate Fix Ltd",
1919
install_requires=install_requires,
20+
extras_require={"torch": ["torch", "pytorch_lightning"]},
2021
long_description=long_description,
2122
long_description_content_type="text/markdown",
2223
packages=find_packages(),

0 commit comments

Comments
 (0)