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

Update analysis functions to work on ocs archived fits images #113

Merged
merged 3 commits into from
Oct 30, 2023

Conversation

jnation3406
Copy link
Contributor

This won't work until the photonranch-api change is merged, but its safe to deploy before then.

@@ -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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <vue/this-in-template> reported by reviewdog 🐶
Unexpected usage of 'this'.

Suggested change
:disabled="!this.current_image.fits_filename"
:disabled="!current_image.fits_filename"

Copy link
Contributor

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?

Copy link
Contributor Author

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.

@@ -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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <vue/this-in-template> reported by reviewdog 🐶
Unexpected usage of 'this'.

Suggested change
:disabled="!this.current_image.fits_filename"
:disabled="!current_image.fits_filename"

@@ -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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <vue/this-in-template> reported by reviewdog 🐶
Unexpected usage of 'this'.

Suggested change
:disabled="!this.current_image.fits_filename"
:disabled="!current_image.fits_filename"

@@ -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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <vue/this-in-template> reported by reviewdog 🐶
Unexpected usage of 'this'.

Suggested change
:disabled="!this.current_image.fits_filename"
:disabled="!current_image.fits_filename"

title="first draw a line on the image to inspect"
class="button"
:class="{'is-loading': analysisInProgress}"
:disabled="!this.current_image.fits_filename"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <vue/this-in-template> reported by reviewdog 🐶
Unexpected usage of 'this'.

Suggested change
:disabled="!this.current_image.fits_filename"
:disabled="!current_image.fits_filename"

Copy link
Contributor

@mgdaily mgdaily left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a question about the eslint checks

@@ -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"
Copy link
Contributor

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?

@jnation3406 jnation3406 merged commit 5fd0ee0 into dev Oct 30, 2023
1 check passed
@jnation3406 jnation3406 deleted the fix/quickanalysis_source branch October 30, 2023 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants