-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Continue moving things over to the new PathSet() paradigm - I MAY want to have the batch criteria own its own pathset; not sure if that's a good idea or not. Will revisit.
- Loading branch information
Showing
51 changed files
with
642 additions
and
550 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 |
---|---|---|
|
@@ -7,5 +7,3 @@ | |
# 3rd party packages | ||
|
||
# Project packages | ||
from . import cmdline | ||
from . import config |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# | ||
# Copyright 2024 John Harwell, All rights reserved. | ||
# | ||
# SPDX-License Identifier: MIT | ||
# | ||
|
||
# Core packages | ||
import typing as tp | ||
|
||
# 3rd party packages | ||
|
||
# Project packages | ||
from sierra.core import batchroot | ||
|
||
|
||
class PathSet(): | ||
def __init__(self, | ||
batch: batchroot.PathSet, | ||
exp_name: str, | ||
exp0_name: tp.Optional[str] = None) -> None: | ||
self.input_root = batch.input_root.to_path() / exp_name | ||
self.output_root = batch.output_root.to_path() / exp_name | ||
self.graph_root = batch.graph_root.to_path() / exp_name | ||
self.model_root = batch.model_root.to_path() / exp_name | ||
self.stat_root = batch.state_root.to_path() / exp_name | ||
|
||
if exp0_name: | ||
self.exp0_output_root = batch.output_root.to_path() / exp0_name | ||
self.exp0_stat_root = batch.stat_root.to_path() / exp0_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
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
Oops, something went wrong.