You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR covers updates needed to generate the MER-B content for the MTE PDS bundle, including:
Addition of MER-B aliases file
Updates to template files
Updates to some core MTE scripts
@stevenlujpl Could you take a look at the updates to the scripts? (ingest_sqlite.py, update_sqlite.py, and generate_pds4_bundle.py) No need to look at the template and alias files unless you want to. However, I'd appreciate your check over the three Python scripts mentioned above, to see if there are any issues you spot.
@stevenlujpl Steven, I just noticed that this PR is still open. Would you have a chance to look at the changes to these three scripts? If too much time has passed or this would be too onerous, just let me know. :)
Hi @wkiri , looking at generate_pds4_bundle.py and the MERB template files, I think they are fine for generating MERB bundles. However, I can't remember why we also need to modify update_sqlite.py and ingest_sqlite.py. It seems these two scripts don't have mission-specific code, which means if they work for other missions, they should also be working fine for MERB.
Hi @wkiri , thanks for posting the links to the changes.
For update_sqlite.py, I think using the csv library is a more robust way of handling csv files.
For ingest_sqlite.py, it seems the change only makes sense if we added another type to r['label']. In addition to Target, Element, and Mineral, do you remember if we added another type to r['label']? Anyway, I think the current implementation is more robust because we only want the Element and Mineral entities to be ingested.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR covers updates needed to generate the MER-B content for the MTE PDS bundle, including:
@stevenlujpl Could you take a look at the updates to the scripts? (
ingest_sqlite.py,update_sqlite.py, andgenerate_pds4_bundle.py) No need to look at the template and alias files unless you want to. However, I'd appreciate your check over the three Python scripts mentioned above, to see if there are any issues you spot.