-
Notifications
You must be signed in to change notification settings - Fork 14
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 mono rotation series overlays #450
Conversation
@joelvbernier Any feedback on the editor above? |
1fb4de5
to
e850c52
Compare
Let's come back to this after the demo |
Sounds good |
e850c52
to
cc487ac
Compare
Let's try to revive this issue this week. I'll take a look at where things are at. |
@joelvbernier Sounds good, I think some good test data would be helpful. |
@joelvbernier A simulated example like we did for the Laue spots would be helpful for this. |
@psavery -- one of the ruby examples (say singleGE) would be a good comparative data set since there is only 1 grain. I can make a simulated imageseries as well (current simulator only makes point groups, not images, but I have a first cut at making images almost ready to merge). |
d8dfef6
to
cc1d414
Compare
a55a60c
to
5b67754
Compare
This seems to be mostly working. Probably will need more testing and re-design, but I think what we have is a good first start. See video for an example. mono_rotation_series_example.mp4 |
Nice @psavery -- a few observations.
|
|
The aggregation is already specified in the constructor. Signed-off-by: Patrick Avery <[email protected]>
This was accidentally placed here. It is not used... Signed-off-by: Patrick Avery <[email protected]>
Signed-off-by: Patrick Avery <[email protected]>
Signed-off-by: Patrick Avery <[email protected]>
This adds basic functionality for MonoRotationSeriesOverlays. It includes a rough draft of an editor for the overlay, some updates to the overlay generator, and some basic drawing. This also includes a RangeTableEditor, which is a table designed for editing a list of ranges. *Something* is being drawn, but it is probably not correct. We need to inspect it further. Signed-off-by: Patrick Avery <[email protected]>
It's not currently being used for anything, though... Signed-off-by: Patrick Avery <[email protected]>
MRS == mono rotation series Signed-off-by: Patrick Avery <[email protected]>
Signed-off-by: Patrick Avery <[email protected]>
We can remove the "Mono" part because it is implied in our work. This reduces the number of lines and simplifies the code. Signed-off-by: Patrick Avery <[email protected]>
The rotation series will either be aggregated or not. It will not use different methods for different methods of aggregation. Use a checkbox. Signed-off-by: Patrick Avery <[email protected]>
They seem to work properly now... Signed-off-by: Patrick Avery <[email protected]>
The image canvas will use this info to determine what to draw. Signed-off-by: Patrick Avery <[email protected]>
This width, along with the omega value of the currently displayed frame, will allow us to determine the range of omega values to use for plotting. Signed-off-by: Patrick Avery <[email protected]>
Rather than waiting until the HEDM workflow is initialized, if an image series has omega data, convert it to an OmegaImageSeries immediately. This will be very useful for rotation series overlays, where omega information is needed, even though the HEDM workflow may have not been ran. Signed-off-by: Patrick Avery <[email protected]>
This will return the omega range if the image series is an omega imageseries. Otherwise, it will return `None`. Signed-off-by: Patrick Avery <[email protected]>
"aggregated" is currently forced to be `True` if the current image series doesn't have omega data. Signed-off-by: Patrick Avery <[email protected]>
This allows the rotation series overlay to be used with the image series index (which represents an image at a particular omega range). Signed-off-by: Patrick Avery <[email protected]>
Signed-off-by: Patrick Avery <[email protected]>
This helps the user keep track of what omega range they are currently looking at. Signed-off-by: Patrick Avery <[email protected]>
This adds two theta and eta ranges to the rotation series overlays, which are rectangular. Signed-off-by: Patrick Avery <[email protected]>
Signed-off-by: Patrick Avery <[email protected]>
Depending on the active widget... This allows the overlay editor to start off small, and then grow larger if the user picks an overlay type that requires a lot of space. Signed-off-by: Patrick Avery <[email protected]>
65b845a
to
7ceb52e
Compare
This works just like the reflections table button in the powder overlay editor. Signed-off-by: Patrick Avery <[email protected]>
It doesn't actually have to be as big as it has been being drawn. Signed-off-by: Patrick Avery <[email protected]>
Signed-off-by: Patrick Avery <[email protected]>
Whether several widgets are enabled or not depends on the current value of the GUI, which may change when `update_gui()` is called. Thus, always update enable states after `update_gui()` is called. Signed-off-by: Patrick Avery <[email protected]>
This allows other widgets to expand instead of this one when a dialog is enlarged. We really don't need this one to be bigger... Signed-off-by: Patrick Avery <[email protected]>
Previously, we would step by the digit to the left of the decimal place (whether we were in scientific notation, or standard notation). However, this was not that useful, because most numbers were not large enough or small enough to be in scientific notation, and we had no control over the step size. Instead, let's step according to the step size, so that we are able to better control what it will be. Now, we can set the `singleStep` property to control the step size. Fixes: HEXRD#1065 Signed-off-by: Patrick Avery <[email protected]>
Fixes part of: HEXRD#1063 Signed-off-by: Patrick Avery <[email protected]>
This is now fixed, along with #1065 and part of the discussion in #1063. |
Signed-off-by: Patrick Avery <[email protected]>
This includes a basic editor for the overlay, and some basic drawing.
However, what is being drawn may not be correct. We will need to look into this more.
To do:
Fixes: #386
Fixes: #784
Fixes: #1065