-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update analysis functions to work on ocs archived fits images #113
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -6,7 +6,7 @@ | |||||
title="Get histogram from the selected rectangle region." | ||||||
class="button" | ||||||
:class="{ 'is-loading': region_histogram_loading }" | ||||||
:disabled="!large_fits_exists && !small_fits_exists" | ||||||
:disabled="!this.current_image.fits_filename" | ||||||
@click="getHistogram(true)" | ||||||
> | ||||||
inspect region | ||||||
|
@@ -16,7 +16,7 @@ | |||||
<button | ||||||
class="button" | ||||||
:class="{ 'is-loading': image_histogram_loading }" | ||||||
:disabled="!large_fits_exists && !small_fits_exists" | ||||||
:disabled="!this.current_image.fits_filename" | ||||||
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.
Suggested change
|
||||||
@click="getHistogram(false)" | ||||||
> | ||||||
inspect image | ||||||
|
@@ -61,8 +61,8 @@ export default { | |||||
getHistogram (useSubregion = true) { | ||||||
const url = this.$store.state.api_endpoints.quickanalysis_endpoint + '/histogram-clipped' | ||||||
const body = { | ||||||
full_filename: this.best_available_full_filename, | ||||||
s3_directory: this.current_image.s3_directory || 'data', | ||||||
full_filename: this.current_image.fits_filename, | ||||||
s3_directory: this.current_image.fits_path, | ||||||
clip_percent: 0.001 | ||||||
} | ||||||
if (useSubregion) { | ||||||
|
@@ -110,17 +110,6 @@ export default { | |||||
'current_image' | ||||||
]), | ||||||
|
||||||
...mapGetters('images', [ | ||||||
'small_fits_exists', | ||||||
'large_fits_exists', | ||||||
'small_fits_filename', | ||||||
'large_fits_filename' | ||||||
]), | ||||||
best_available_full_filename () { | ||||||
return this.large_fits_exists | ||||||
? this.large_fits_filename | ||||||
: this.small_fits_filename | ||||||
}, | ||||||
...mapGetters('drawshapes', [ | ||||||
'selectedId', | ||||||
'selectionExists', | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -6,7 +6,7 @@ | |||||
title="Only inspect the selected rectangle region." | ||||||
class="button" | ||||||
:class="{'is-loading':region_stats_loading}" | ||||||
:disabled="!large_fits_exists && !small_fits_exists" | ||||||
:disabled="!this.current_image.fits_filename" | ||||||
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.
Suggested change
|
||||||
@click="getRegionStats(true)" | ||||||
> | ||||||
inspect region | ||||||
|
@@ -16,7 +16,7 @@ | |||||
<button | ||||||
class="button" | ||||||
:class="{'is-loading':image_stats_loading}" | ||||||
:disabled="!large_fits_exists && !small_fits_exists" | ||||||
:disabled="!this.current_image.fits_filename" | ||||||
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.
Suggested change
|
||||||
@click="getRegionStats(false)" | ||||||
> | ||||||
inspect image | ||||||
|
@@ -122,8 +122,8 @@ export default { | |||||
|
||||||
const body = { | ||||||
site: this.sitecode, | ||||||
full_filename: this.best_available_full_filename, | ||||||
s3_directory: this.current_image.s3_directory || 'data' | ||||||
full_filename: this.current_image.fits_filename, | ||||||
s3_directory: this.current_image.fits_path | ||||||
} | ||||||
if (useSubregion) { | ||||||
if (this.selectedShapeType != 'rects') { | ||||||
|
@@ -180,14 +180,6 @@ export default { | |||||
'current_image' | ||||||
]), | ||||||
|
||||||
...mapGetters('images', [ | ||||||
'small_fits_exists', | ||||||
'large_fits_exists', | ||||||
'small_fits_filename', | ||||||
'large_fits_filename', | ||||||
'info_images_exist' | ||||||
]), | ||||||
|
||||||
...mapGetters('drawshapes', [ | ||||||
'selectedId', | ||||||
'selectionExists', | ||||||
|
@@ -198,12 +190,6 @@ export default { | |||||
return this.$store.getters['starprofile/marked_stars'] | ||||||
}, | ||||||
|
||||||
best_available_full_filename () { | ||||||
return this.large_fits_exists | ||||||
? this.large_fits_filename | ||||||
: this.small_fits_filename | ||||||
}, | ||||||
|
||||||
activeDrawShape: { | ||||||
get () { return this.$store.getters['drawshapes/activeDrawShape'] }, | ||||||
set (val) { this.$store.dispatch('drawshapes/activeDrawShape', val) } | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2,10 +2,10 @@ | |||||
<div> | ||||||
<b-field> | ||||||
<button | ||||||
:disabled="!large_fits_exists && !small_fits_exists" | ||||||
title="first draw a line on the image to inspect" | ||||||
class="button" | ||||||
:class="{'is-loading': analysisInProgress}" | ||||||
:disabled="!this.current_image.fits_filename" | ||||||
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.
Suggested change
|
||||||
@click="getLineProfile" | ||||||
> | ||||||
get line profile | ||||||
|
@@ -127,8 +127,8 @@ export default { | |||||
} | ||||||
|
||||||
const payload = { | ||||||
full_filename: this.useLargeFits ? this.large_fits_filename : this.small_fits_filename, | ||||||
s3_directory: this.current_image.s3_directory || 'data', | ||||||
full_filename: this.current_image.fits_filename, | ||||||
s3_directory: this.current_image.fits_path, | ||||||
start: startingPoint, | ||||||
end: endingPoint | ||||||
} | ||||||
|
@@ -151,11 +151,7 @@ export default { | |||||
|
||||||
computed: { | ||||||
...mapGetters('images', [ | ||||||
'current_image', | ||||||
'large_fits_exists', | ||||||
'small_fits_exists', | ||||||
'large_fits_filename', | ||||||
'small_fits_filename' | ||||||
'current_image' | ||||||
]), | ||||||
|
||||||
...mapGetters('drawshapes', [ | ||||||
|
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.
Unexpected usage of 'this'.
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.
@jnation3406 are these red herrings? I don't believe
this
works in templates?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.
I think this does work in templates, but its a stylistic thing. I'm happy to remove them.