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 a function to directly load file from strax folder #801

Merged
merged 3 commits into from
Feb 15, 2024

Conversation

dachengx
Copy link
Collaborator

@dachengx dachengx commented Feb 2, 2024

Using only information inside the folder

What is the problem / what does the code in this PR do

Sometimes we want to directly load the strax file in a folder, without initializing plugins or context.

Can you briefly describe how it works?

Can you give a minimal working example (or illustrate with a figure)?

results = strax.dry_load_files(dirname)

this will load all files inside a folder.

results = strax.dry_load_files(dirname, 1)

this will load the 2nd chunk inside a folder.

Please include the following if applicable:

  • Update the docstring(s)
  • Update the documentation
  • Tests to check the (new) code is working as desired.
  • Does it solve one of the open issues on github?

Please make sure that all automated tests have passed before asking for a review (you can save the PR as a draft otherwise).

Using only information inside the folder
@coveralls
Copy link

coveralls commented Feb 2, 2024

Coverage Status

coverage: 91.501% (+0.05%) from 91.452%
when pulling dcf30e7 on dry_load_files
into 1a93526 on master.

@dachengx dachengx marked this pull request as ready for review February 2, 2024 16:15
@dachengx dachengx merged commit 882b545 into master Feb 15, 2024
9 checks passed
@dachengx dachengx deleted the dry_load_files branch February 15, 2024 16:28
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