Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for default file paths #110

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fastcs/transport/epics/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
device = Device(label=options.title, children=components)

formatter = DLSFormatter()
formatter.format(device, options.output_path)
formatter.format(device, options.output_path.resolve())

Check warning on line 125 in src/fastcs/transport/epics/gui.py

View check run for this annotation

Codecov / codecov/patch

src/fastcs/transport/epics/gui.py#L125

Added line #L125 was not covered by tests

def extract_mapping_components(self, mapping: SingleMapping) -> Tree:
components: Tree = []
Expand Down
4 changes: 2 additions & 2 deletions src/fastcs/transport/epics/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

@dataclass
class EpicsDocsOptions:
path: Path = Path.cwd()
path: Path = Path(".")
depth: int | None = None


Expand All @@ -16,7 +16,7 @@ class EpicsGUIFormat(Enum):

@dataclass
class EpicsGUIOptions:
output_path: Path = Path.cwd() / "output.bob"
output_path: Path = Path(".") / "output.bob"
file_format: EpicsGUIFormat = EpicsGUIFormat.bob
title: str = "Simple Device"

Expand Down
Loading