Skip to content

Commit 35121d6

Browse files
committed
Rename to pysgod since gsodpy is taken on PyPi
that's what you get from creating stuff in 2014 and releasing in 2022.
1 parent 3bb64c8 commit 35121d6

File tree

16 files changed

+44
-44
lines changed

16 files changed

+44
-44
lines changed

.streamlit/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ tqdm
33
pandas
44
openpyxl
55
pyepw
6-
git+https://github.com/jmarrec/gsodpy/@update-TMY#egg=gsodpy
6+
git+https://github.com/jmarrec/pygsod/@main#egg=pygsod

.streamlit/streamlit_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import numpy as np
55
import pandas as pd
66
import streamlit as st
7-
from gsodpy.isdhistory import ISDHistory
8-
from gsodpy.output import GetOneStation
9-
from gsodpy.utils import FileType, OutputType
7+
from pygsod.isdhistory import ISDHistory
8+
from pygsod.output import GetOneStation
9+
from pygsod.utils import FileType, OutputType
1010

1111
EPHISTORY_PATH = Path(__file__).resolve().parent / "ep_weather_stations.xlsx"
1212

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Weather Data and Weather Normalization
22

33

4-
[![pypi](https://img.shields.io/pypi/v/gsodpy.svg)](https://pypi.org/project/gsodpy/)
5-
[![python](https://img.shields.io/pypi/pyversions/gsodpy.svg)](https://pypi.org/project/gsodpy/)
6-
[![Build Status](https://github.com/jmarrec/gsodpy/actions/workflows/dev.yml/badge.svg)](https://github.com/jmarrec/gsodpy/actions/workflows/dev.yml)
4+
[![pypi](https://img.shields.io/pypi/v/pygsod.svg)](https://pypi.org/project/pygsod/)
5+
[![python](https://img.shields.io/pypi/pyversions/pygsod.svg)](https://pypi.org/project/pygsod/)
6+
[![Build Status](https://github.com/jmarrec/pygsod/actions/workflows/dev.yml/badge.svg)](https://github.com/jmarrec/pygsod/actions/workflows/dev.yml)
77

88
## Caveat
99

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Put everything in the global namespace so you can access them by attribute
2-
# from gsodpy import (gsod, utils)
2+
# from pygsod import (gsod, utils)
33

44
from pkg_resources import get_distribution
55

66
# version number, from setup.py
7-
__version__ = get_distribution("gsodpy").version
7+
__version__ = get_distribution("pygsod").version
File renamed without changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import pandas as pd
88
from pyepw.epw import EPW
99

10-
from gsodpy.constants import RESULT_DIR, SUPPORT_DIR, WEATHER_DIR
11-
from gsodpy.ish_full import parse_ish_file
12-
from gsodpy.utils import as_path
10+
from pygsod.constants import RESULT_DIR, SUPPORT_DIR, WEATHER_DIR
11+
from pygsod.ish_full import parse_ish_file
12+
from pygsod.utils import as_path
1313

1414

1515
def clean_df(df, file):

gsodpy/gsod.py renamed to pygsod/gsod.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
import numpy as np
1818
import pandas as pd
1919

20-
from gsodpy.constants import WEATHER_DIR
21-
from gsodpy.noaadata import NOAAData
22-
from gsodpy.utils import DataType, get_valid_year, is_list_like
20+
from pygsod.constants import WEATHER_DIR
21+
from pygsod.noaadata import NOAAData
22+
from pygsod.utils import DataType, get_valid_year, is_list_like
2323

2424

2525
def parse_gsod_op_file(op_path):
@@ -321,7 +321,7 @@ def parse_gsod_op_file(op_path):
321321
return op
322322

323323

324-
# Gets only run if calling "python gsodpy.py" not if you import it
324+
# Gets only run if calling "python pygsod.py" not if you import it
325325
if __name__ == "__main__":
326326

327327
gsod = NOAAData(data_type=DataType.gsod)
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
import numpy as np
1818
import pandas as pd
1919

20-
from gsodpy.constants import WEATHER_DIR
21-
from gsodpy.noaadata import NOAAData
22-
from gsodpy.utils import (DataType, get_valid_year, is_list_like,
20+
from pygsod.constants import WEATHER_DIR
21+
from pygsod.noaadata import NOAAData
22+
from pygsod.utils import (DataType, get_valid_year, is_list_like,
2323
sanitize_usaf_wban)
2424

2525

@@ -192,7 +192,7 @@ def parse_isd_lite_op_file(op_path):
192192
return op
193193

194194

195-
# Gets only run if calling "python gsodpy.py" not if you import it
195+
# Gets only run if calling "python pygsod.py" not if you import it
196196
if __name__ == "__main__":
197197

198198
isd_lite = NOAAData(data_type=DataType.isd_lite)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
import pandas as pd
88

9-
from gsodpy.constants import ISDHISTORY_PATH
10-
from gsodpy.utils import as_path
9+
from pygsod.constants import ISDHISTORY_PATH
10+
from pygsod.utils import as_path
1111

1212

1313
class ISDHistory:
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
import numpy as np
2020
import pandas as pd
2121

22-
from gsodpy.constants import WEATHER_DIR
23-
from gsodpy.noaadata import NOAAData
24-
from gsodpy.utils import (DataType, get_valid_year, is_list_like,
22+
from pygsod.constants import WEATHER_DIR
23+
from pygsod.noaadata import NOAAData
24+
from pygsod.utils import (DataType, get_valid_year, is_list_like,
2525
sanitize_usaf_wban)
2626

2727

0 commit comments

Comments
 (0)