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

Track source filename for G3Frame objects that are read in using G3Reader #118

Merged
merged 4 commits into from
Sep 11, 2023

Conversation

arahlin
Copy link
Member

@arahlin arahlin commented Sep 6, 2023

Add a G3Frame._filename attribute to frames, set when read in with G3Reader (or ARCFileReader). This simplifies keeping track of input filenames further down the pipeline. Documentation has been added to clarify that the attribute is not serialized, and therefore does not survive pickling or passing around in a multiprocessing situation.

@arahlin arahlin requested a review from nwhitehorn September 6, 2023 21:22
@arahlin arahlin self-assigned this Sep 6, 2023
Copy link
Member

@nwhitehorn nwhitehorn left a comment

Choose a reason for hiding this comment

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

I would really like to have this interface be more private -- initial underscores at minimum. It is very fragile and only for debugging.

@arahlin arahlin requested a review from nwhitehorn September 8, 2023 21:06
Copy link
Member

@nwhitehorn nwhitehorn left a comment

Choose a reason for hiding this comment

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

Looks great -- thanks!

@arahlin arahlin merged commit 9d279c3 into master Sep 11, 2023
1 check passed
@arahlin arahlin deleted the reader_filename branch September 11, 2023 16:45
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