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

[BUG REPORT] Diff status always returns CLEAN inside CM #186

Open
1 of 3 tasks
hhsecond opened this issue Mar 8, 2020 · 0 comments
Open
1 of 3 tasks

[BUG REPORT] Diff status always returns CLEAN inside CM #186

hhsecond opened this issue Mar 8, 2020 · 0 comments

Comments

@hhsecond
Copy link
Member

hhsecond commented Mar 8, 2020

Describe the bug
Diff status always returns CLEAN inside CM

Severity

Select an option:

  • Data Corruption / Loss of Any Kind
  • Unexpected Behavior, Exceptions or Error Thrown
  • Performance Bottleneck

To Reproduce

from hangar import Repository
import numpy as np


repo = Repository('.')
repo.init(user_name='me', user_email='[email protected]', remove_old=True)
co = repo.checkout(write=True)
co.add_ndarray_column('x', prototype=np.array([1]))
co.commit('added columns')
co.close()

co = repo.checkout(write=True)
x = co.columns['x']


with x:
    for i in range(10):
        x[i] = np.array([i])
        print(co.diff.status())  # this should return DIRTY but returns CLEAN
print(co.diff.status())  # this returns DIRTY as expected
co.commit('adding file')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant