Skip to content
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
feb5817
safety push
jnspitale Dec 10, 2025
aff24c2
Merge branch 'main' into jns-metadata-updates
jnspitale Dec 10, 2025
0f6090b
coderabbit fixes
jnspitale Dec 11, 2025
8e26cde
Merge branch 'jns-metadata-updates' of https://github.com/SETI/rms-oo…
jnspitale Dec 11, 2025
2ae7145
coderabbit
jnspitale Feb 3, 2026
782474a
remove superfluous _fill_limb_intercepts code block in limb_clock_angle
jnspitale Feb 9, 2026
b57b8a7
- fix missing import in tests/hosts/hst/__init__.py
jnspitale Feb 11, 2026
4bca3b1
coderabbit
jnspitale Feb 11, 2026
d867a71
Merge branch 'jns-cleanup' into jns-metadata-updates
jnspitale Feb 18, 2026
ef5e9aa
Use 'fast' method for reading label in galileo ssi.
jnspitale Feb 20, 2026
9d0858c
Merge branch 'main' into jns-host-updates
jnspitale Feb 20, 2026
8edd4e8
Fix imports in junocam/standard_obs.py
jnspitale Feb 23, 2026
cbb650f
convert galileo ssi to use fcpath instead of local path in from _index
jnspitale Apr 28, 2026
ae883c6
Removed FCPath.retrieve where possible
jnspitale Apr 29, 2026
9b9ad98
Removed FCPath.retrieve from jiram modules.
jnspitale Apr 29, 2026
c7143ee
coderabbit
jnspitale Apr 30, 2026
39edf53
Propagate method argument in second call to Pds3Label in voyager/iss.py
jnspitale May 2, 2026
b16102c
coderabbit
jnspitale May 2, 2026
5116ca1
coderabbit
jnspitale May 2, 2026
33943d6
Merge branch 'main' into jns-host-updates
jnspitale May 2, 2026
5fcaf76
Rob comments
jnspitale May 4, 2026
6bf91fb
Remove explicit use of filecache.retrieve()
jnspitale May 6, 2026
10dffb9
Merge branch 'main' into jns-145
jnspitale May 6, 2026
8d5136e
coderabbit
jnspitale May 6, 2026
ce624f4
use filecache.exists(), filecache.modification_time() gold_master
jnspitale May 7, 2026
9b3005d
coderabbit
jnspitale May 7, 2026
a261676
coderabbit
jnspitale May 7, 2026
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
59 changes: 18 additions & 41 deletions oops/gold_master/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,31 +1147,19 @@ def run_tests(self):
log_path = (BACKPLANE_OUTPUT_PREFIX / self.output_dir /
f'{self.task}.log')

localpath = None
try:
localpath = log_path.retrieve()
except FileNotFoundError:
pass

if localpath:
if log_path.exists():

# Append the latest modification date to the pre-existing file
dt = datetime.datetime.fromtimestamp(os.path.getmtime(localpath))
dt = datetime.datetime.fromtimestamp(log_path.modification_time(),
tz=datetime.timezone.utc)
suffix = dt.strftime('-%Y-%m-%dT%H-%M-%S')
dated_localpath = localpath[:-4] + suffix + '.log'
dated_logpath = log_path[:-4] + suffix + '.log'
# Note that for a cloud destination, this doesn't actually delete
# the original summary.py file in the cloud, since you can't rename
# files in the cloud. Instead we upload a copy with the new dated
# name and then the write below will overwrite the old version.
# Also notice that this attempt to use the modification date of the
# original summary.py file won't work in the cloud, because
# creation/modification times are not preserved when a file is
# retrieved. Instead, it will use the time the file was downloaded.
os.rename(localpath, dated_localpath)
(BACKPLANE_OUTPUT_PREFIX / dated_logpath).upload()

abs_log_path = log_path.get_local_path()
handler = logging.FileHandler(abs_log_path)

# Move or copy the old log to its timestamped filename using
# filecache-aware replacement semantics.
log_path.replace(dated_logpath)

handler = logging.FileHandler(logpath.as_posix(), mode='w')
LOGGING.logger.addHandler(handler)

# Run the tests
Expand Down Expand Up @@ -2325,28 +2313,17 @@ def write_summary(self, outdir):

filepath = outdir / 'summary.py'

localpath = None
try:
localpath = str(filepath.retrieve(filepath))
except FileNotFoundError:
pass

if localpath:
if filepath.exists():

# Append the latest modification date to any pre-existing file
dt = datetime.datetime.fromtimestamp(os.path.getmtime(localpath))
dt = datetime.datetime.fromtimestamp(filepath.modification_time(),
tz=datetime.timezone.utc)
suffix = dt.strftime('-%Y-%m-%dT%H-%M-%S')
dated_localpath = localpath[:-3] + suffix + '.py'
dated_filepath = filepath[:-3] + suffix + '.py'
# Note that for a cloud destination, this doesn't actually delete
# the original summary.py file in the cloud, since you can't rename
# files in the cloud. Instead we upload a copy with the new dated
# name and then the write below will overwrite the old version.
# Also notice that this attempt to use the modification date of the
# original summary.py file won't work in the cloud, because
# creation/modification times are not preserved when a file is
# retrieved. Instead, it will use the time the file was downloaded.
os.rename(localpath, dated_localpath)
dated_filepath.upload()

# Move or copy the old summary to its timestamped filename using
# filecache-aware replacement semantics.
filepath.replace(dated_filepath)
LOGGING.info('Previous summary moved to:', dated_filepath.name)

titles = list(self.summary.keys())
Expand Down
Loading