Comments (7)
I see. Maybe it should not be excluded from the query but just from the explicit listing of the subcollections
in the PRC?
From a user/scientific programmer perspective these are two different things for me. Explicitly calling subcollections
I expected to get all members of the collection. While indeed, as a user, when I do iRODS path operations, it would be nice to behave similarly to pathlib or linux paths.
The iRODS Query I see as a sort of a backend function that gives information which then needs to be tweaked towards the user API call goal, i.e. list sub collections and return parent path.
I hope that makes sense and it is strictly from a programmers and user perspective.
from python-irodsclient.
Yes, agree, also. And with 'sub' being part of the name, some developers might expect to be able to write collection iterators or iterating functions where the
subcollections
member can be depended to be a proper subcollection of the parent. (In the mathematical sense of "proper" e.g. "proper subset"). That should be allowable, with no members of subcollections being 'equal' to the parent, otherwise the developer gets an infinite loop calling the iterator on the root collection.
Indeed I also noticed that in a never-ending while loop :)
from python-irodsclient.
Oh, well that's neat. Hmmm....
from python-irodsclient.
Yep, probably because:
$ iquest "select COLL_NAME where COLL_PARENT_NAME = '/'"
COLL_NAME = /
------------------------------------------------------------
COLL_NAME = /tempZone
------------------------------------------------------------
which is a very special case (only one collection is its own parent, and that's "/") so just excluding '/' specifically from the query should work just fine.
On the other hand:
$ cd / ; cd .. ; pwd
/
$ icd /
$ icd ..
ERROR: parseRodsPath: parsing error for /..
No such collection: /..
from python-irodsclient.
I think I agree. PRC could exclude the /
from the subcollections method easily enough...
python-irodsclient/irods/collection.py
Lines 50 to 53 in d475679
from python-irodsclient.
Yes, agree, also. And with 'sub' being part of the name, some developers might expect to be able to write collection iterators or iterating functions where the subcollections
member can be depended to be a proper subcollection of the parent. (In the mathematical sense of "proper" e.g. "proper subset"). That should be allowable, with no members of subcollections being 'equal' to the parent, otherwise the developer gets an infinite loop calling the iterator on the root collection.
from python-irodsclient.
@d-w-moore - Please close if complete. Thanks!
from python-irodsclient.
Related Issues (20)
- ISCC codes for iRODS data objects HOT 1
- Allow tqdm progress bars to be used with python-irodsclient HOT 5
- Admin mode metadata(admin=True) is not honored for apply_atomic_operations HOT 2
- Investigate separating `irods.data_object_manager` upload progress bars into a module
- Metadata timestamps returned for objects and collections HOT 9
- non-printable characters make it into metadata, but the response breaks the XML parser HOT 16
- Write test for connection timeouts in combination with SSL sockets.
- Process settings environment variables regardless whether a settings file is being sourced
- Allow temporary override to XML parser used HOT 1
- test helper function unique_name(...) broken for Python >=3.11 HOT 1
- Consider moving `irods.test.helpers.make_session` into `irods.helpers` HOT 6
- Change `unittest.skipIf` decorator into an assertion for some tests
- moving of functions between module namespaces
- Document how to store passwords in `.irodsA` file HOT 4
- Test failures with mysql and mariadb HOT 6
- refactor to use argparse
- `irods.test.query_test.TestQuery.test_files_query_case_sensitive`'s `between` test fails for mysql HOT 1
- Different operations(calls) in the same session results in the same pid HOT 9
- for downloads less than 32MB `pep_api_data_obj_read_*` is triggered more than once and contains wrong size info in `len` attribute
- Allow access to raw server message even when an iRODSException is thrown
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-irodsclient.