This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1016 from slacgismo/develop
Release beauharnois-28
- Loading branch information
Showing
157 changed files
with
48,585 additions
and
15,048 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
#!/bin/bash | ||
|
||
# Install needed system tools | ||
# update first | ||
apt-get -q update | ||
apt-get -q install tzdata -y | ||
|
||
# install system build tools needed by gridlabd | ||
apt-get -q install git -y | ||
apt-get -q install unzip -y | ||
apt-get -q install autoconf -y | ||
apt-get -q install libtool -y | ||
apt-get -q install g++ -y | ||
apt-get -q install cmake -y | ||
apt-get -q install flex -y | ||
apt-get -q install bison -y | ||
apt-get -q install libcurl4-gnutls-dev -y | ||
apt-get -q install libncurses5-dev -y | ||
apt-get -q install liblzma-dev -y | ||
apt-get -q install libssl-dev -y | ||
apt-get -q install libbz2-dev -y | ||
apt-get -q install libffi-dev -y | ||
apt-get -q install zlib1g-dev -y | ||
|
||
# install python 3.9 | ||
if [ ! -x /usr/local/bin/python3 -o $(/usr/local/bin/python3 --version | cut -f-2 -d.) != "Python 3.9" ]; then | ||
cd /usr/local/src | ||
curl https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz | tar xz | ||
cd Python-3.9.6 | ||
./configure --prefix=/usr/local --enable-optimizations --with-system-ffi --with-computed-gotos --enable-loadable-sqlite-extensions CFLAGS="-fPIC" | ||
make -j $(nproc) | ||
make altinstall | ||
ln -sf /usr/local/bin/python3.9 /usr/local/bin/python3 | ||
ln -sf /usr/local/bin/python3.9-config /usr/local/bin/python3-config | ||
ln -sf /usr/local/bin/pydoc3.9 /usr/local/bin/pydoc | ||
ln -sf /usr/local/bin/idle3.9 /usr/local/bin/idle | ||
curl -sSL https://bootstrap.pypa.io/get-pip.py | /usr/local/bin/python3 | ||
fi | ||
|
||
# install python libraries by validation | ||
/usr/local/bin/python3 pip -m install --upgrade pip | ||
/usr/local/bin/python3 pip -m install mysql-connector mysql-client matplotlib numpy pandas Pillow | ||
|
||
# doxggen | ||
apt-get -q install gawk -y | ||
if [ ! -x /usr/bin/doxygen ]; then | ||
if [ ! -d /usr/local/src/doxygen ]; then | ||
git clone https://github.com/doxygen/doxygen.git /usr/local/src/doxygen | ||
fi | ||
if [ ! -d /usr/local/src/doxygen/build ]; then | ||
mkdir /usr/local/src/doxygen/build | ||
fi | ||
cd /usr/local/src/doxygen/build | ||
cmake -G "Unix Makefiles" .. | ||
make | ||
make install | ||
fi | ||
|
||
# mono | ||
apt-get -q install curl -y | ||
if [ ! -f /usr/bin/mono ]; then | ||
cd /tmp | ||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | ||
echo "deb http://download.mono-project.com/repo/ubuntu wheezy/snapshots/4.8.0 main" | tee /etc/apt/sources.list.d/mono-official.list | ||
apt-get -q update -y | ||
apt-get -q install mono-devel -y | ||
fi | ||
|
||
# natural_docs | ||
if [ ! -x /usr/local/bin/natural_docs ]; then | ||
cd /usr/local | ||
curl https://www.naturaldocs.org/download/natural_docs/2.0.2/Natural_Docs_2.0.2.zip > natural_docs.zip | ||
unzip -qq natural_docs | ||
rm -f natural_docs.zip | ||
mv Natural\ Docs natural_docs | ||
echo '#!/bin/bash | ||
mono /usr/local/natural_docs/NaturalDocs.exe \$*' > /usr/local/bin/natural_docs | ||
chmod a+x /usr/local/bin/natural_docs | ||
fi | ||
|
||
# converter support | ||
/usr/local/bin/python3 pip -m install networkx | ||
apt-get -q install mdbtools -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[[/GLM/Global/Geocode]] -- Geohash encoder | ||
|
||
# Synopsis | ||
|
||
GLM: | ||
|
||
~~~ | ||
${GEOCODE <latitude>,<longitude>[#<resolution>]} | ||
${GEOCODE <objname>[#<resolution>]} | ||
~~~ | ||
|
||
# Description | ||
|
||
Return the geohash code corresponding to the latitude/longitude given or the object name. This can be helpful is connecting object based on location, such as linking an object to weather. | ||
|
||
The default resolution is 5. The resolution corresponds to the following distances: | ||
|
||
1 2500 km | ||
2 600 km | ||
3 80 km | ||
4 20 km | ||
5 2.5 km | ||
6 0.2 km | ||
7 0.08 km | ||
8 0.02 km | ||
9 0.0025 km | ||
10 0.0006 km | ||
11 0.000075 km | ||
|
||
# Example | ||
|
||
The following example prints the geohash codes for a position and an object: | ||
|
||
~~~ | ||
class test | ||
{ | ||
char32 geocode; | ||
} | ||
object test | ||
{ | ||
name "test"; | ||
latitude 37.5; | ||
longitude -122.2; | ||
} | ||
#print ${GEOCODE 37.5,-122.2#6} | ||
#print ${GEOCODE test#6} | ||
~~~ | ||
|
||
# See also | ||
|
||
* [[/GLM/Subcommand/Geodata]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[[/Glm/Macro/Ifmissing]] -- Macro to conditionally process GLM lines when a file missing | ||
|
||
# Synopsis | ||
|
||
GLM: | ||
|
||
~~~ | ||
#ifmissing <path-name> | ||
... | ||
[#else] | ||
... | ||
#endif | ||
~~~ | ||
|
||
or | ||
|
||
~~~ | ||
#ifmissing "<path-name>" | ||
... | ||
[#else] | ||
... | ||
#endif | ||
~~~ | ||
|
||
# Description | ||
|
||
The `#ifmissing` macro is used to conditionally process GLM lines when a file is not found. | ||
|
||
# Examples | ||
|
||
~~~ | ||
#ifmissing "myfile.glm" | ||
#print didn't find it | ||
#endif | ||
~~~ | ||
|
||
# See also | ||
|
||
* [[/Glm/Macro/If]] | ||
* [[/Glm/Macro/Ifexist]] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.