Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyiricdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioinfo_iric
pyiricdata
Merge requests
!19
Resolve "Lacking sanity checks to iricdata connection"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Lacking sanity checks to iricdata connection"
21-lacking-sanity-checks-to-iricdata-connection
into
master
Overview
2
Commits
3
Pipelines
0
Changes
2
All threads resolved!
Hide all comments
Merged
Albert Feghaly
requested to merge
21-lacking-sanity-checks-to-iricdata-connection
into
master
4 years ago
Overview
2
Commits
3
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Expand
Closes
#21 (closed)
Edited
4 years ago
by
Albert Feghaly
0
0
Merge request reports
Compare
version 2
version 3
a7810c40
4 years ago
version 2
53615808
4 years ago
version 1
0ed729f2
4 years ago
master (base)
and
latest version
latest version
a7810c40
3 commits,
4 years ago
version 3
a7810c40
3 commits,
4 years ago
version 2
53615808
2 commits,
4 years ago
version 1
0ed729f2
1 commit,
4 years ago
Show latest version
1 file
+
9
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
pyiricdata/Client.py
+
9
−
4
Options
@@ -309,11 +309,16 @@ class Client:
"""
def
filter_datafiles
(
self
,
term
,
field
=
'
filename
'
,
exact_match
=
False
,
**
kwargs
):
df
=
self
.
get_datafiles_list
(
**
kwargs
)
if
exact_match
:
return
df
[
df
[
field
].
str
.
fullmatch
(
term
)]
if
df
is
None
:
sys
.
stderr
.
write
(
"
Please try again with more arguments, for more details please see function get_datafiles_list()
"
)
return
None
elif
df
.
empty
:
return
None
else
:
return
df
[
df
[
field
].
str
.
contains
(
term
)]
if
exact_match
:
return
df
[
df
[
field
].
str
.
fullmatch
(
term
)]
else
:
return
df
[
df
[
field
].
str
.
contains
(
term
)]
"""
Get file content according to file_id
"""
def
get_file
(
self
,
file_id
):
Loading