question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mixing history reset with clear() not working

See original GitHub issue

After installing the current development version of sisl

>>> print(sys.version)
3.8.10 (default, Mar 15 2022, 12:22:08) 
[GCC 9.4.0]
>>> import sisl
>>> print(sisl.__version__)
0.12.2.dev83+g8b019f96

it appears to me that the resetting of mixer history with clear() has “disappeared”:

>>> import sisl
>>> mix = sisl.mixing.PulayMixer(0.7, history=7)
>>> mix.clear()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'PulayMixer' object has no attribute 'clear'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
zerothicommented, Apr 26, 2022

sorry, forgot to add the file, it should be there now!

1reaction
tfrederiksencommented, Apr 22, 2022

No problem, I didn’t realize the new way is simply mix.history.clear(). I’m happy with this and I think we can easily implement this change in Hubbard.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's the difference between git reset --mixed, --soft, and
reset --hard : History changed, HEAD changed, Working directory is changed with lost data. It is always safe to go with Git --soft....
Read more >
git-reset Documentation - Git
git-reset - Reset current HEAD to the specified state ... --mixed. Resets the index but not the working tree (i.e., the changed files...
Read more >
Git Reset | Atlassian Git Tutorial
Git reset is a powerful command that is used to undo local changes to the state of a Git repo. Explore its 3...
Read more >
View and delete browser history in Microsoft Edge
Select the Browsing history check box and select Clear now. Note: This will only clear the browsing history for the profile you're currently...
Read more >
Clear browsing data - Android - Google Chrome Help
You can control your history and other browsing data, like saved form entries. You can delete all of your data or just some...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found