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

add MultiManager to h5pyd __init__.py #185

Merged
merged 4 commits into from
Apr 24, 2024
Merged

add MultiManager to h5pyd __init__.py #185

merged 4 commits into from
Apr 24, 2024

Conversation

jreadey
Copy link
Member

@jreadey jreadey commented Apr 22, 2024

Make MultiManager visible in base h5pyd.
Add log handler to MultiManager
Use env variable to set location of multi_benchmark.py output domains.

@jreadey jreadey requested a review from mattjala April 22, 2024 20:59
"""
Get filepath for a test case given a testname
"""

# Just call the external function
filename = getTestFileName(basename, subfolder=subfolder)
Copy link
Contributor

Choose a reason for hiding this comment

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

getFileName invokes getTestFileName, but then overwrites the result to redo the same work.

Copy link
Member Author

Choose a reason for hiding this comment

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

I made the change so getTestFileName can be invoked outside the TestCase class, but forgot to remove the duplicate code. Fixed now.


for i in range(count):
filename = getTestFileName(f"bm_{i:04d}", subfolder="multi_bm")
f = h5py.File(filename, mode='w')
Copy link
Contributor

Choose a reason for hiding this comment

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

If the user hasn't specifically created the multi_bm, this will fail. We should either create that here or check for its existence to throw a helpful error

Copy link
Member Author

Choose a reason for hiding this comment

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

updated to print message on IOError.

@mattjala
Copy link
Contributor

Looks good aside from my comments

@jreadey jreadey merged commit a54d95a into master Apr 24, 2024
10 checks passed
@jreadey jreadey deleted the multiinit branch April 24, 2024 21:44
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.

2 participants