FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
STPT Mosaic Pipeline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Institute of Astronomy
camCEAD
IMAXT
STPT Mosaic Pipeline
Commits
e22637ae
Unverified
Commit
e22637ae
authored
5 years ago
by
Eduardo Gonzalez Solares
Browse files
Options
Downloads
Patches
Plain Diff
Remove save of results for each iteration
parent
305c2ae1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3
Dask
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stpt_pipeline/main.py
+3
-10
3 additions, 10 deletions
stpt_pipeline/main.py
with
3 additions
and
10 deletions
stpt_pipeline/main.py
+
3
−
10
View file @
e22637ae
...
...
@@ -146,13 +146,6 @@ def main(*, root_dir: str, flat_file: str, output_dir: str):
dy_mat
=
np
.
zeros
((
len
(
dx
),
len
(
dx
)))
-
9999
#
for
i
in
range
(
len
(
dx0
)):
# pick up if crash by reloading already calculated
# displacements
try
:
dx_mat
=
np
.
load
(
this_dir
+
'
desp_dist_x.npy
'
)
dy_mat
=
np
.
load
(
this_dir
+
'
desp_dist_y.npy
'
)
except
FileNotFoundError
:
print
(
'
No saved displacements found
'
)
#
# This is more or less the distance between images in detectors,
# so we only crossmatch images withn 1 detector size of the
...
...
@@ -244,6 +237,6 @@ def main(*, root_dir: str, flat_file: str, output_dir: str):
#
dx_mat
[
ind_obj
,
ind_ref
]
=
-
dy
dy_mat
[
ind_obj
,
ind_ref
]
=
dx
# storing
np
.
save
(
this
_dir
+
'
desp_dist_x
'
,
dx_mat
)
np
.
save
(
this
_dir
+
'
desp_dist_y
'
,
dy_mat
)
np
.
save
(
output
_dir
+
'
desp_dist_x
'
,
dx_mat
)
np
.
save
(
output
_dir
+
'
desp_dist_y
'
,
dy_mat
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment