Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
cyclobs
cyclobs_orm
Commits
4a79b0ab
Commit
4a79b0ab
authored
Dec 02, 2020
by
CEVAER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added SFMR relationship
parent
35984fcd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
cyclobs_orm/__init__.py
cyclobs_orm/__init__.py
+6
-0
No files found.
cyclobs_orm/__init__.py
View file @
4a79b0ab
...
...
@@ -87,6 +87,12 @@ class Acquisition(Base):
simpletrack
=
relationship
(
"SimpleTrack"
,
back_populates
=
"acquisitions"
)
sfmr_track
=
relationship
(
"Track"
,
primaryjoin
=
"and_(foreign(Acquisition.sid_SimpleTrack) == Track.sid,"
"Track.source.like('sfmr%'),"
"Acquisition.startdate >= Track.startdate,"
"Acquisition.startdate <= Track.stopdate)"
,
backref
=
"sfmr_acq"
)
basins
=
relationship
(
"Basin"
,
secondary
=
basin_acquisition
,
back_populates
=
"acquisitions"
)
basin_geom
=
relationship
(
"Basin"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment