-
Notifications
You must be signed in to change notification settings - Fork 5
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
missing compulsory argument in nbadapter call to NB2WProductQuery from dispatcher-plugin-nb2workflow #199
Comments
We haven't used this functionality anywhere for quite a while, so this function became incompatible with current dispatcher/plugin. And it stays untested as long as there is no more dispatcher/plugin in dependencies. @ferrigno in which scenario do you need it? @volodymyrss do we really want it like this, so that dispatcher/plugin is an optional dependency of nb2workflow? |
@dsavchenko , I was trying to run a test notebook for my workflows following the suggested example. I run it from my local virtual environment where I installed nb2worflow and dispatcher-plugin-nb2workflow from the git repository as suggested by @volodymyrss (I had to install also the dispatcher and I did it from the git repository) |
You don't really need the dispatcher/plugin in this context. You won't encounter the exception if you remove them from the virtual environment. |
I think the plugin was used to construct products from the test output, also verifying that the output annotation works. That is, it should be used. It's not great to use a dispatcher plugin for this and it would be better to use product classes from oda-api. But I do not suppose its possible now, @dsavchenko ? |
I can just confirm that I had to introduce the plugin because I encountered an error and could not obtain any result from the test. Removing it gives |
Unsurprisingly. You explicitly import it in test nb, but never use it after in fact |
The explicit import was just left from a test, the error appears also without import. |
https://renkulab.io/projects/astronomy/mmoda/isgri-expert/sessions/new?autostart=1&commit=bf08578d3050bce09000312050929d8692f03cde&branch=main |
There are both dispatcher and plugin in requirements. If you don't use them explicitly for some specific reason, you can remove both, then you won't encounter the exception. |
One can try to do it, but I don't think we ever did this explicitly. It was used to test, how dispatcher "understands" annotations. But this information then isn't reflected anywhere as far as I remember (if available, it stays as variable in the container). |
This was done and even sent by email, extracted from the container in here . Would be nice to recover this functionality along with bot tests, else it is progressively harder to make sure the workflows remain valid.
It's true that it's better to do it from outside of the container, within oda-bot. |
The import of nb2workflow is as suggested in the development guide ... at least when I started this project. The dispatcher plug-in is commented out. I let you discuss and solve this issue, as it goes beyond my field of competence. For me, it is just inconvenient that I cannot run a test as suggested. |
We are discussing with @dsavchenko what is the best next step for sustainable implementation, in relation to oda-hub/oda-bot#38 . If you @ferrigno want to help, you could maybe propose to make a change to the example or manual? To reflect your experience. Would be useful! |
The nb2workflow is obviously needed, as it's directly used in tests. |
I can reproduce the error on my machine. Additionally, I get the following warnings/error:
And there are complaints about unknown owl type uri such as
I am not sure if this is somehow related. |
I corrected some wrong annotations in the parameter cell for both isgri and jemx expert repositories, but not T1 and T2, as they are valid ontology terms, also suggested in the development guide. If I change the annotations of T1 and T2 into StartTimeISOT, the warning disappears, but the error in running with nb2workflow remains, so there is no relation. |
This should be related oda-hub/dispatcher-plugin-nb2workflow#111 . @anawas you can correct that class and it will help this issue. |
I found the line in the code where the exception is raised. The class
|
It's a path to ontology file to be loaded. You should be able to set a default published ontology path. Just could you please cross-check that it is used as intended? |
The follwing url return 404 when called. It's in file In addition I wonder if this is the cause for the frequent |
That's not our default ontology. It was used for somehow unrelated purposes. @volodymyrss may have more insight Our ontology is served from https://odahub.io/ontology/ontology.ttl and this path is hardcoded as default in the code where applicable. |
Yes, the fno is an old one. They have an update somewhere. But we should use our own (it has the references to upstream where suitable). |
I can now run locally some of the tests here: What is it used for? What is it supposed to return? I may need to write a mock for it. |
that URL is available only in the virtual network of the University of Geneva. You can use the public endpoint https://www.astro.unige.ch/mmoda/dispatch-data instead |
or use The current version of the test NB at |
The PR fixes this #212 |
UpdateThanks to the team at EPFL the above mentioned error (
Log output
|
With the last re-build, and after the renku incident was resolved, we now get this error when requesting a lilghtcurve for |
Yeah, any idea what it is? |
Unfortunately Sentry is not helping much. I noticed the same error on the french staging too |
So it's an issue in the dispatcher? Notebook is executed from top to bottom? I haven't yet reproduced on staging (because of some unrelated issue) |
Probably yes
Yes, I also got the |
I confirm on staging. Logs also don't give much insight |
So we need to add some code to extract better insight, both in sentry and also in the logs. |
It might be related, so I write here this information. When I run the test notebook https://gitlab.renkulab.io/astronomy/mmoda/isgri-expert/-/blob/main/test_products.ipynb?ref_type=heads I have the error: However, libmagic is present and with the latest version |
I managed to reproduce the issue locally. In particular, it happens inside the plugin, here: Because the In any case, I will provide a fix. |
the units_dict is an attribute of NumpyDataUnit which is initialized at None. Normally, in the light curve, it should be initialized to something else, but in principle it can be None. |
do you have a PR? |
|
Introducing the oda_ontology_path dedfined in the file gives another error
this goes beyond my understanding.
[I used the master branch of all repositories with python 3.10
The text was updated successfully, but these errors were encountered: