Skip to content
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

Cannot read properties of undefined(reading 'cell_counting') #1493

Open
Baokangwen opened this issue Nov 13, 2024 · 4 comments
Open

Cannot read properties of undefined(reading 'cell_counting') #1493

Baokangwen opened this issue Nov 13, 2024 · 4 comments

Comments

@Baokangwen
Copy link

Dear everyone,

Log in to the front-end page, an error is reported, the circled place in my picture shows the value as none, what is the reason for this?
1ba91ec6db21a38af3b561bc8bc361b

Best regards,
kven

@marcus-oscarsson
Copy link
Member

Can you paste the contents of your beamline.yml file ?

@Baokangwen
Copy link
Author

Baokangwen commented Nov 14, 2024

Can you paste the contents of your beamline.yml file ?
Dear @marcus-oscarsson ,
Below is the content of my beamline_config.yml profile, thank you.

# The class to initialise, and init parameters
_initialise_class:
    class: mxcubecore.HardwareObjects.Beamline.Beamline
    # Further key-value pairs here will be passed to the class init
#    mode: devel

# objects
#
# Eventually all objects should use the yaml config system like Beamline,
# but for now we can leave them as xml
#
# NBNB some objects that do not currently have their own config files
# would need those added (e.g. the centring methods)
#
_objects:
    # The !!o0map and the lines starting with '- ' give you an *orderd* dictionary
    # And thus a reproducible loading order
    !!omap
    # The values are the file paths to the configuration file for the
    # object, relative to the configuration file path(s)
    #
    # NB - the order is *NOT* arbitrary, as signal connnections are set
    # on one object that require the other to be already loaded.
    #
    # Hardware:
    - session: session.xml
    - machine_info: machine_info.xml
#    - detector: pilatus.xml
    - detector: detector.xml
    - beam: beam_info.xml
    - transmission: transmission.xml
    - flux: flux.xml
    - energy: energy.xml
    #- energy: energy-mockup.xml
    - resolution: resolution.xml
    - safety_shutter: safety_shutter.xml
    - fast_shutter: /udiff/udiff_fastshut.xml
    - hutch_interlock: hutchtrigger.xml
    #- sample_changer: isara.xml
    #- sample_changer_maintenance: isara_maint.xml
    #- sample_changer: sc_mockup.xml
    - sample_changer: sample-changer-mockup.xml
    #- sample_changer_maintenance: sc_maint_mockup.xml
    #- plate_manipulator: plate_manipulator.xml
    - plate_manipulator: plate-manipulator-mockup.xml
    #- diffractometer: mini-diff.xml
    - diffractometer: udiff.xml
    - lims: lims.xml
    - sample_view: sample_view.xml
    - queue_manager: queue.xml
    - queue_model: queue_model.xml

    # Procedures:
    - xml_rpc_server: xml_rpc_server.xml
    - workflow: ednaparams.xml
    - collect: mxcollect.xml
    - xrf_spectrum: xrf.xml
#    - energy_scan: energyscan.xml
   # - gphl_workflow: gphl-workflow.xml
   # - gphl_connection: gphl-setup.xml
    #- centring: centring-math.xml
    # Analysis:
   # - offline_processing: auto-processing-mockup.xml
#    - online_processing: parallel_processing.xml
    - characterisation: characterisation_mockup.xml
#    - data_publisher: data_publisher.xml
#    - scan_mockup: scan_mockup.xml

    # - beam_realign: # Skipped - optional

# Non-object attributes:
advanced_methods:
  - MeshScan
  - XrayCentering

tunable_wavelength: true
disable_num_passes: true
run_processing_parallel: true
run_number: 1
click_centring_num_clicks: 3

default_acquisition_parameters:
    default:
        # Default values, also used for standard acquisition.
        # Values not given in other dictionaries are taken from here
#        exp_time: 0.1        # exposure time
        exp_time: 1.0        # exposure time
        osc_start: 0.0  # Only used if no current angle can be found
        osc_range: 1
        num_passes: 1
        first_image: 1
        overlap: 0
        num_images: 1
        detector_mode: 1 # Remove as not in practice used ?
        inverse_beam: false
        take_dark_current: true
        skip_existing_images: true
        take_snapshots: true
        # NB 'compression' not added as apparently never used

    helical:
        # Defaults for helical scan. Missing values are taken from default
        number_of_images: 100

    characterisation:
        # Defaults for chareacterisation. Missing values are taken from default
        exp_time: 0.1       # exposure time
        osc_range: 1
        overlap: -89
        num_images: 4

    mesh:
        # Defaults for 'advanced' acquisition. Missing values are taken from default
        exp_time: 10       # exposure time
        range: 10
        num_images: 100
        cell_counting: zig-zag
        cell_spacing: vertical, horizontal
        mesh_center: top-left

acquisition_limit_values:
    exposure_time:
        - 0.1
        - 1000
    osc_range:
        - -10000
        - 10000
    number_of_images:
        - 1
        - 99999
    kappa:
        - -5.0
        - 240.0

available_methods:
    datacollection: True
    characterisation: True
    helical: True
    xrf_scan: True
    energy_scan: True
    mesh_scan: True

undulator:
    - type: PPU35C_GAP
      device_uri: //orion:10000/id/id/30

    - type: PPU35D_GAP
      device_uri: //orion:10000/id/id/30

@beteva
Copy link
Member

beteva commented Nov 14, 2024

Dear @Baokangwen, looking at your configuration file, I have few questions/comments:

  • do you try to run MXCuBE on a real beamline or with the mockup classes?
  • do you do energy scan and XRF - if not, put them as False
  • you should remove everything which concerns the undulators - what I see is very ESRF specific.

@Baokangwen
Copy link
Author

Dear @marcus-oscarsson,
Thanks for your replying.
I run MXCuBE on a real beamline,I changed it according to the ESRF configuration file, I modified it according to your requirements, I added "mesh:True" to the configuration file, and solved the error.

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

No branches or pull requests

3 participants