-
Notifications
You must be signed in to change notification settings - Fork 52
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
P11 develop debug #859
Merged
Merged
P11 develop debug #859
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
bc39d62
Upgrade of P11Collect
9dfd62f
Fix loading problem
e8fa538
Linting
9ccef56
Merge branch 'mxcube:develop' into p11_develop_debug
agruzinov b70c863
Added ignore pyenv python-version file
8d63bb0
Merge branch 'p11_develop_debug' of https://github.com/agruzinov/mxcu…
5ce04f1
get_properties_ issue (connected qt PR 457)
6a6c47d
Merge branch 'mxcube:develop' into p11_develop_debug
agruzinov 138b587
get_properties_ refactoring (connected mxcubeqt PR 457)
6be9a04
Update P11Collect.py and linting
79dc7a4
Code debug and cleanup
6d063b2
Linting
fdbefd1
Linting
ae87b53
Bumped the year
fa58b8b
Removed unused comments
b49250c
Code clenaup
a97c32e
Additional code cleanup
f26e35b
Code cleanup (PR 859)
01d129e
Code cleanup (connected mxcubeqt PR 459)
92a73f9
Linting
d1bd48c
Added timeout to deal with too fast centring clicking
81e64fa
Increased timeout (PR 859)
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -486,3 +486,19 @@ def _update_selection(self): | |
s._set_loaded(False) | ||
|
||
self._set_selected_sample(None) | ||
|
||
def _set_loaded_sample(self, sample): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @agruzinov, is defining this method solves the recurrence problem you've mentioned? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it solves the "loading failed" problem. |
||
previous_loaded = None | ||
|
||
for smp in self.get_sample_list(): | ||
if smp.is_loaded(): | ||
previous_loaded = smp | ||
break | ||
|
||
for smp in self.get_sample_list(): | ||
if smp != sample: | ||
smp._set_loaded(False) | ||
else: | ||
self.log.debug(f" Found sample {smp} is loaded") | ||
self.log.debug(f" getting loaded {self.get_loaded_sample()}") | ||
smp._set_loaded(True) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have minikappa head on your diffarctometer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is just not to have none values, just in case. Does it make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is OK if you would never use minikappa.