Closed nsheff closed 4 years ago
This is annoying and comes up often enough that it's worth considering a ubiquerg
function to handle this, a wrapper that would lift a single string into a list and then concatenate. Could even have a parameter w/ default for what individual types to lift into list. I even thought there was something like this in ubiquerg
already, but it must've been either a little helper within another project, or else I'd just thought about it but never added it.
I've implemented such a function in refgenconf
:
I love the docstring on that function:
Convert a str to list of str or ensure a list is a list of str
@natefoo as per https://github.com/refgenie/refgenconf/issues/86, get_remote_data_str
should not be used anymore. The official method for querying remote assets, that supports multiple servers, is listr
.
I should have deprecated get_remote_data_str
, but evidently I have not, my bad.
@stolarczyk thanks! It may be worth mentioning the deprecation in the docstring so it ends up in the documentation? That's how I found it in the first place.
you're right, thanks :)
raised by @natefoo, confirmed by me.
it appears you can't retrieve the remote data correctly as it seems to expect only 1 server.
with: