You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/jlavoie/Projets/xscen/xscen/config.py", line 224, in _wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/jlavoie/Projets/xscen/xscen/aggregate.py", line 646, in compute_deltas
update_attr(
File "/home/jlavoie/Projets/xscen/xscen/utils.py", line 145, in update_attr
f"attr{i}": dso.attrs.get(key, dso.attrs.get(attr, "")).strip(" .")
^^^^^^^^^
AttributeError: 'str' object has no attribute 'attrs'
<!-- Please ensure the PR fulfills the following requirements! -->
<!-- If this is your first PR, make sure to add your details to the
AUTHORS.rst! -->
### Pull Request Checklist:
- [x] This PR addresses an already opened issue (for bug fixes /
features)
- This PR fixes#404
- [ ] (If applicable) Documentation has been added / updated (for bug
fixes / features).
- [ ] (If applicable) Tests have been added.
- [x] This PR does not seem to break the templates.
- [x] CHANGES.rst has been updated (with summary of main changes).
- [x] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added.
### What kind of change does this PR introduce?
* A few fixes to the templates due to changes in xscen and xarray
* Fix#404, I don't know why this worked in the past but not now. From
my understanding there were 2 problems:
1) We iterate over `others` and assign it to `others`. This breaks the
iteration.
2) In the first instance, we pass a dict of dataset to create a dict of
str (l.137). Then, when we iterate over `others` in l.147, it is no
longuer a dict of dataset, we can't get to `attrs`.
Let me know if I misunderstood something.
### Does this PR introduce a breaking change?
i don't think so.
### Other information:
Setup Information
env xscen-0.9
Description
compute_delta
casse surupdate_attr
Steps To Reproduce
Additional context
Je pense que associer un dict à une liste dans laquelle on est en train d'iterate, ça bug.
Contribution
The text was updated successfully, but these errors were encountered: