We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A line as this one in the outputs-tagged cell rmf = jemx_rmf_dp # oda:DataProduct ; oda:label "RMF file" causes the error
rmf = jemx_rmf_dp # oda:DataProduct ; oda:label "RMF file"
File /opt/conda/lib/python3.10/site-packages/nb2workflow/nbadapter.py:1183, in validate_oda_dispatcher(nba, optional, machine_readable) 1179 prod_list = nbpq.build_product_list(instrument=None, res=MockRes, out_dir=None) 1181 for prod in prod_list: 1182 logger.info("\033[33mworkflow the output produces ODA product \033[0m: \033[31m%s\033[0m (%s) %s", -> 1183 prod.name, prod.type_key, prod) 1185 if machine_readable: 1186 print("WORKFLOW-DISPATCHER-SIGNATURE:", json.dumps([ 1187 {"parameters": dispatcher_parameters, 1188 "outputs": [{'name': prod.name, 'type': prod.type_key, 'class_name': prod.__class__.__name__} for prod in prod_list] 1189 }])) AttributeError: 'NB2WProduct' object has no attribute 'type_key'
This is because the class class NB2WProduct: (line 39 of products.py) has no attribute type_key which is defined only for the derived classes.
class NB2WProduct
products.py
type_key
As the NB2WProduct constructor is valid only for NumpyDataProduct-based products, I propose the associated PR
NB2WProduct
The text was updated successfully, but these errors were encountered:
dsavchenko
Successfully merging a pull request may close this issue.
A line as this one in the outputs-tagged cell
rmf = jemx_rmf_dp # oda:DataProduct ; oda:label "RMF file"
causes the error
This is because the class
class NB2WProduct
: (line 39 ofproducts.py
) has no attributetype_key
which is defined only for the derived classes.As the
NB2WProduct
constructor is valid only for NumpyDataProduct-based products, I propose the associated PRThe text was updated successfully, but these errors were encountered: