-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/uid filter #179
Feature/uid filter #179
Conversation
Codecov Report
@@ Coverage Diff @@
## devel #179 +/- ##
==========================================
- Coverage 22.71% 22.55% -0.16%
==========================================
Files 7 7
Lines 1114 1126 +12
==========================================
+ Hits 253 254 +1
- Misses 861 872 +11
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
You can test this for example with: pat = re.compile('^.*0$')
s2 = session.filter(uid=pat)
for e in s2.get():
print('===', e.uid) which should result in a session which has only entities whose uids end on $ ./examples/00_session_describe_rp.py ~/j/rp/rp.session.thinkie.merzky.019622.0014/
1696281856.321 : radical.analytics : 174194 : 139899907416128 : INFO : radical.analytics version: 1.35.0-v1.34.0-6-g430bb2d@feature-uid_filter
using cache for rp.session.thinkie.merzky.019622.0014
=== cmgr.0000
=== stager.0000
=== pmgr_launching.0000
=== pmgr.0000
=== pilot.0000
=== tmgr_staging_input.0000
=== tmgr_scheduling.0000
=== tmgr_staging_output.0000
=== tmgr.0000
=== task.000000
=== task.000010
=== task.000020
=== task.000030
=== task.000040
=== task.000050
=== task.000060
=== task.000070
=== task.000080
=== task.000090
=== task.000100
=== task.000110
=== task.000120 Now the problem is of course to create the correct pattern :-) |
I improved this a bit to: pat1 = 'pilot.0001'
pat2 = re.compile(r'^task\..*0$')
s2 = session.filter(uid=[pat1, pat2])
for e in s2.get():
print('===', e.uid) which should be what we need I think: $ ./examples/00_session_describe_rp.py ~/j/rp/rp.session.thinkie.merzky.019622.0014/
=== pilot.0001
=== task.000000
=== task.000010
=== task.000020
=== task.000030
=== task.000040
=== task.000050
=== task.000060
=== task.000070
=== task.000080
=== task.000090
=== task.000100
=== task.000110
=== task.000120 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks.
allow to filter session by uid regex matching