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
diff --git a/Products/windowZ/profiles/default/metadata.xml b/Products/windowZ/profiles/default/metadata.xml | |
index 24d938c..63d23cd 100644 | |
--- a/Products/windowZ/profiles/default/metadata.xml | |
+++ b/Products/windowZ/profiles/default/metadata.xml | |
@@ -1,8 +1,4 @@ | |
<?xml version="1.0"?> | |
<metadata> | |
<version>2000</version> | |
- <dependencies> | |
- <dependency>profile-Products.Archetypes:Archetypes</dependency> |
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
FROM interlegis/portalmodelo:3.0-20 | |
MAINTAINER "Ramiro Batista da Luz" <[email protected]> | |
USER root | |
COPY site.cfg /plone/instance/ | |
ADD configure.cfg /plone/instance/ |
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
1. que problemas cada uno de nosotros estamos intentando resolver por medio de scipyla en nuestra región o a nivel latinoamerica? | |
Em minha região existem várias pessoas usando Python para pesquisas científicas. Mas as pessoas não se conhecem ou tem pouco contato entre si. Eu gostaria de facilitar a troca de experiências e conhecimento em um ambiente de comunidade de software livre e ciência aberta. | |
2. cómo fue organizado la primera conferencia? (@celitacintas @ndefosse ) | |
Não participei da primeira conferência. A conferência de 2018 foi organizada pelo grupo de usuários de Python do Paraná, com apoio institucional da Universidade Curitiba através da Coordenação do Curso Superior de Análise e Desenvolvimento de Sistemas. A Associação Python Brasil atuou para realizar as transações financeiras necessárias. E a LatamTech foi a patrocinadora Ouro do evento. | |
3. Cuales desafíos hemos enfrentado y superado en terminos de comunidad y de conferencia? |
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
from dbfread import DBF | |
import rows | |
def dbf_2_csv(filename, csv_filename): | |
dbf_file = DBF(filename) | |
map_field_type = {'C': rows.fields.TextField, 'N': rows.fields.FloatField} | |
force_types = {f.name.lower(): map_field_type[f.type] for f in dbf_file.fields} | |
records = [record for record in dbf_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
import numpy | |
from rpy2 import robjects | |
import rpy2.robjects.numpy2ri | |
rpy2.robjects.numpy2ri.activate() | |
mirtCAT = robjects.r('library(mirtCAT)') | |
simdata = robjects.r('simdata') | |
mirt = robjects.r('mirt') | |
nitems = 50 |
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
# https://github.com/philchalmers/mirtCAT/blob/master/R/extract.mirtCAT.R | |
set.seed(1234) | |
nitems <- 25 | |
itemnames <- paste0('Item.', 1:nitems) | |
a <- matrix(rlnorm(nitems, .2, .3)) | |
d <- matrix(rnorm(nitems)) | |
dat <- simdata(a, d, 500, itemtype = 'dich') | |
colnames(dat) <- itemnames | |
mod <- mirt(dat, 1, verbose = FALSE, TOL = .01) |
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
diff --git a/src/interlegis/portalmodelo/ombudsman/content/claim.py b/src/interlegis/portalmodelo/ombudsman/content/claim.py | |
index 3278b84..71936a9 100644 | |
--- a/src/interlegis/portalmodelo/ombudsman/content/claim.py | |
+++ b/src/interlegis/portalmodelo/ombudsman/content/claim.py | |
@@ -1,10 +1,12 @@ | |
# -*- coding: utf-8 -*- | |
from interlegis.portalmodelo.ombudsman.interfaces import IClaim | |
-from five import grok | |
+# from five import grok |
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
# -*- coding: utf-8 -*- | |
from zope.component import queryUtility | |
from plone.i18n.normalizer.interfaces import IIDNormalizer | |
from plone.dexterity.fti import DexterityFTI | |
from interlegis.portalmodelo.ombudsman.testing import create_ombudsoffice | |
from interlegis.portalmodelo.ombudsman.testing import INTEGRATION_TESTING | |
from interlegis.portalmodelo.ombudsman.browser.claims_by_tag import json_claims_by_tag | |
from interlegis.portalmodelo.ombudsman.browser.claims_by_tag import get_claim_tag | |
from interlegis.portalmodelo.ombudsman.browser.claims_by_tag import count_claims_by_tag | |
from interlegis.portalmodelo.ombudsman.browser.claims_by_tag import csv_claims_by_tag |
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
====================================================================== | |
FAIL: test_docstrings (tests.modules.test_math.MathTests) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ramiro/python/pybee/batavia-dev/batavia/tests/modules/test_math.py", line 165, in test_docstrings | |
""") | |
File "/home/ramiro/python/pybee/batavia-dev/batavia/tests/utils.py", line 504, in assertCodeExecution | |
self.assertEqual(js_out, py_out, context) | |
AssertionError: 'acos[76 chars] the inverse hyperbolic cosine of x.\nasin(x)\[3067 chars]d.\n' != 'acos[76 chars] the hyperbolic arc cosine (measured in radian[3121 chars]d.\n' | |
acos(x) |
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
class ContatoAgrupadoPorGrupoFilterSet(FilterSet): | |
search = MethodFilter() | |
municipio = MethodModelChoiceFilter( | |
required=False, | |
queryset=Municipio.objects.all()) | |
grupo = MethodModelChoiceFilter( | |
required=False, | |
queryset=GrupoDeContatos.objects.all()) |
NewerOlder