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

PacketSource should contain .to_hdf() method #2584

Merged
merged 11 commits into from
May 24, 2024

Conversation

atharva-2001
Copy link
Member

📝 Description

Type: 🚀 feature
Resolves #2438

📌 Resources

Examples, notebooks, and links to useful references.

🚦 Testing

How did you test these changes?

  • Testing pipeline
  • Other method (describe)
  • My changes can't be tested (explain why)

☑️ Checklist

  • I requested two reviewers for this pull request
  • I updated the documentation according to my changes
  • I built the documentation by applying the build_docs label

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.

Comment on lines 80 to 88
# def test_blackbody_regressions(
# self, blackbodysimplesource
# ):
# expected = pd.read_hdf(
# self.regression_data.fpath, key="/black_body_simple_source/scalars"
# )
# np.testing.assert_allclose(
# expected.base_seed, blackbodysimplesource.base_seed
# )
Copy link
Member Author

Choose a reason for hiding this comment

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

@andrewfullard Do we want to keep this test? Or do I need to change some other test module to test this change?

Copy link
Contributor

Choose a reason for hiding this comment

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

If we could test this for the entire source output, that would be very useful.

Copy link
Member Author

Choose a reason for hiding this comment

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

the packet source at this moment only has the base seed, other attributes are none I'm afraid

andrewfullard
andrewfullard previously approved these changes Apr 17, 2024
Copy link
Contributor

@andrewfullard andrewfullard left a comment

Choose a reason for hiding this comment

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

Great work getting tests in!

@tardis-bot
Copy link
Contributor

*beep* *bop*

Hi, human.

The docs workflow has succeeded ✔️

Click here to see your results.

Copy link
Contributor

@andrewfullard andrewfullard left a comment

Choose a reason for hiding this comment

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

Looks like there's a merge conflict now

andrewfullard
andrewfullard previously approved these changes May 6, 2024
@andrewfullard andrewfullard merged commit 3caabf0 into tardis-sn:master May 24, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

PacketSource should contain .to_hdf method
4 participants