-
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.
chore!: shorten get workspace func name and update docstrings in top …
…level mod
- Loading branch information
Showing
5 changed files
with
39 additions
and
11 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import cdf | ||
|
||
w = cdf.get_workspace_from_path(__file__).unwrap() | ||
w = cdf.get_workspace(__file__).unwrap() | ||
|
||
print(f"Hello, world from {w.name}!") |
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,7 +1,5 @@ | ||
from . import find_nearest, get_workspace_from_path | ||
from . import find_nearest, get_workspace | ||
|
||
settings = ( | ||
get_workspace_from_path(".") | ||
.unwrap_or(find_nearest(".").unwrap()) | ||
.configuration.maps[0] | ||
get_workspace(".").unwrap_or(find_nearest(".").unwrap()).configuration.maps[0] | ||
) |