-
Notifications
You must be signed in to change notification settings - Fork 6
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
Create Compilation records where Missions are used for Figures and Projects #80
Comments
This can't be found in the Notes files unfortunately. The working directory will initially be in the same year's directory as the mission files, but as new missions are conducted for a project, the old missions will be used again and again, with the working directories migrating upwards, to new year directories. |
And in thinking about it, a mission might be utilized in many working directories even in the same year, as time goes by. Dave is interested in being able to navigate to the projects where a mission is used. Perhaps the way to find the working directories is to search for a mission's name in all of the datalist*.mb-1 files in the entire SeafloorMapping share and display each unique path where the mission has been used, sorted so most recent use is at the top of the list. Then the user can click on the path that suits their purpose. |
Just what I was thinking:
Some kind of tree structure will result where we can map nodes onto Compilation records. |
With this change of schema, and the clearest way to search for "projects" being to look for datalist*.mb-1 files that use a mission (and there can be more than one in a given directory, BTW), I will need to change what is in the exclude.list file. I had been focused on listing directories that were being picked up due to presence of ZTopo.grd files, but were not mission directories. However, if a "project" directory is in that list because it had a ZTopo.grd in it (there are many), will it now will be overlooked by any script? If so, they'll need to be deleted from the exclude.list and the ZTopo.grd files in them renamed. |
About to start making schema changes, so I want to capture the current schema diagram. This is generated on my development system with the command:
where This image will now be kept up to date in the repository at: https://github.com/mbari-org/SeafloorMappingDB/blob/main/smdb/docs/smdb_schema.png |
Nice!
Sent from Jenny’s iPhone, expecT typ0z
On Jan 31, 2022, at 2:42 PM, Mike McCann ***@***.***> wrote:
About to start making schema changes, so I want to capture the current schema diagram. This is generated on my development system with the command:
docker-compose exec -e ***@***.***:5432/default django python smdb/manage.py graph_models smdb -o smdb/docs/smdb_schema.png
where <user> and <pw> are the user and password found in smdb/.envs/.production/.postgres.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.
|
I had futzed around with searching all the datalist*.mb-1 files for Missions and then looking up the mbgrid commands in the .cmd files in the Compilation directories, but it was quickly becoming completely overwhelming with many, many many-to-many relationships. The current PR now looks in just the Figures.cmd file found int a Compilation directory for the mbgrid commands, then navigates the input datalist and the output .grd file for metadata to link Missions to Compilations. In early tests on development systems this scheme is finding 500+ Compilations. The PR contains a new compilations view to show the Missions that make up the Compilation. |
Please modify this search to Figure*.cmd, as we I also have command files named like Figures_Jenny.cmd and Figure_Caress.cmd to separate our respective work. Note there are many files named like Figs_temp.cmd that don't need to be included in the search (they are subsets of the code in the Figures_Jenny.cmd-like files, so the whole command file isn't executed.) |
On the Compilation View page, the "Missions making up the Compilation" list is not being populated. As noted on the page, the link to the folder where the compilation grid is does not open the file system on Titan. |
(Also regards issue #78)
|
Re Compilations not finding all Missions
Another, https://smdb.shore.mbari.org/compilations/2019-agu-20191126aukamappingaguposter-cruisereportfigures-auka_mb_topo5cm/ |
(MM noted this in Issue #76) Many thumbnails for compilations are not being found. On Compilations pages, e.g., from 2020/Monterey/Figures/... |
The relevant code I'm stepping through in debug mode is here... Actually, the relevant line seems to be the pattern that's used to locate Figure*.cmd files. It finds only the
|
Looks like datalist_PuyDesFolles_MAUVp.mb-1 never got made, oops maybe.
Actually, for the purposes of SMDB's discovery of compilations, it's not necessary to search the MissionPlanning directories, as they get populated before a mission runs. MissionPlanning directories will always be in survey directories and often also in expedition directories, where in this case we wanted to prepare a grid of surveys the MAUVs had previously run so we could design a mission around them.
For 20230402m1, the directory I'd like the SMDB compilations search to find would be the expedition figures directory:
/Volumes/SeafloorMapping/2023/MAR_FKt230303/Figures/
Within that directory are these Figures*.cmd files
Figures_EMARK.cmd
Figures_make_datalists_EM124.cmd
Figures_GrappeDeux.cmd
Figures_not_EMARK_or_Grappe2.cmd
Figures_OLD_not_EMARK_or_Grappe2.cmd
Figures_prior_data_and_transits.cmd
Figures_PuyDesFolles.cmd
(which got created as we went, without concern for convention.)
Figures_PuyDesFolles.cmd used that mission, 20230402m1. I also worked in that file to generate figures for my AGU poster, I see.
--Jenny
From: "Mike McCann" ***@***.***>
To: "mbari-org/SeafloorMappingDB" ***@***.***>
Cc: "Jennifer Paduan" ***@***.***>, "Comment" ***@***.***>
Sent: Monday, March 18, 2024 9:40:40 AM
Subject: Re: [mbari-org/SeafloorMappingDB] Create Compilation records where Missions are used for Figures and Projects (#80)
[POSSIBLE IMPERSONATION: This message is using the name of an MBARI account holder and has originated from outside of the organization. Please review the content and sender information carefully.]
The relevant code I'm stepping through in debug mode is [ https://github.com/mbari-org/SeafloorMappingDB/blob/8b1e3d144bd49fcc36e2926ba93ac90367c67219/smdb/scripts/load.py#L1197-L1307 | here ] ...
Regarding [ #2 | #2 ] in [ #80 (comment) | #80 (comment) ] I see that the only "connection" from 20230402m1 to 2023/MAR_FKt230303/MissionPlanning/Figure.cmd is the datalist datalist_PuyDesFolles_MAUVp.mb-1 , which is a file that doesn't exist. Did that file get removed or something?
—
Reply to this email directly, [ #80 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AANRKOULAAND2KGVFYNPOFLYY4KIRAVCNFSM5FDGBDHKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBQGQ2DCNBYGYZQ | unsubscribe ] .
You are receiving this because you commented. Message ID: ***@***.***>
|
I finally got the Mac Arm development environment working with this large PR. This also includes a more relaxed search for Figures*.cmd files. The database was reloaded last night and a lot more Compilations are shown in the Mission detail views. I see several niggling problems now that I'm going to start addressing... |
One such detail is that many requests like this one are returning 500 errors: https://smdb.shore.mbari.org/compilations/2023-mar_fkt230303-figures-puydesfolles_mauv_topo1m/ This is because two identically named Compilations were loaded from two different .cmd files as can be seen in this query:
How should the loader or query logic deal with situations like this where files named like |
The database got reloaded yesterday with several fixes for finding and displaying Compilations. The Compilations detail page now shows warning(s) if multiple names are found, e.g. for https://smdb.shore.mbari.org/compilations/2023-mar_fkt230303-figures-puydesfolles_mauv_topo1m/. (The warnings don't behave properly due to my lack of CSS understanding, but this is a temporary fix for now.) |
Compilations page is not reliably finding *SlopeNav.jpgs; is it looking only for ZTopoSlopeNav.jpg in filenames? Can it display any JPG with the root of the grid name? Interestingly, in the list of compilations that 20241017m1 is used in, it finds the name of the thumbnail that isn't rendering on the page for the compilation: |
The _thumbnail_filename() method should find that SeismoSands_2024_Topo2m_SlopeNav.jpg file because it uses a "*" in the glob(). A message got written to last weekend's load log:
Yet the file has a date 2 days later:
Is it possible that the file didn't exist last weekend when the load ran? |
That's entirely possible!
--Jenny
From: "Mike McCann" ***@***.***>
To: "mbari-org/SeafloorMappingDB" ***@***.***>
Cc: "Jennifer Paduan" ***@***.***>, "Comment" ***@***.***>
Sent: Wednesday, November 6, 2024 3:14:48 PM
Subject: Re: [mbari-org/SeafloorMappingDB] Create Compilation records where Missions are used for Figures and Projects (#80)
[POSSIBLE IMPERSONATION: This message is using the name of an MBARI account holder and has originated from outside of the organization. Please review the content and sender information carefully.]
The [ https://github.com/mbari-org/SeafloorMappingDB/blob/4059e676401c17371669487645fb414edca12a5f/smdb/scripts/load.py#L1439-L1459 | _thumbnail_filename() method ] should find that SeismoSands_2024_Topo2m_SlopeNav.jpg file because it uses a "*" in the glob(). A message got written to last weekend's load log:
INFO 2024-11-03 20:58:16,942 load.py _thumbnail_filename():1457 Searched /mbari/SeafloorMapping/2024/MontereyCanyon/Figures/SeismoSands_2024_Topo2m* and found no files with extensions = ('jpg', 'jpeg', 'png', 'tif')
Yet the file has a date 2 days later:
***@***.***:/opt/SeafloorMappingDB$ ls -l /mbari/SeafloorMapping/2024/MontereyCanyon/Figures/SeismoSands_2024_Topo2m*.jpg
-rwx------ 1 paje 4294967294 1720550 Nov 5 09:45 /mbari/SeafloorMapping/2024/MontereyCanyon/Figures/SeismoSands_2024_Topo2m_SlopeNav.jpg
Is it possible that the file didn't exist last weekend when the load ran?
—
Reply to this email directly, [ #80 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AANRKOS6Z6MBL7VEQ35LAZ3Z7KPGRAVCNFSM6AAAAABRJSVY36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRQHE4DGMBXGQ | unsubscribe ] .
You are receiving this because you commented. Message ID: ***@***.***>
|
From the Use Case document:
The text was updated successfully, but these errors were encountered: