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 .serialize method to runtimelog #1255

Merged
merged 10 commits into from Jun 20, 2022
Merged

add .serialize method to runtimelog #1255

merged 10 commits into from Jun 20, 2022

Conversation

PhilipVinc
Copy link
Member

@PhilipVinc PhilipVinc commented Jun 20, 2022

This moves the json serialization stuff to RuntimeLog from JsonLog, so that it's possible to save to disk the data.

The idea is still that JsonLog saves to json while running and RuntimeLog does not, but now if you're playing with RuntimeLog and want to save its content to disk you can.

(This was triggered by a question in slack)

@PhilipVinc PhilipVinc requested a review from femtobit June 20, 2022 11:59
CHANGELOG.md Outdated Show resolved Hide resolved
netket/logging/json_log.py Outdated Show resolved Hide resolved
netket/logging/runtime_log.py Outdated Show resolved Hide resolved
netket/logging/runtime_log.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@femtobit femtobit left a comment

Choose a reason for hiding this comment

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

Looks good to me now.

@codecov
Copy link

codecov bot commented Jun 20, 2022

Codecov Report

Merging #1255 (e9a063a) into master (93ab2d2) will increase coverage by 0.00%.
The diff coverage is 64.44%.

@@           Coverage Diff           @@
##           master    #1255   +/-   ##
=======================================
  Coverage   82.75%   82.75%           
=======================================
  Files         211      211           
  Lines       12674    12690   +16     
  Branches     1950     1953    +3     
=======================================
+ Hits        10488    10502   +14     
- Misses       1704     1709    +5     
+ Partials      482      479    -3     
Impacted Files Coverage Δ
netket/models/autoreg.py 93.78% <ø> (-0.04%) ⬇️
netket/sampler/base.py 81.05% <ø> (ø)
netket/logging/runtime_log.py 69.09% <60.00%> (-24.25%) ⬇️
netket/experimental/logging/hdf5_log.py 63.29% <100.00%> (ø)
netket/logging/json_log.py 72.36% <100.00%> (+7.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 93ab2d2...e9a063a. Read the comment docs.

@femtobit femtobit merged commit dca20c2 into master Jun 20, 2022
@femtobit femtobit deleted the pv/json branch June 20, 2022 19: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.

None yet

2 participants