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

Generalized plot size from K32 to any size of K #803

Merged
merged 3 commits into from
Jun 30, 2021

Conversation

DevPGSV
Copy link
Contributor

@DevPGSV DevPGSV commented Jun 23, 2021

Generalized plot size from K32 to any size of K

  • plotman interactive reports correct number of plots (not only k32)
  • plotman archive can find and archive plots of any size

Copy link
Collaborator

@altendky altendky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for this, plotman has been needing it for quite awhile. Could you add a changelog entry for this please? Take your pick whether you want to consider it a fix or a feature addition.

@@ -96,7 +96,7 @@ def spawn_archive_process(dir_cfg: configuration.Directories, arch_cfg: configur

def compute_priority(phase: job.Phase, gb_free: float, n_plots: int) -> int:
# All these values are designed around dst buffer dirs of about
# ~2TB size and containing k32 plots. TODO: Generalize, and
# ~2TB size and containing k plots. TODO: Generalize, and
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect this is still a valid reference to k32.

Suggested change
# ~2TB size and containing k plots. TODO: Generalize, and
# ~2TB size and containing k32 plots. TODO: Generalize, and

@@ -45,15 +45,15 @@ def test_columns() -> None:
[ 1 ],
[ 2 ] ] )

def test_list_k32_plots(fs: pyfakefs.fake_filesystem.FakeFilesystem) -> None:
def test_list_k_plots(fs: pyfakefs.fake_filesystem.FakeFilesystem) -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add test files for another size or two?

Suggested change
def test_list_k_plots(fs: pyfakefs.fake_filesystem.FakeFilesystem) -> None:
def test_list_plots(fs: pyfakefs.fake_filesystem.FakeFilesystem) -> None:

@@ -54,18 +51,19 @@ def split_path_prefix(items: typing.List[str]) -> typing.Tuple[str, typing.List[
remainders = [ os.path.relpath(i, prefix) for i in items ]
return (prefix, remainders)

def list_k32_plots(d: str) -> typing.List[str]:
'List completed k32 plots in a directory (not recursive)'
def list_k_plots(d: str) -> typing.List[str]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def list_k_plots(d: str) -> typing.List[str]:
def list_plots(d: str) -> typing.List[str]:

altendky added a commit to altendky/plotman that referenced this pull request Jun 29, 2021
@altendky
Copy link
Collaborator

Suggested changes submitted in grupoxch#1.

@altendky altendky mentioned this pull request Jun 30, 2021
@altendky
Copy link
Collaborator

Alrighty, since I can't edit this even to update it, I'll just merge #814 which includes all your commits from here. It just won't show the clearest record of your contribution here in the PRs. Sorry about that. :[

@altendky altendky merged commit de8b312 into ericaltendorf:development Jun 30, 2021
@altendky
Copy link
Collaborator

Oh, and thanks again for your contribution here. :] And, oh hey, it did decide to show merged here after all... that's cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants