Change request #1061
Change isin, islong, etc. method names to is_in, is_long, etc.
Status: | Closed | Start date: | 01/07/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assigned To: | Deil Christoph | % Done: | 100% | |
Category: | - | |||
Target version: | 00-08-00 | |||
Duration: |
Recurrence
No recurrence.
Related issues
History
#1 Updated by Deil Christoph almost 11 years ago
I’m doing this here (work in progress):
https://github.com/cdeil/gammalib/compare/gammalib:devel...cdeil:issue_1061
#2 Updated by Deil Christoph almost 11 years ago
- Status changed from New to In Progress
There’s a few commits on this branch now.
Jürgen, could you please have a look if those changes look OK?
(it’s very many lines and I did multi-file search / replace).
anynul
→anynull
andnulval
→nullval
(“nul” is a typo, no?)- Consistently replace
omega
withsolidangle
- Rename
GPar
toGApplicationPar
andGPars
toGApplicationPars
. (I think this makes it clearer thatGOptimizerPar
is independent and not a sub-class ofGPar
.)
OK?
#3 Updated by Deil Christoph almost 11 years ago
How about renaming GXml
to GXmlDocument
?
(There’s several XML
classes in GammaLib and for the GXml
class I had to look at the documentation to find out what it represents.)
How about renaming GGti
to GGtis
?
(I was surprised to find that it is a GTI
container, because the name suggests it’s just one GTI
.)
#4 Updated by Deil Christoph almost 11 years ago
- Status changed from In Progress to Pull request
#5 Updated by Knödlseder Jürgen almost 11 years ago
Deil Christoph wrote:
How about renaming
GXml
toGXmlDocument
?
(There’s severalXML
classes in GammaLib and for theGXml
class I had to look at the documentation to find out what it represents.)
There is already a class GXmlDocument
, which is the root node of an XML document.
How about renaming
GGti
toGGtis
?
(I was surprised to find that it is aGTI
container, because the name suggests it’s just oneGTI
.)
The name is indeed a little special, but is inspired from the well-known OGIP standard where GTI is always a list of intervals.
#6 Updated by Knödlseder Jürgen almost 11 years ago
Deil Christoph wrote:
There’s a few commits on this branch now.
Jürgen, could you please have a look if those changes look OK?
(it’s very many lines and I did multi-file search / replace).
I going over them. Found one compile problem so far (some stuff missing in GTestCase
). Probably also needs an update of ctools. Wait until merged before doing more changes and then start from a fresh branch from devel
.
Some additional name changes I'd like to make:
anynul
→anynull
andnulval
→nullval
(“nul” is a typo, no?)
No type, these are the original cfitsio names. I was also hesitating to change them, but at the end refrained from it. I have no strong opinion about this.
- Consistently replace
omega
withsolidangle
I think this is done (at least on the interface level, maybe not on the internal variable level).
- Rename
GPar
toGApplicationPar
andGPars
toGApplicationPars
. (I think this makes it clearer thatGOptimizerPar
is independent and not a sub-class ofGPar
.)
Agree.
OK?
#7 Updated by Knödlseder Jürgen almost 11 years ago
- Status changed from Pull request to Closed
- % Done changed from 0 to 100
Pushed into devel
.
#8 Updated by Deil Christoph almost 11 years ago
I still think GXml
should be renamed to a more descriptive class.
“XML = extensible markup language” and it’s thus not clear what concept GXml
represents from it’s name.
I guess it’s roughly a full XML document (as opposed to what GXmlDocument
represents) or the in-memory representation of an XML file?
GFits
should be renamed to GFitsFile
or GHduList
I think:
http://gammalib.sourceforge.net/doxygen/classGFits.html#details
Because again “FITS = Flexible Image Transport System” and it’s not clear what concept GFits
represents from it’s name.
I’ll make the changes to GApplicationPar
and solidangle
now.