-
Notifications
You must be signed in to change notification settings - Fork 53
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
Configuration files setup #944
Comments
I think we should cleanup the configuration file directory in
We should also in my opinion move it out of the Like this we can download these files from the UI's and use them for the tests, its a bit more Its perhaps a good occasion to look at this now as we are also dealing with #931 . |
How do you see this working across the Web and Qt implementations? Would you (still) be able to share mock configuration for hardware objects across the two? |
Oh yes, actually I see this also in the perspective of #931. Its probably sensible to first cleanup https://github.com/mxcube/mxcubecore/tree/develop/mxcubecore/configuration before also converting those files. It was also the reason why I thought it would be good to tackle #902. To share the exact same configuration file between web and qt versions would be very nice and I think the XML to YAML is a good step in that direction but it will of course require more work than only that. Looking at the configuration files with @beteva we realized that keeping them in the
So we would be in favor of moving the to the root of the repository like this they are at least not part of the python module, I guess it would even be more elegant if they are kept in their own repository. |
As a side note our ambition is to start to try out the YAML configuration file system as soon a s possible so that we can fix any remaining bugs. We would of-course very much appreciate if someone else did the same :) |
I think the config files used for mxcubecore tests should be kept separate from the ones in mxcubeweb. They are used for different purposes. The ones in mxcubeweb make it possible for everyone to run a full instance of the MXCuBE web. But we also need a set of config files to run the unit tests of mxcubecore code. I suggest following: 1) In mxcubeweb rename 2) In mxcubecore, move all config files used by the tests inside the I don't think it make sense to try unify contests of files in 1 and 2. For 1 the focus should be configure a fully featured beamline with mockup HWOs. For 2 the focus is test coverage of mxcubecore code. |
I have not really followed this topic, but at least for me it feels like this could be named |
If I understood correctly, Rasmus mentioned it might be possible to split configuration over multiple directories. So if I take the example of the configuration for a "demo beamline" does that mean it would possible to have the mxcubecore-specific parts of this configuration in mxcubecore and the web- (respectively qt-) specific parts of this config in mxcubeweb (mxcubeqt)? Would that make sense? Would that be helpful in some way? Would that make things more spread out all over the place and more confusing? |
@fabcor-maxiv mxcubeweb-server -r ~/pycharm/mxcubeweb/mxcubeweb/test/HardwareObjectsMockup.xml/gphl:~/pycharm/mxcubeweb/mxcubeweb/test/HardwareObjectsMockup.xml/ so that the ./gphl subdirectory contents override the general configuration files. |
What we perhaps could do is to use the I'm not sure it makes things less confusing, but like this we at least keep the duplication to a minimum. |
Find a way to share the mockup configuration files between mxcubecore and mxcubeweb repositories,
Mockup configuration files are needed both for testing the hardware objects in the mxcubecore and the implementation in mxcubeweb. The files are now in both repositories and very often differ from each other. Even worse - they are sometimes inconsistent (e.g. udiff_omega.xml in the mxcubeweb erepository does not correspond to the MotorMockup class in mxcubecore)
The text was updated successfully, but these errors were encountered: