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

Lazy file #105

Merged
merged 3 commits into from
Aug 28, 2023
Merged

Lazy file #105

merged 3 commits into from
Aug 28, 2023

Conversation

jiangyi15
Copy link
Owner

memmap for npy file, it can reduce memory useage.
And option for Dataset.prefetch.
mv cp_trans to preprocessor

data:
    phsp: [phsp.npy] # only support npy file
    lazy_call: True 
    lazy_file: True # bool
    lazy_prefetch: 2  # int , -1 for auto, 0 for no, >0 for exact value

@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Merging #105 (691ea2f) into dev (5a7ef7e) will increase coverage by 0.07%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##              dev     #105      +/-   ##
==========================================
+ Coverage   75.84%   75.91%   +0.07%     
==========================================
  Files         108      108              
  Lines       15559    15611      +52     
  Branches     2920     2927       +7     
==========================================
+ Hits        11800    11851      +51     
  Misses       3067     3067              
- Partials      692      693       +1     
Flag Coverage Δ
unittests 75.91% <83.33%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
tf_pwa/amp/preprocess.py 92.23% <75.00%> (-0.77%) ⬇️
tf_pwa/data.py 78.20% <76.92%> (+2.09%) ⬆️
tf_pwa/cal_angle.py 76.03% <100.00%> (+0.11%) ⬆️
tf_pwa/config_loader/data.py 64.63% <100.00%> (-0.34%) ⬇️
tf_pwa/tests/test_full.py 100.00% <100.00%> (ø)

@jiangyi15 jiangyi15 merged commit bb5236f into dev Aug 28, 2023
13 checks passed
@jiangyi15 jiangyi15 deleted the lazy_file branch August 28, 2023 07:13
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.

1 participant