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

concert: Fix merge errors #531

Open
wants to merge 4 commits into
base: master-with-decentralized
Choose a base branch
from

Conversation

sarkarchandan
Copy link
Contributor

Premise: Fixes the errors introduced during merge of decentralized to master. Verified with session tests.

@sarkarchandan
Copy link
Contributor Author

Added master-with-decentralized to test workflow to reveal problems, of which there are a few. Some tests are broken during merge. One reason is that previously addon was a module inside concert.experiments package and types e.g., PCOTimestampCheck or PCOTimestampCheckError were defined in it. Now addons is a sub package in concert.experiments and types are missing. As a result some tests are broken.

@@ -91,27 +91,37 @@ def write_libtiff(file_name, data):
return file_name


def create_directory(directory, rights="750"):
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be this, not 0o0750.

writer: Type[TiffWriter] = TiffWriter,
prefix: str = "image_{:>05}.tif",
start_index: int = 0,
bytes_per_file=0) -> int:
Copy link
Contributor

Choose a reason for hiding this comment

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

Rights should make it back into the parameters.

@@ -125,7 +135,7 @@ def write_images(pqueue, writer=TiffWriter, prefix="image_{:>05}.tif", start_ind
im_writer = writer(prefix, bytes_per_file, append=True)

if dir_name and not os.path.exists(dir_name):
create_directory(dir_name, rights=rights)
create_directory(dir_name)
Copy link
Contributor

Choose a reason for hiding this comment

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

We want the rights here as well.

@@ -369,7 +379,7 @@ async def __ainit__(self,

async def _descend(self, name: str) -> None:
new = os.path.join(self._current, name)
create_directory(new, rights=self._rights)
create_directory(new)
Copy link
Contributor

Choose a reason for hiding this comment

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

here too.

Copy link
Contributor

@tfarago tfarago left a comment

Choose a reason for hiding this comment

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

Look at #528 regarding the rights. There I changed the int-based specification to string-based one, which you reverted here.

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