issues
search
emdgroup
/
foundry-dev-tools
Foundry DevTools
https://emdgroup.github.io/foundry-dev-tools/
Apache License 2.0
115
stars
23
forks
source link
fix(dataset): lazily fetch dataset branch if it was not fetched on init
#73
Closed
jonas-w
closed
2 months ago
jonas-w
commented
2 months ago
Summary
made 'branch' a property, which checks if the self._branch attribute exists, if not it will fetch or create the branch, and then return self._branch
also added a setter, so the self.branch attribute can be set
reduced code duplication between from_rid and from_path by extending the
switch_branch
method
Checklist
[x] You agree with our
CLA
[x] Included tests (or is not applicable).
[x] Updated
documentation
(or is not applicable).
[x] Used
pre-commit hooks
to format and lint the code.
nicornk
commented
2 months ago
lgtm please Release
Summary
switch_branch
methodChecklist