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

Calculate the cumulative exposure time for smartstack frames #101

Merged
merged 2 commits into from
Sep 28, 2023

Conversation

timbeccue
Copy link
Collaborator

This PR adjusts the metadata displayed above images. Previously, smartstack frames would display the exposure time in the header, even if the frame was a combination of multiple exposures in the smartstack.

This changes the "exposure" value to display the cumulative exposure time. This is calculated smartstack frame exposure time * number of frames.

For example, a frame that registers as "stack 5 of 10" where each frame is 30 seconds previously displayed "exposure: 30s". WIth this change it will display "exposure: 150s".

@timbeccue timbeccue requested a review from capetillo September 28, 2023 16:17
style="display:flex"
>
ra:&nbsp;<ra-display
<div class="image-info-bar-item site"> site:&nbsp;{{ site }} </div>

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/singleline-html-element-content-newline> reported by reviewdog 🐶
Expected 1 line break after opening tag (<div>), but no line breaks found.

Suggested change
<div class="image-info-bar-item site"> site:&nbsp;{{ site }} </div>
<div class="image-info-bar-item site">
site:&nbsp;{{ site }} </div>

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe it's just github, but the spacing (formatting) here seems a bit off

style="display:flex"
>
ra:&nbsp;<ra-display
<div class="image-info-bar-item site"> site:&nbsp;{{ site }} </div>

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/singleline-html-element-content-newline> reported by reviewdog 🐶
Expected 1 line break before closing tag (</div>), but no line breaks found.

Suggested change
<div class="image-info-bar-item site"> site:&nbsp;{{ site }} </div>
<div class="image-info-bar-item site"> site:&nbsp;{{ site }}
</div>

Copy link
Contributor

Choose a reason for hiding this comment

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

spacing seems off here too

>
ra:&nbsp;<ra-display
<div class="image-info-bar-item site"> site:&nbsp;{{ site }} </div>
<div class="image-info-bar-item exptime">exposure:&nbsp;{{ exposure }}s </div>

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/singleline-html-element-content-newline> reported by reviewdog 🐶
Expected 1 line break after opening tag (<div>), but no line breaks found.

Suggested change
<div class="image-info-bar-item exptime">exposure:&nbsp;{{ exposure }}s </div>
<div class="image-info-bar-item exptime">
exposure:&nbsp;{{ exposure }}s </div>

Copy link
Contributor

Choose a reason for hiding this comment

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

also here

>
ra:&nbsp;<ra-display
<div class="image-info-bar-item site"> site:&nbsp;{{ site }} </div>
<div class="image-info-bar-item exptime">exposure:&nbsp;{{ exposure }}s </div>

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/singleline-html-element-content-newline> reported by reviewdog 🐶
Expected 1 line break before closing tag (</div>), but no line breaks found.

Suggested change
<div class="image-info-bar-item exptime">exposure:&nbsp;{{ exposure }}s </div>
<div class="image-info-bar-item exptime">exposure:&nbsp;{{ exposure }}s
</div>

ra:&nbsp;<ra-display
<div class="image-info-bar-item site"> site:&nbsp;{{ site }} </div>
<div class="image-info-bar-item exptime">exposure:&nbsp;{{ exposure }}s </div>
<div class="image-info-bar-item filter-used"> filter:&nbsp;{{ filter }} </div>

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/singleline-html-element-content-newline> reported by reviewdog 🐶
Expected 1 line break after opening tag (<div>), but no line breaks found.

Suggested change
<div class="image-info-bar-item filter-used"> filter:&nbsp;{{ filter }} </div>
<div class="image-info-bar-item filter-used">
filter:&nbsp;{{ filter }} </div>

<div class="image-info-bar-item airmass"> airmass:&nbsp;{{ airmass }} </div>
<div class="image-info-bar-item altitude"> altitude:&nbsp;{{ altitude }}° </div>
<div class="image-info-bar-item obstime"> {{ obstime }}</div>
<div class="image-info-bar-item fwhm"> fwhm: {{ fwhm }}" </div>

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/singleline-html-element-content-newline> reported by reviewdog 🐶
Expected 1 line break before closing tag (</div>), but no line breaks found.

Suggested change
<div class="image-info-bar-item fwhm"> fwhm: {{ fwhm }}" </div>
<div class="image-info-bar-item fwhm"> fwhm: {{ fwhm }}"
</div>

<div class="image-info-bar-item altitude"> altitude:&nbsp;{{ altitude }}° </div>
<div class="image-info-bar-item obstime"> {{ obstime }}</div>
<div class="image-info-bar-item fwhm"> fwhm: {{ fwhm }}" </div>
<div class="image-info-bar-item sepsky"> sky: {{ sepsky }} adu </div>

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/singleline-html-element-content-newline> reported by reviewdog 🐶
Expected 1 line break after opening tag (<div>), but no line breaks found.

Suggested change
<div class="image-info-bar-item sepsky"> sky: {{ sepsky }} adu </div>
<div class="image-info-bar-item sepsky">
sky: {{ sepsky }} adu </div>

<div class="image-info-bar-item altitude"> altitude:&nbsp;{{ altitude }}° </div>
<div class="image-info-bar-item obstime"> {{ obstime }}</div>
<div class="image-info-bar-item fwhm"> fwhm: {{ fwhm }}" </div>
<div class="image-info-bar-item sepsky"> sky: {{ sepsky }} adu </div>

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/singleline-html-element-content-newline> reported by reviewdog 🐶
Expected 1 line break before closing tag (</div>), but no line breaks found.

Suggested change
<div class="image-info-bar-item sepsky"> sky: {{ sepsky }} adu </div>
<div class="image-info-bar-item sepsky"> sky: {{ sepsky }} adu
</div>

<div class="image-info-bar-item obstime"> {{ obstime }}</div>
<div class="image-info-bar-item fwhm"> fwhm: {{ fwhm }}" </div>
<div class="image-info-bar-item sepsky"> sky: {{ sepsky }} adu </div>
<div class="image-info-bar-item filename"> {{ filename }} </div>

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/singleline-html-element-content-newline> reported by reviewdog 🐶
Expected 1 line break after opening tag (<div>), but no line breaks found.

Suggested change
<div class="image-info-bar-item filename"> {{ filename }} </div>
<div class="image-info-bar-item filename">
{{ filename }} </div>

<div class="image-info-bar-item obstime"> {{ obstime }}</div>
<div class="image-info-bar-item fwhm"> fwhm: {{ fwhm }}" </div>
<div class="image-info-bar-item sepsky"> sky: {{ sepsky }} adu </div>
<div class="image-info-bar-item filename"> {{ filename }} </div>

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/singleline-html-element-content-newline> reported by reviewdog 🐶
Expected 1 line break before closing tag (</div>), but no line breaks found.

Suggested change
<div class="image-info-bar-item filename"> {{ filename }} </div>
<div class="image-info-bar-item filename"> {{ filename }}
</div>

@capetillo
Copy link
Contributor

Good job, Tim and what a quick fix!

<div class="image-info-bar-item site">
site:&nbsp;{{ current_image.site }}
<div class="image-info-bar-item site"> site:&nbsp;{{ site }} </div>
<div class="image-info-bar-item exptime"> exposure:&nbsp;{{ exposure }}s </div>

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/singleline-html-element-content-newline> reported by reviewdog 🐶
Expected 1 line break after opening tag (<div>), but no line breaks found.

Suggested change
<div class="image-info-bar-item exptime"> exposure:&nbsp;{{ exposure }}s </div>
<div class="image-info-bar-item exptime">
exposure:&nbsp;{{ exposure }}s </div>

<div class="image-info-bar-item site">
site:&nbsp;{{ current_image.site }}
<div class="image-info-bar-item site"> site:&nbsp;{{ site }} </div>
<div class="image-info-bar-item exptime"> exposure:&nbsp;{{ exposure }}s </div>

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/singleline-html-element-content-newline> reported by reviewdog 🐶
Expected 1 line break before closing tag (</div>), but no line breaks found.

Suggested change
<div class="image-info-bar-item exptime"> exposure:&nbsp;{{ exposure }}s </div>
<div class="image-info-bar-item exptime"> exposure:&nbsp;{{ exposure }}s
</div>

<div class="image-info-bar-item filter-used"> filter:&nbsp;{{ filter }} </div>
<div class="image-info-bar-item smartstack"> stack:&nbsp;{{ smartstackProgress }} </div>
<div class="image-info-bar-item ra"> ra:&nbsp;
<RaDisplay :ra_hours_decimal="raHours" :decimal_precision="3" />

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/max-attributes-per-line> reported by reviewdog 🐶
':decimal_precision' should be on a new line.

Suggested change
<RaDisplay :ra_hours_decimal="raHours" :decimal_precision="3" />
<RaDisplay :ra_hours_decimal="raHours"
:decimal_precision="3" />

<div class="image-info-bar-item sepsky">
sky: {{ sepsky }} adu
<div class="image-info-bar-item dec"> dec:&nbsp;
<DecDisplay :dec_deg_decimal="current_image.declination" :decimal_precision="3" />

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/max-attributes-per-line> reported by reviewdog 🐶
':decimal_precision' should be on a new line.

Suggested change
<DecDisplay :dec_deg_decimal="current_image.declination" :decimal_precision="3" />
<DecDisplay :dec_deg_decimal="current_image.declination"
:decimal_precision="3" />

</div>
<div class="image-info-bar-item airmass"> airmass:&nbsp;{{ airmass }} </div>
<div class="image-info-bar-item altitude"> altitude:&nbsp;{{ altitude }}° </div>
<div class="image-info-bar-item obstime"> {{ obstime }} </div>

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/singleline-html-element-content-newline> reported by reviewdog 🐶
Expected 1 line break after opening tag (<div>), but no line breaks found.

Suggested change
<div class="image-info-bar-item obstime"> {{ obstime }} </div>
<div class="image-info-bar-item obstime">
{{ obstime }} </div>

</div>
<div class="image-info-bar-item airmass"> airmass:&nbsp;{{ airmass }} </div>
<div class="image-info-bar-item altitude"> altitude:&nbsp;{{ altitude }}° </div>
<div class="image-info-bar-item obstime"> {{ obstime }} </div>

Choose a reason for hiding this comment

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

⚠️ [eslint] <vue/singleline-html-element-content-newline> reported by reviewdog 🐶
Expected 1 line break before closing tag (</div>), but no line breaks found.

Suggested change
<div class="image-info-bar-item obstime"> {{ obstime }} </div>
<div class="image-info-bar-item obstime"> {{ obstime }}
</div>

Copy link
Contributor

@capetillo capetillo left a comment

Choose a reason for hiding this comment

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

Great work, Tim!

@timbeccue timbeccue force-pushed the feature/smartstack-exposure-calculation branch from e64b87a to 9126c0a Compare September 28, 2023 17:12
@timbeccue timbeccue merged commit 7035693 into dev Sep 28, 2023
2 checks passed
@timbeccue timbeccue deleted the feature/smartstack-exposure-calculation branch September 28, 2023 17:14
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