Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects

Resolve "What is the status of OPAL Map?"

Merged snuverink_j requested to merge 464-what-is-the-status-of-opal-map into master

Closes #464 (closed)

Edited by snuverink_j

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
19 // Class: MapAnalyser
20 // Organizes the function for a linear map analysis from
21 // ThickTracker.
22 // Transfer map -> tunes, symplecticity and stability
23 // Sigma Matrix -> (not projected) beam emittance
24 //
25 // ------------------------------------------------------------------------
26 //
27 // $Author: ganz $
28 //
29 // ------------------------------------------------------------------------
30
31 // This class is in an unfinished state.
32 // For some dicussion see https://gitlab.psi.ch/OPAL/src/issues/464
33 // Some cleanup was done in https://gitlab.psi.ch/OPAL/src/merge_requests/294
10 34
  • frey_m
  • frey_m
  • gsell
    gsell @gsell started a thread on the diff
  • 6 14 #include <array>
    7 15 #include <complex>
    8 16
    9 #include <Ippl.h>
    17 // ------------------------------------------------------------------------
    18 //
    19 // Class: MapAnalyser
    20 // Organizes the function for a linear map analysis from
    21 // ThickTracker.
    22 // Transfer map -> tunes, symplecticity and stability
    23 // Sigma Matrix -> (not projected) beam emittance
    24 //
    25 // ------------------------------------------------------------------------
    26 //
    27 // $Author: ganz $
    28 //
    • A general question: do we want author names in headers? This made sense in RCS/CVS times, but nowadays?

    • Author Developer

      This never made much sense to me, also with CVS you could find out who wrote it, but many people seem to like it. I have merely copied this part from the implementation to the header.

    • so lets remove this lines.

    • Author Developer

      Then we need to remove it everywhere, not just here. There are more than 1000 lines in the source that have author:. The discussion is good to have, but doesn't belong here. Perhaps something to discuss for the retreat?

    • Lets keep it simple and fix this kind of stuff in files we are editing anyway.

    • Author Developer

      I think it is much cleaner to fix this all at once, but yes also along the way. That is why I also fix the coding style. However, this particular thing needs to be decided by the whole collaboration. Many authors do this on purpose.

    • Author Developer

      Maybe @ext-rogers_c can remind us why he puts a specific STFC copyright with author name(s) in his files? I more or less remember, but he can definitely phrase it more precisely.

      Edited by snuverink_j
    • Please register or sign in to reply
  • snuverink_j added 1 commit

    added 1 commit

    • 61b77317 - more coding style; add brief description to top of header

    Compare with previous version

  • snuverink_j added 1 commit

    added 1 commit

    • b442427b - remove not needed 0+ statements

    Compare with previous version

  • gsell
  • snuverink_j added 1 commit

    added 1 commit

    • 3e43f380 - add brief description to source file

    Compare with previous version

  • adelmann approved this merge request

    approved this merge request

  • @snuverink_j I was brought up to always put owner of the copyright and the license in every file. E.g. recommendation from GPL

    https://www.gnu.org/licenses/gpl-howto.html

    Give each file the proper copyright notices

    Put a license notice in each file.

    (edited to correct malformat of quote grumble, markup, grumble)

    When I joined the project, I was not aware of there being any specific license beyond PSI "ownership" - so I started using BSD license for my contributions, because I thought it was compatible with "open" and PSI "ownership" i.e. if PSI wants to start selling OPAL due to some PHB logic they still can; but I can't lose access to my contributions.

    I don't particularly care beyond:- I don't want to lose access to code I wrote if some PHB takes interest in things; I don't want to cause license problems down the road for others who want to use the code (e.g. not knowing who owns copyright to each file, and then trying to change the license, can be difficult/impossible).

    Edited by ext-rogers_c
  • @ext-rogers_c Is the author or the university/institute/lab the holder of the copyright? Like (for H5hut):

    Copyright (c) 2006-2016, The Regents of the University of California,
      through Lawrence Berkeley National Laboratory (subject to receipt of any
      required approvals from the U.S. Dept. of Energy) and the Paul Scherrer
      Institut (Switzerland).  All rights reserved.

    Since I'm working for PSI, I assume PSI holds the copyright.

  • @gsell I don't believe STFC holds copyright. There was no provision in the STFC Terms of Employment for intellectual property last time I looked (admittedly, a while back).

    • Resolved by snuverink_j

      @snuverink_j @ext-rogers_c Ok, maybe we have to change/extend the file header for OPAL source files according the recommendations in https://www.gnu.org/licenses/gpl-howto.html. What do you think about the following proposal:

      //
      // Brief description
      //
      // Copyright (c) YYYY, Notice mentioning University, Institute, Lab or Author
      //
      // Optional: related work, e.g. title of PhD or Master thesis
      //
      // This file is part of OPAL.
      //
      // OPAL is free software: you can redistribute it and/or modify
      // it under the terms of the GNU General Public License as published by
      // the Free Software Foundation, either version 3 of the License, or
      // (at your option) any later version.
      //
      // You should have received a copy of the GNU General Public License
      // along with OPAL.  If not, see <https://www.gnu.org/licenses/>.
      //

      For PSI employees the copyright notice would be:

      // Copyright (c) YYYY1[, YYYY2...], Paul Scherrer Institut, Villigen PSI, Switzerland
      // All rights reserved.

      For a PhD or Master student something like:

      // Copyright (c) YYYY1[, YYYY2...], Firstname Lastname, University
      // All rights reserved

      My proposal for the header of the file MapAnalyser.h would be something like:

      //
      // Class: MapAnalyser
      //   Organizes the function for a linear map analysis from
      //   ThickTracker.
      //   Transfer map -> tunes, symplecticity and stability
      //   Sigma Matrix -> (not projected) beam emittance
      //
      // This class is in an unfinished state.
      // For some dicussion see https://gitlab.psi.ch/OPAL/src/issues/464
      // Some cleanup was done in https://gitlab.psi.ch/OPAL/src/merge_requests/294
      //
      // Copyright (c) 2017, Philippe Ganz, ETH Zürich
      // All rights reserved
      //
      // Implemented as part of the Master thesis
      // "s-based maps from TPS & Lie-Series applied to Proton-Therapy Gantries"
      //
      // This file is part of OPAL.
      //
      // OPAL is free software: you can redistribute it and/or modify
      // it under the terms of the GNU General Public License as published by
      // the Free Software Foundation, either version 3 of the License, or
      // (at your option) any later version.
      //
      // You should have received a copy of the GNU General Public License
      // along with OPAL.  If not, see <https://www.gnu.org/licenses/>.
      //
      Edited by gsell
  • gsell approved this merge request

    approved this merge request

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading