forked from PelicanPlatform/pelicanfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-- A lot of whitespace fixes
- Loading branch information
Showing
14 changed files
with
477 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: Publish PelicanFS distribution to TestPyPI | ||
on: | ||
on: | ||
release: | ||
types: | ||
- prereleased | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
import warnings | ||
""" | ||
A module to do top level testing on intake using pelicanfs | ||
""" | ||
|
||
warnings.filterwarnings("ignore") | ||
import warnings | ||
|
||
import intake | ||
import numpy as np | ||
import pandas as pd | ||
import xarray as xr | ||
#import hvplot.pandas, hvplot.xarray | ||
#import holoviews as hv | ||
from distributed import LocalCluster, Client | ||
from distributed import Client # LocalCluster | ||
from ncar_jobqueue import NCARCluster | ||
#hv.extension('bokeh') | ||
|
||
warnings.filterwarnings("ignore") | ||
|
||
|
||
if __name__ == '__main__': | ||
if __name__ == "__main__": | ||
|
||
# If not using NCAR HPC, use the LocalCluster | ||
#cluster = LocalCluster() | ||
# cluster = LocalCluster() | ||
cluster = NCARCluster() | ||
cluster.scale(10) | ||
# cluster.scale(10) | ||
|
||
client = Client(cluster) | ||
|
||
catalog = intake.open_esm_datastore( | ||
'file://examples/intake/resources/pelican-test-intake.json' | ||
) | ||
catalog = intake.open_esm_datastore("file://examples/intake/resources/pelican-test-intake.json") | ||
|
||
catalog_subset = catalog.search(variable='FLNS', frequency='monthly') | ||
dsets = catalog_subset.to_dataset_dict() | ||
catalog_subset = catalog.search(variable="FLNS", frequency="monthly") | ||
dsets = catalog_subset.to_dataset_dict() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,4 +72,4 @@ | |
] | ||
}, | ||
"last_updated": "2021-12-27T14:29:25Z" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import torch | ||
torch.utils.data.datapipes.utils.common.DILL_AVAILABLE = torch.utils._import_utils.dill_available() | ||
from torchdata.datapipes.iter import IterableWrapper | ||
|
||
torch.utils.data.datapipes.utils.common.DILL_AVAILABLE = torch.utils._import_utils.dill_available() | ||
|
||
if __name__ == '__main__': | ||
if __name__ == "__main__": | ||
dp = IterableWrapper(["osdf:///chtc/PUBLIC/eturetsky/data/faces/"]).list_files_by_fsspec() | ||
print(list(dp)) | ||
|
||
dp = IterableWrapper(["osdf:///chtc/PUBLIC/eturetsky/data/faces/"]).open_files_by_fsspec() | ||
for path, filestream in dp: | ||
print(path, filestream) | ||
print(path, filestream) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ package_dir = | |
|
||
[options.packages.find] | ||
where = src | ||
include = pelicanfs* | ||
include = pelicanfs* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.