Skip to content

Cleanup and config change for GPhL-specific file#13

Open
rhfogh wants to merge 38 commits intomxcube:masterfrom
rhfogh:master
Open

Cleanup and config change for GPhL-specific file#13
rhfogh wants to merge 38 commits intomxcube:masterfrom
rhfogh:master

Conversation

@rhfogh
Copy link
Collaborator

@rhfogh rhfogh commented Dec 14, 2018

Added docker for Ubuntu:focal, Python3, Qt5,

# CUSTOM_BRICKS_PATH="/MXCuBE/mxcube/extra_brick_test_1:/MXCuBE/mxcube/extra_brick_test_2"
HARDWARE_REPOSITORY_SERVER="${HO_SERVER}/gphl_mock:/${HO_SERVER}:/${HO_SERVER}/embl_hh_p14"
CUSTOM_HARDWARE_OBJECTS_PATH=""
HARDWARE_REPOSITORY_SERVER="${HO_SERVER}/configuration/gphl_mock:/${HO_SERVER}/test/xml-qt:${HO_SERVER}/configuration/alba_xaloc13"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This path is ALBA specific, is that the intention ?

Copy link
Collaborator Author

@rhfogh rhfogh Jan 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sort of, yes. This is inside the 'gphl/' directory, which makes it global-phasing specific. Since I test relative to different beamlines I need to have varying specific directories on the lookup path, and it seemed easier to have all the configuring in one place, and checked in, and then change it at need. That way it is visible how things work, in a way it would not be if I relied on some other mechanism, like local environment variables. But if you feel it is not a good idea to have specific locations checked in, even in a gphl/ directory, I can change to a different model

rhfogh and others added 16 commits March 25, 2019 15:22
Regrettably the import cleanup (or a small part of it) was required
for the bug fix, hence the mixing of the two.

The import changes have moved to importing from HardwareRepository. etc.
and to gui. etc. in all cases, avoiding direct imports of e.g.
sample_centring, abstract.xyz, individual HOs etc.

The reason is that importing the same file under two different paths
creates two different copies in memory, so that state_x == state_y
or setting class attributes gives unpredictable results when the
class/instance is not from the same package in different cases.
Regrettably the import cleanup (or a small part of it) was required
for the bug fix, hence the mixing of the two.

The import changes have moved to importing from HardwareRepository. etc.
and to gui. etc. in all cases, avoiding direct imports of e.g.
sample_centring, abstract.xyz, individual HOs etc.

The reason is that importing the same file under two different paths
creates two different copies in memory, so that state_x == state_y
or setting class attributes gives unpredictable results when the
class/instance is not from the same package in different cases.
Added dose_budget and transmission calculation,
multiple characterisation strategies, ...
Debugging still incomplete
@marcus-oscarsson
Copy link
Member

I will see you later today, if I forget, remind me to ask you about this PR :)

@rhfogh
Copy link
Collaborator Author

rhfogh commented Dec 12, 2019

@marcus-oscarsson
As you see, this changes very slowly.
SOme of the commits have msileading names - the reason being taht I have a tendency to do a commit to all three repositories at once, with the name reflecting the major changes (which afre in the other repositories).

The actual changes here are in two parts:

  • Changes to the gphl subdirectory, which are the GPhL test dockers - free for anyone to make use of, but in practice used only by us (hence the name).
  • Changes to the qt3 dockers - now long obsolete - byut unlikely to hurt anyiohne. They worked when they were made.

Can we get this merged as it is, or what would I need to do tro get it movede forward?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants