-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to use Pathlib rather than str or os.path (#41)
* Updates to use Pathlib rather than str or os.path * formatting * Updates to use Pathlib rather than str or os.path * Update hermes_eea/calibration/calibration.py Co-authored-by: Damian Barrous Dume <damianbarrous@gmail.com> * More Updates for Pathlib * Remove Unused Import --------- Co-authored-by: Damian Barrous Dume <damianbarrous@gmail.com>
- Loading branch information
1 parent
20380d8
commit 0c49d5d
Showing
6 changed files
with
62 additions
and
54 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
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,8 @@ | ||
from pathlib import Path | ||
from hermes_eea.io.file_tools import read_file | ||
|
||
|
||
def test_read_file(): | ||
assert read_file("./hermes_eea/data/calibration/flight_stepper.txt") is not None | ||
assert ( | ||
read_file(Path("./hermes_eea/data/calibration/flight_stepper.txt")) is not None | ||
) |