[3.3] Framing Assistant: Add multi-source cache support#87
Conversation
7fd8000 to
132c236
Compare
| <ColumnDefinition /> | ||
| </Grid.ColumnDefinitions> | ||
| <TextBlock VerticalAlignment="Center" Text="Cache source" /> | ||
| <ComboBox |
There was a problem hiding this comment.
the combobox should have the same alignment as the image source
| string cacheInfoPath; | ||
|
|
||
| if (source == Default || string.IsNullOrEmpty(source)) { | ||
| cachePath = framingAssistantCachePath; |
There was a problem hiding this comment.
The default entry is a bit odd. I would assume that you either have only one survey folder or one that is setup only with subfolders and not a mix.
To a user the default entry in the combobox might also be confusing - It makes sense internally as the backwards compatible fallback, but i would expect only my subfolders to be available when the cache is set up with multiple caches.
There was a problem hiding this comment.
@isbeorn thanks for comment!
Default name can be probably odd, may be Root or anything other can fit.
My intention to have main directory with subdirectores are
a) backward compatibility. cache is also used in Sky Atlas screen. In case the user has "subdirs only solution" we have to provide a setting to choose main cache to be used in Sky Atlas
b) easier transition without migrations. I suppose many users already have FramingAssistantCache setup, and then we tell them "move you cache to a subdir and add other subdirs" but then what "sky survey setting folder" should point to? Can be misunderstanding there, IMO. Or we should provide migration script?
c) In case a user doesn't plan to add subfolders, do we force to move current default cache to subfolder?
d) I believe a fallback is required in case of emergency
May be a Tooltip can be added explaining what is Root or Default (with path or not). What do you think?
Also, currently I'm hiding combobox if subdirs are not detected. So that behavior is totally the same for all user. May be for transparency we should show it in all cases?
There was a problem hiding this comment.
What i don't want is a mix of root level and sub folders for the cache. A migration should be easy to handle in case there is such a mix done.
I see these scenarios:
- No subfolders: Old behavior - no combobox shown
- Subfolders available:
- Root level has cache and sub folders have cache
- Move the root level into a new folder "Default"
- Root level has no cache, but at least one sub folders has a cache
- Show the subfolder names in the combobox
- Root level has cache and sub folders have cache
There was a problem hiding this comment.
What i don't want is a mix of root level and sub folders for the cache.
Any specific reasons for this?
What about Sky Atlas?
There was a problem hiding this comment.
Hi, as the creator of the additional sky caches based on the Northern Sky Narrowband Survey I had some thoughts on a possible integration as well.
Would it make sense under options to simply add 1-2 additional framing cache paths which in the framing assistant can be selected from the existing drop down like the regular sky cache?
There was a problem hiding this comment.
What i don't want is a mix of root level and sub folders for the cache.
Any specific reasons for this?
What about Sky Atlas?
it's just a confusing setup for a user
There was a problem hiding this comment.
@astroalex80 thanks for surveys!
As a user I wanted to have all of the surveys, I especially liked Ha and rgb versions. So having 8-9 paths in settings just to provide different surveys seed to me like an overkill. That's why I created this solution - just drop subdirs and forget. And you can manage which preview is shown is Sky Atlas by changing root dir, so that I can have narrowband previews in search.
Of course it can be done in more manageable way with migrations, metadata etc, but for me it's a matter of effort and winnings. Which I don't clearly see
There was a problem hiding this comment.
Agree, keep it simple also as the creation of additional sky survey caches is quite unlikely due to missing sky survey sources with a reasonably large coverage and (visual) improvement over the existing cache. There are tons of surveys of course but not better than the DSS when it comes to visual spectrum. For narrowband there are even less sources.
For H-Alpha I am working on the MDW survey to make it available as an additional cache as it is of excellent quality and allsky. Of course, licence questions must be answered and permission be granted but giving the fact they are public available hosted by the Columbia University this shouldn't be a show stopper.
@daleghent the new (Northern Sky Narrowband Survey) caches include a licence txt file with clear description of their origin/source.
|
The image cache packs seem to have something missing, and that is metadata about themselves. There is the From a design and delivery standpoint, I think we have an opportunity to step back and reconsider the current design. Populating the combo box based on directory names that cache files live in seems rather unsophisticated. It's plausible that a user could place these cache files in a location that, combined with the name, busts Windows length limit on total paths and creating a situation where the user must contort the directory name (and thus the presented name) of the cache file directories just to get it to work. I propose taking this opportunity to expand the existing
Critical for this topic is the name of the cache pack. Not all of the above fields would be immediately used by NINA, but would at least be available to provide sufficient description, origin information, and license information to those who would look for it. That information would be present for a future "Image cache manager" to use, similar to the existing plugin manager. In fact, it may be useful to think of these image cache packs as a different type of NINA plugin. The cache packs would still live under a root directory. Each one would be unzipped/unpacked directly into its own uniquely-named sub-directory off that root. I would suggest that sub-directory be a GUID or portion of a GUID (first or last 8 characters) to ensure non-interference with an unrelated cache pack. Upon app startup, NINA's Framing Assistant would scan those directories and read contents of This would accomplish a few things:
|
77c84c0 to
e5d5c0d
Compare
…aches should be placed inside framingAssistantCachePath as subdirectores. Selecting cache UI is added to skyatlas mode of Framing Assistant
e5d5c0d to
9979f24
Compare
|
Rebased onto current develop |
|
Sorry for the late reply, I just had the time today to give this another look. I’d like the cache layout to be either the old single root cache, or multiple subfolder caches, but not a mix. Requested changes:
The combobox alignment change looks good. @daleghent I agree that richer cache-pack metadata would be useful later, but I'd keep that as a separate follow-up and keep this PR focused on fixing the cache layout and selection behavior. |
Framing Assistant: Add multi-source cache support for SKYATLAS. New caches should be placed inside framingAssistantCachePath as subdirectores. Selecting cache UI is added to skyatlas mode of Framing Assistant
🚀 Purpose
Since we have new excellent sky survey by sigm.de that would be great to have ability to use Framing Assistant in different surveys. A user can add existing caches as subdirectories of
framingAssistantCachePathand switch them in runtime when sky atlas is selected. Clearing cache clears all caches including subdirectories. If no subdirectores were found, no combobox is shown (same as previous ui behavior)🧪 How Was It Tested?
Manual tests. Adding, removing subdirs, empty subdirs, invalid cacheinfo in subdirs
✅ PR Checklist
Changelog.mdupdated (if applicable)🔗 Related Issues
📸 Screenshots
📝 Additional Notes