Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/code-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,19 @@ jobs:
- name: Post-Process Output
run: |
python3 -m pip install nasa-scrub

results_dir=`realpath ${{ github.workspace }}/../results`
sarif_files=`find $results_dir -name '*.sarif'`

for sarif_file in $sarif_files
do
output_file="$results_dir/$(basename $sarif_file .sarif)_stripped.sarif"

python3 -m scrub.tools.parsers.translate_results $sarif_file $output_file ${{ github.workspace }} sarifv2.1.0
done

echo "RESULTS_DIR=$results_dir" >> $GITHUB_ENV

# This step makes the analysis artifacts available for download
# This can be helpful for debugging and archive purposes
- name: Upload Artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/full_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.10"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should 3.11 be included at this point, or no?

runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 1 addition & 4 deletions .python-version
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
3.7.15
3.8.15
3.9.15
3.10.8
3.10.20
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Similar question re 3.11

4 changes: 2 additions & 2 deletions ait/core/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"""
import os
import struct
from importlib.resources import files
from io import IOBase

import pkg_resources
import yaml

import ait
Expand Down Expand Up @@ -518,7 +518,7 @@ def getDefaultDictFilename(): # noqa


def getDefaultSchema(): # noqa
return pkg_resources.resource_filename("ait.core", "data/cmd_schema.json")
return files("ait.core").joinpath("data/cmd_schema.json")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do these need a str() call to ensure return type is maintained?



def getMaxCmdSize(): # noqa
Expand Down
4 changes: 2 additions & 2 deletions ait/core/evr.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"""
import os
import re
from importlib.resources import files

import pkg_resources
import yaml

import ait.core
Expand Down Expand Up @@ -75,7 +75,7 @@ def toJSON(self): # noqa


def getDefaultSchema(): # noqa
return pkg_resources.resource_filename("ait.core", "data/evr_schema.json")
return files("ait.core").joinpath("data/evr_schema.json")


def getDefaultDict(reload=False): # noqa
Expand Down
4 changes: 2 additions & 2 deletions ait/core/limits.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@

"""
import os
from importlib.resources import files
from io import IOBase

import pkg_resources
import yaml

import ait
Expand Down Expand Up @@ -224,7 +224,7 @@ def getDefaultDict(reload=False): # noqa


def getDefaultSchema(): # noqa
return pkg_resources.resource_filename("ait.core", "data/limits_schema.json")
return files("ait.core").joinpath("data/limits_schema.json")


def getDefaultDictFilename(): # noqa
Expand Down
4 changes: 2 additions & 2 deletions ait/core/tlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
import csv
import os
import struct
from importlib.resources import files
from io import IOBase

import pkg_resources
import yaml

import ait
Expand Down Expand Up @@ -1096,7 +1096,7 @@ def getDefaultDict(reload=False): # noqa


def getDefaultSchema(): # noqa
return pkg_resources.resource_filename("ait.core", "data/tlm_schema.json")
return files("ait.core").joinpath("data/tlm_schema.json")


def getDefaultDictFilename(): # noqa
Expand Down
Binary file modified config/leapseconds.dat
Binary file not shown.
Loading
Loading