Skip to content
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

Bug: stiltstation.find(outfmt = 'list') leads to TypeError #71

Closed
altix opened this issue Apr 26, 2022 · 1 comment · Fixed by #89
Closed

Bug: stiltstation.find(outfmt = 'list') leads to TypeError #71

altix opened this issue Apr 26, 2022 · 1 comment · Fixed by #89
Assignees
Labels
bug Something isn't working

Comments

@altix
Copy link
Collaborator

altix commented Apr 26, 2022

In order to reproduce, run the code:

from icoscp.stilt import stiltstation

stations = stiltstation.find(country="sweden",outfmt='list')

Result:

 /opt/conda/lib/python3.8/site-packages/icoscp/stilt/stiltstation.py in <listcomp>(.0)
    301 def __get_object(stations):
    302 
--> 303     return [StiltStation().get_info(stations[st]) for st in stations.keys()]
    304 
    305 

TypeError: __init__() missing 1 required positional argument: 'st_dict'
)
@altix altix added the bug Something isn't working label Apr 27, 2022
@altix altix self-assigned this Apr 27, 2022
@altix
Copy link
Collaborator Author

altix commented May 8, 2022

Branch: ad_stiltstation_find_outfmt_list_issue71

@ZogopZ ZogopZ linked a pull request Jul 6, 2022 that will close this issue
@ZogopZ ZogopZ closed this as completed Jul 6, 2022
@ZogopZ ZogopZ mentioned this issue Jul 6, 2022
@ZogopZ ZogopZ changed the title Bug: stiltstation.find(output = 'list') leads to TypeError Bug: stiltstation.find(outfmt = 'list') leads to TypeError Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants