Skip to content

Update fairmat branch with upstream main#332

Merged
lukaspie merged 498 commits into
fairmatfrom
fairmat-main-updated
Feb 28, 2025
Merged

Update fairmat branch with upstream main#332
lukaspie merged 498 commits into
fairmatfrom
fairmat-main-updated

Conversation

@lukaspie

@lukaspie lukaspie commented Feb 17, 2025

Copy link
Copy Markdown
Collaborator
  1. Switched to fairmat branch and created new branch fairmat-main-updated from there
  2. Ran git merge upstream/main
  3. Resolved merge conflicts for ~150 files
  4. Remove instances of NXidentifier
  5. Remove instances of NXserialized
  6. Implement nameType="partial" wherever possible -> probably still missed sone instances
  7. Run make nyaml
  8. Run make nxdl

This introduced unexpected changes compared to upstream/main in the applications and base_classes files. Therefore, I checked out these files from upstream/main manually (by running git checkout upstream/main <file>) and then only applied these changes that we want to keep:

  • changed the copyright starting date for files that we recently merged into NIAC main, but where we had (unintentionally) set all starting dates to 2014. Like NXactivity, NXfabrication, etc. We should probably make a PR to NIAC where we make these starting dates correct as well. For this, I used the mentioned script by the way.
  • there are some files where we have additional modifications which we have not proposed or are not yet merged to NIAC, e.g. NXactuator has NXpid_controller. Here, I kept the NIAC formatting, but this still probably change when we make further changes in the YAML files on our side.
  • changes that are still open in NIAC PRs (see NXbeam, NXentry, NXdata, for example).

All nyaml files were generated with nyaml=0.2.1 which also leads to a diff compared to existing files.

lukaspie and others added 30 commits October 16, 2024 10:16
…ersion

# Conflicts:
#	applications/NXarpes.nxdl.xml
#	applications/nyaml/NXarpes.yaml
#	base_classes/NXaperture.nxdl.xml
#	base_classes/NXbeam.nxdl.xml
#	base_classes/NXdata.nxdl.xml
#	base_classes/NXdetector.nxdl.xml
#	base_classes/NXentry.nxdl.xml
#	base_classes/NXenvironment.nxdl.xml
#	base_classes/NXinstrument.nxdl.xml
#	base_classes/NXroot.nxdl.xml
#	base_classes/NXsample.nxdl.xml
#	base_classes/NXsample_component.nxdl.xml
#	base_classes/NXsensor.nxdl.xml
#	base_classes/NXsource.nxdl.xml
#	base_classes/NXsubentry.nxdl.xml
#	base_classes/NXtransformations.nxdl.xml
#	base_classes/NXuser.nxdl.xml
#	base_classes/nyaml/NXaperture.yaml
#	base_classes/nyaml/NXbeam.yaml
#	base_classes/nyaml/NXdata.yaml
#	base_classes/nyaml/NXdetector.yaml
#	base_classes/nyaml/NXentry.yaml
#	base_classes/nyaml/NXenvironment.yaml
#	base_classes/nyaml/NXinstrument.yaml
#	base_classes/nyaml/NXmonochromator.yaml
#	base_classes/nyaml/NXprocess.yaml
#	base_classes/nyaml/NXroot.yaml
#	base_classes/nyaml/NXsample.yaml
#	base_classes/nyaml/NXsample_component.yaml
#	base_classes/nyaml/NXsensor.yaml
#	base_classes/nyaml/NXsource.yaml
#	base_classes/nyaml/NXsubentry.yaml
#	base_classes/nyaml/NXtransformations.yaml
#	base_classes/nyaml/NXuser.yaml
# Conflicts:
#	base_classes/NXaperture.nxdl.xml
#	base_classes/NXdetector.nxdl.xml
… version of yaml.

Removing unintensional comments

# Conflicts:
#	base_classes/NXbeam.nxdl.xml
#	base_classes/NXentry.nxdl.xml
#	base_classes/NXinstrument.nxdl.xml
#	base_classes/NXprocess.nxdl.xml
#	base_classes/NXsample.nxdl.xml
#	base_classes/NXsource.nxdl.xml
# Conflicts:
#	base_classes/NXinstrument.nxdl.xml
#	base_classes/NXsensor.nxdl.xml
#	base_classes/NXsource.nxdl.xml
#	base_classes/nyaml/NXdetector.yaml
#	base_classes/nyaml/NXinstrument.yaml
#	base_classes/nyaml/NXsensor.yaml
#	base_classes/nyaml/NXsource.yaml
# Conflicts:
#	contributed_definitions/nyaml/NXdetector.yaml
# Conflicts:
#	base_classes/nyaml/NXdetector.yaml
…ersion

# Conflicts:
#	applications/NXarpes.nxdl.xml
#	applications/nyaml/NXarpes.yaml
#	base_classes/NXaperture.nxdl.xml
#	base_classes/NXbeam.nxdl.xml
#	base_classes/NXdata.nxdl.xml
#	base_classes/NXentry.nxdl.xml
#	base_classes/NXenvironment.nxdl.xml
#	base_classes/NXinstrument.nxdl.xml
#	base_classes/NXmonochromator.nxdl.xml
#	base_classes/NXroot.nxdl.xml
#	base_classes/NXsample.nxdl.xml
#	base_classes/NXsample_component.nxdl.xml
#	base_classes/NXsensor.nxdl.xml
#	base_classes/NXsource.nxdl.xml
#	base_classes/NXsubentry.nxdl.xml
#	base_classes/NXtransformations.nxdl.xml
#	base_classes/NXuser.nxdl.xml
#	base_classes/nyaml/NXaperture.yaml
#	base_classes/nyaml/NXbeam.yaml
#	base_classes/nyaml/NXdata.yaml
#	base_classes/nyaml/NXdetector.yaml
#	base_classes/nyaml/NXentry.yaml
#	base_classes/nyaml/NXenvironment.yaml
#	base_classes/nyaml/NXmonochromator.yaml
#	base_classes/nyaml/NXprocess.yaml
#	base_classes/nyaml/NXroot.yaml
#	base_classes/nyaml/NXsample.yaml
#	base_classes/nyaml/NXsample_component.yaml
#	base_classes/nyaml/NXsensor.yaml
#	base_classes/nyaml/NXsubentry.yaml
#	base_classes/nyaml/NXtransformations.yaml
#	base_classes/nyaml/NXuser.yaml
#	contributed_definitions/nyaml/NXinstrument.yaml
#	contributed_definitions/nyaml/NXsource.yaml
…date-XML-files

show how to validate an XML file
…al-in-dev-tools

`name_type="partial"`  in dev tools

@RubelMozumder RubelMozumder left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, except the nameType issue. I also got 2-3 issue with data type. Nothing is very serious.

Comment thread contributed_definitions/nyaml/NXcg_marching_cubes.yaml
Comment thread contributed_definitions/nyaml/NXdispersive_material.yaml Outdated
Comment thread contributed_definitions/nyaml/NXem.yaml Outdated
Comment thread contributed_definitions/nyaml/NXem.yaml Outdated
Comment thread contributed_definitions/nyaml/NXstm.yaml Outdated
Comment thread contributed_definitions/nyaml/NXstm.yaml Outdated
Comment thread contributed_definitions/nyaml/NXstm.yaml Outdated
Comment thread contributed_definitions/nyaml/NXstm.yaml

@mkuehbach mkuehbach left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

A few more comments mainly on contributed_definitions/nyaml

@lukaspie lukaspie force-pushed the fairmat-main-updated branch from ceeb510 to e297747 Compare February 28, 2025 11:20

@mkuehbach mkuehbach left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice work!

@lukaspie lukaspie merged commit 365d4d8 into fairmat Feb 28, 2025
@lukaspie lukaspie deleted the fairmat-main-updated branch February 28, 2025 15:45
@lukaspie lukaspie mentioned this pull request Mar 4, 2025
@lukaspie lukaspie linked an issue Mar 4, 2025 that may be closed by this pull request
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.

Fairmat definitions sync with NIAC 2025

9 participants