Skip to content

Commit

Permalink
Improve readability of enum Option
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet committed Dec 7, 2022
1 parent 1dc7c8a commit 2182a26
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions include/morphio/enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ enum LogLevel { ERROR, WARNING, INFO, DEBUG };
/** The list of modifier flags that can be passed when loading a morphology
* See morphio::mut::modifiers for more information **/
enum Option {
NO_MODIFIER = 0b0000000000000000, //!< Read morphology as is without any modification
TWO_POINTS_SECTIONS = 0b0000000000000001, //!< Keep only the first and last points of sections
SOMA_SPHERE = 0b0000000000000010, //!< Interpret morphology soma as a sphere
NO_DUPLICATES = 0b0000000000000100, //!< Skip duplicating points
NRN_ORDER = 0b0000000000001000, //!< Order of neurites will be the same as in NEURON simulator
ALLOW_ROOT_BIFURCATIONS = 0b0000000000010000, //!< Bifurcations at first point are allowed
ALLOW_SOMA_BIFURCATIONS = 0b0000000000100000, //!< Bifurcations in soma are allowed
ALLOW_MULTIPLE_SOMATA = 0b0000000001000000 //!< Multiple somata are allowed
NO_MODIFIER = 0, //!< Read morphology as is without any modification
TWO_POINTS_SECTIONS = 1 << 0, //!< Keep only the first and last points of sections
SOMA_SPHERE = 1 << 1, //!< Interpret morphology soma as a sphere
NO_DUPLICATES = 1 << 2, //!< Skip duplicating points
NRN_ORDER = 1 << 3, //!< Order of neurites will be the same as in NEURON simulator
ALLOW_ROOT_BIFURCATIONS = 1 << 4, //!< Bifurcations at first point are allowed
ALLOW_SOMA_BIFURCATIONS = 1 << 5, //!< Bifurcations in soma are allowed
ALLOW_MULTIPLE_SOMATA = 1 << 6 //!< Multiple somata are allowed
};

/**
Expand Down

0 comments on commit 2182a26

Please sign in to comment.