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
Copy file name to clipboardExpand all lines: docs/sqlite_readme.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ The `fields` table contains the results of the file name check for every single
19
19
20
20
Within the `fields` table, your files are evaluated as follows (see [File Naming Convention](https://outerspace.stsci.edu/display/MASTDOCS/File+Naming+Convention) for more details):
21
21
22
-
-Captalization: the filename must be all lower case.
22
+
-Capitalization: the filename must be all lower case.
23
23
- Character Length: each field has a maximum character length.
24
24
- Format: checks overall format and special characters: for example, a period `.` is allowed in the `<version>` field but not in the `<proj-id>`. Certain fields allow hyphen-separated elements. Most fields must begin and end with an ASCII alpha-numeric character.
25
25
- Value: In some cases, the contents of each field are validated against known values to the extent possible.
@@ -31,3 +31,35 @@ Within the `filename` table (`Browse Data` tab, then select table `filename` in
31
31

32
32
33
33
Again, please see [`filename_check_readme.md`](../docs/filename_check_readme.md) for how to run the filechecker or the HLSP [File Naming Convention](https://outerspace.stsci.edu/display/MASTDOCS/File+Naming+Convention) for detailed rules.
34
+
35
+
### Opening the SQLite file with Python
36
+
37
+
An alternative way to read and interact with the DB file is to open it in Python. This might be useful for large HLSPs with many files, or if you want to explore the results programmatically.
38
+
39
+
For instance, if you want to get the full list of tables and views available to query, you can use the following Python code:
40
+
41
+
```python
42
+
# load sqlite3 module
43
+
import sqlite3
44
+
45
+
# modify the path to reflect the relative path of your results_mct-tutorial.db file
0 commit comments