-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored toolkit so that download is top level (#30), and adjusted …
…runs to use the new layout
- Loading branch information
Showing
16 changed files
with
73 additions
and
82 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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
begin | ||
f = addfile("/home/zach/code/saeon/repositories/somisana/toolkit/.output/mercator_20230425.nc","r") | ||
print(f) | ||
end | ||
|
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
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,3 +1,3 @@ | ||
from cli.applications import lacce, mhw, ops, kerchunk, update, pg, croco | ||
from cli.applications import lacce, mhw, kerchunk, update, pg, croco, download | ||
|
||
__all__ = ["lacce", "mhw", "ops", "kerchunk", "update", "pg", "croco"] | ||
__all__ = ["lacce", "mhw", "kerchunk", "update", "pg", "croco", "download"] |
4 changes: 2 additions & 2 deletions
4
...cli/applications/ops/download/__init__.py → ...kit/cli/applications/download/__init__.py
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
2 changes: 1 addition & 1 deletion
2
...applications/ops/download/gfs/__init__.py → ...cli/applications/download/gfs/__init__.py
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
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,3 +1,3 @@ | ||
from cli.define import lacce, mhw, ops, kerchunk, update, pg, croco | ||
from cli.define import lacce, mhw, download, kerchunk, update, pg, croco | ||
|
||
__all__ = ["lacce", "mhw", "ops", "kerchunk", "update", "pg", "croco"] | ||
__all__ = ["lacce", "mhw", "download", "kerchunk", "update", "pg", "croco"] |
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,3 +1,3 @@ | ||
from cli.parse import lacce, mhw, ops, kerchunk, update, pg, croco | ||
from cli.parse import lacce, mhw, download, kerchunk, update, pg, croco | ||
|
||
__all__ = ["lacce", "mhw", "ops", "kerchunk", "update", "pg", "croco"] | ||
__all__ = ["lacce", "mhw", "download", "kerchunk", "update", "pg", "croco"] |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
def parse(cmd, args, module): | ||
def e(*args): | ||
print(cmd.format_help()) | ||
exit() | ||
|
||
try: | ||
return module.download | ||
except Exception as e: | ||
print(e) | ||
return e |
This file was deleted.
Oops, something went wrong.