-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: file transfer file name refactor (#2856)
* fix: file transfer file name refactor * update service implemenatation * resolve read_case_data issue * design change * design change * resolve download error * update test * update test 1 * restructuring 1 * restructuring 1
- Loading branch information
Showing
3 changed files
with
53 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"""Miscellaneous utility functions.""" | ||
|
||
|
||
def expand_api_file_argument(command_name, value, kwargs): | ||
"""Expand API file argument.""" | ||
if kwargs.get("file_type") == "case-data" or command_name in [ | ||
"read_case_data", | ||
"write_case_data", | ||
]: | ||
data_file = value.replace(".cas", ".dat") | ||
return [value, data_file] | ||
else: | ||
return [value] |
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