Skip to content

Commit d264f20

Browse files
committed
fixing packages that work
1 parent 25e3456 commit d264f20

File tree

5 files changed

+368
-1239
lines changed

5 files changed

+368
-1239
lines changed

coast/data/coast.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,11 @@ def load_multiple(self, directory_to_files: str, chunks: Dict = None):
112112
chunks (Dict): Chunks to use in Dask [default None].
113113
"""
114114
info(f"Loading a directory ({directory_to_files}) for {get_slug(self)}")
115-
with xr.open_mfdataset(directory_to_files, chunks=chunks, parallel=True, combine="by_coords") as files:
116-
self.dataset = files
115+
#with xr.open_mfdataset(directory_to_files, chunks=chunks, parallel=True, combine="by_coords") as files:
116+
#with xr.open_mfdataset(directory_to_files, chunks=chunks, parallel=False, combine="by_coords") as files:
117+
# self.dataset = files
118+
chunks= {"time_counter":2}
119+
self.dataset = xr.open_mfdataset(directory_to_files, chunks=chunks, parallel=True, combine="by_coords")
117120

118121
def load_dataset(self, dataset: xr.Dataset):
119122
"""Loads a dataset.

environment.yml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
1-
name: coast-3.10b
1+
name: coast-15mar7
22
channels:
33
- anaconda
44
- conda-forge
55
- defaults
66
dependencies:
77
- python==3.10
8-
- pip>=25.0
9-
- cartopy>=0.22.0
10-
- gsw>=3.6.19
8+
- pip==22.2.2
9+
- cartopy==0.21.0
10+
- gsw==3.6.17
1111
- pip:
12-
- numpy==1.26.4
13-
- dask>=2025.2.0
14-
- dask[complete]>=2022.3.0
15-
- xarray>=2025.1.2
16-
- xarray[complete]>=2025.1.2
17-
- matplotlib>=3.10.0
18-
- netCDF4==1.7.2
19-
- scipy>=1.15.2
20-
- gsw>=3.6.19
21-
- utide>=0.3.0
22-
- scikit-learn>=1.6.1
23-
- tqdm>=4.67.1
24-
- pyproj>=3.6.1
25-
- scikit-image>=0.25.2
26-
- statsmodels>=0.14.4
27-
- pydap>=3.5.3
28-
- lxml>=5.3.1
29-
- requests>=2.32.3
30-
- aiohttp>=3.11.13
31-
# - spyder>=5.1.5
12+
- numpy==1.22.3
13+
- dask==2022.3.0
14+
- dask[complete]==2022.3.0
15+
- xarray==2022.3.0
16+
- matplotlib==3.5.3
17+
- netCDF4==1.5.8
18+
- scipy==1.8.0
19+
- gsw==3.6.17
20+
- utide==0.3.0
21+
- scikit-learn==1.0.2
22+
- tqdm==4.66.1
23+
- pyproj==3.5.0
24+
- scikit-image==0.19.2
25+
- statsmodels==0.13.2
26+
- pydap==3.2.2
27+
- lxml==4.9.0
28+
- requests==2.27.1
29+
# - spyder==5.1.5
3230
# - jupyterlab

example_scripts/notebook_tutorials/runnable_notebooks/profile/introduction_to_profile_class.ipynb

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,28 @@
7171
},
7272
{
7373
"cell_type": "code",
74-
"execution_count": null,
74+
"execution_count": 1,
7575
"id": "773ad868",
7676
"metadata": {
7777
"pycharm": {
7878
"name": "#%%\n"
79+
},
80+
"ExecuteTime": {
81+
"end_time": "2024-12-11T08:39:21.174674Z",
82+
"start_time": "2024-12-11T08:39:04.674385Z"
7983
}
8084
},
81-
"outputs": [],
85+
"outputs": [
86+
{
87+
"name": "stderr",
88+
"output_type": "stream",
89+
"text": [
90+
"/Users/jelt/GitHub/COAsT/coast/diagnostics/gridded_stratification.py:54: DeprecationWarning: invalid escape sequence '\\i'\n",
91+
"/Users/jelt/opt/anaconda3/envs/coast-3.10/lib/python3.10/site-packages/utide/harmonics.py:16: RuntimeWarning: invalid value encountered in cast\n",
92+
"/Users/jelt/opt/anaconda3/envs/coast-3.10/lib/python3.10/site-packages/utide/harmonics.py:17: RuntimeWarning: invalid value encountered in cast\n"
93+
]
94+
}
95+
],
8296
"source": [
8397
"import coast\n",
8498
"from os import path\n",

0 commit comments

Comments
 (0)